I have some commands in a file that are like
diff file1 file2
diff file3 file4
And if anything is output I want to print which command this happened in such as
diff file1 file2
if (there was output from the diff command)
print "file1 and file2 had the difference"
endif
diff file3 file4
if (there was output from the diff command)
print "file3 and file4 had the difference"
endif