I have some commands in a file that are likediff file1 file2diff file3 file4And if anything is output I want to print which command this happened in  such asdiff file1 file2if (there was output from the diff command)     print file1 and file2 had the differenceendifdiff file3 file4if (there was output from the diff command)     print file3 and file4 had the differenceendif
Checking if the last diff command had output
diff;exit