Finding files modified "today" (Was: Awk with passed parameters)
Jay Plett
jay at silence.princeton.nj.us
Thu Mar 28 13:25:45 AEST 1991
In article <3450 at unisoft.UUCP>, greywolf at unisoft.UUCP (The Grey Wolf) writes:
> I think find(1) needs yet more improvement, most of all in the department
> of time granularity (if you can call a day "granular" -- seems like a large
> boulder to me...). Oh, and a -ctime option would be nice...
-ctime is available in at least Sun's and gnu's find.
I have added several primitives to gnu find and sent the sources off
to gnu. If gnu likes them, they should be available in a future
release.
-amin n
File was last accessed n minutes ago.
-anewer file
File's access time is more recent than the modification
time of file. -anewer is affected by -follow only if
-follow comes before -anewer on the command line.
-cmin n
File's status was last modified n minutes ago.
-cnewer file
File's status was last changed more recently than the
modification time of file. -cnewer is affected by
-follow only if -follow comes before -cnewer on the
command line.
-gid n
File's gid matches n.
-lname pattern
File is a symbolic link and its object matches glob
pattern pattern. The entire object string is compared
with pattern, not just its basename. For example, in
``foo -> ./bar', -lname bar would not match but -lname
'*bar' would. Slashes have no special meaning.
-mmin n
File was last modified n minutes ago.
-uid n
File's uid matches n.
-used n
File was last accessed n days after its status was last
changed.
-plink
True if file is a symbolic link, else false. Print
file's name and its link object as ``name -> object''.
To print all names, resolving symbolic links, use ``-
plink -o -print''.
---
Jay Plett
jay at princeton.edu
More information about the Comp.unix.questions
mailing list