11
Given that you're using the stat (similar functionality, but different output
format on BSDs and GNU), you could also use the test utility, which does this
comparison directly:
FILE1 -nt FILE2 FILE1 is newer (modification date) than FILE2 FILE1 -ot FILE2
FILE1 is older than FILE2
In your ex
11
Given that you're using the stat (similar functionality, but different output
format on BSDs and GNU), you could also use the test utility, which does this
comparison directly:
FILE1 -nt FILE2
FILE1 is newer (modification date) than FILE2
FILE1 -ot FILE2
FILE1 is o