-since option for ls -lt
Ray Smith
rcsmith at anagld.UUCP
Wed Jun 8 21:10:40 AEST 1988
In article <344 at ajpo.sei.cmu.edu> jrkelly at ajpo.sei.cmu.edu
(John Kelly) writes:
> ... The only other command I know of that compares modification times
>is "find" with the "-newer file" option, which lists files that are newer
>than the specified file. But unless one can force the specified file to
>have the desired cutoff modification time, this option does not help.
Try the "find" command with either the "-mtime" or "-atime" options for
modified time or access time.
An example of finding all files modified with in the last week follows:
find . -mtime -7 -a ! -type d -print
^^^^^^^^^
We don't want any directories do we??
Cheers,
Ray
--
Ray Smith | USnail: Suite 200, 9891 Broken Land Pky, Columbia, MD 21046
Analytics, Inc. | GEnie : rcsmith
(301) 381-4300 | CIS : 72000,1111
| Net : ...!uunet!mimsy!aplcen!anagld!rcsmith
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"The trouble with doing something right the first time is that nobody
appreciates how difficult it was." -Walt West
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
More information about the Comp.unix.questions
mailing list