On Mon, 2004-07-19 at 00:11 +1000, Ben de Luca wrote:
> Cant be bothered testing its late and i am reading this with literally 
> one eye open but how about using -ctime twice?
> 
> some thing like find ./path -ctime +11 -ctime -12 -type f
> 
> as i understand it that should find files greater than 11 days and less 
> that 12?
> hmm to lazy to test it properly sorry

yeah, you can do that. That's what I originally planned to do. You need
a '-a' to make it work. Find has a '-daystart' to make both of those
options be rounded to day boundaries, but I'm really looking for
something where I can actually specify the date, rather than having to
actually think about how many days ago it was.

It'd be straightforward to write, so I guess I'll write a function and
add it to my .bashrc. I'm just astonished that find doesn't provide some
mechanism for this on its own.

Thanks for the help, everyone.

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