"find" and {a,c,m}time
Snoopy T. Beagle
snoopy at sopwith.UUCP
Fri Oct 14 02:58:43 AEST 1988
In article <170 at libove.UUCP> root at libove.UUCP (Jay M. Libove) writes:
|My manual entry for find(C) (SCO uses bogus manual sections, that should
|be find(1) to the real world I think) says:
|
|find pathname-list expression
|...
|-atime n True if the file has been accessed in n days.
|-ctime n True if the file has been changed in n days.
|-mtime n True if the file has been modified in n days.
|
|Okay, so "find -?time 3 -print" should find all files ?'d within the
|last three days, right? Nope. To wit:
No, probably not. "+n" means more than n, "-n" means less than n,
and "n" means *exactly* n. (Unless SCO messed with the definition
of n, which I doubt.)
Also note the "-newer" option, if your find(C) [everyone else's find(1)]
has it. This give you resolution down to the resolution of the mtime
itself, (normally to the second) rather than to a day. The bad news is
that you are stuck with mtime with -newer, it doesn't let you choose
between all three. :-(
_____
/_____\ Snoopy
/_______\
|___| tektronix!tekecs!sopwith!snoopy
|___| sun!nosun!illian!sopwith!snoopy
More information about the Comp.unix.questions
mailing list