how to compare file modification time in bourne shell script
Andy Burgess
aab at silma.com
Tue Jul 24 09:30:44 AEST 1990
I need to compare the modification times of two files in a bourne shell
script. I would like to do this without writing C code.
Machine is Sparcstation 1 running SunOS 4.03c
Thus I need a function:
newer file1 file2
that returns 0 if file1 is newer than file2 else returns 1
Can it be done?
Andy Burgess
uunet!silma!aab
408 725 8908
More information about the Comp.unix.questions
mailing list