On Sun, 2004-07-18 at 22:16 +1000, James Gregory wrote:
> Hi all,
> 
> 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.

So far I've got this:

find . -printf "%Cd-%Cm-%CY\t%h/%f\n" | grep '^06-07-2004' | perl -pe 's/^.*\t//;'

Which is *hideous*. Tell me there's a better way. And I don't mean by
substituting 'sed' for 'perl -pe'.

James.

-- 
James Gregory <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
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