Comparing modified times of files

Scott Pace scottp at bwdlh504.bnr.ca
Sat Mar 9 00:35:23 AEST 1991


I would like to be able to compare two files' time stamps, to see which one
is the oldest (or newest). How can I do this with sh?
I know about ksh and perl, but I want to know how it can be done with plain
old Bourne Shell.
I am running on HP-UX, if that makes a difference.
--
Scott Pace, Bell Northern Research, Ottawa, Canada, (613) 765-2631
scottp at bnr.ca



More information about the Comp.unix.shell mailing list