> In VAX/VMS, one could easily get a listing of files created/modified/accessed
find {dirname} -ctime +5Quote:> before or since a given time period. I tried all kinds of things with 'ls'
> and it doesn't appear to be a straightforward solution. How could this be
> done in a little utility script?
finds files under {dirname} that were created 5+ days ago
find {dirname} -ctime -5
finds files under {dirname} that were created less than 5 days ago
find {dirname} -ctime 5
finds files under {dirname} that were created 5 days ago
find * - find files here
find * -prune - fine files in this dir, don't go down dir trees.
So:
find * -prune -ctime +4 -ls
might do the trick
--
Simon Travaglia, Email without auto spam rejection at by removing the
http://mrjolly.cc.waikato.ac.nz Ph: +64 7 838-4709 Fax: +64 7 838-4066
University of Waikato, Private Bag 3105, Hamilton, New Zealand..