On 18/07/2004, at 10:16 PM, James Gregory wrote:
I just tried to use the 'find' command to locate for me all files on a
filesystem that were modified on a given date. I have just discovered
that this is a moderately difficult problem. 'man find' tells me that
there are atime, ctime and mtime options but they only let me specify
time relative to today in hours. I can see that I potentially could
construct a find query with these tools and judicious use of -a and '!',
but that can't be the simplest way.



Quickest way I found to do this (hacky but quick) was find . -ls | egrep "Jul 18"

I think all modern versions of find support '-ls', if yours doesn't, try '-exec ls -l {} \;' instead.

Remember that 'ls' pads the date, so "Jul 1" is "Jul  1" (two spaces).

Greeno
--
Tony Green <[EMAIL PROTECTED]>

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to