how do i find a file in all directories 7 to 9 days old?

b. f. bf1783 at
Thu Jul 28 11:30:42 UTC 2011

On 7/28/11, b. f. <bf1783 at> wrote:
>>  how can i use find or whatever to find a file, say 6 levels deep
>>  that is <= 9 days old?   i'm looking fo something i had to jt down
>>  [[ASCII]].  can't remembr te file name, nor when i was when i had
>>  the idea flash into my mind....
> Try something like:
> find / -type f -mtime -10d -mindepth 5 -maxdepth 7
> See find(1) for variations.

Hmm. I'm not sure owing to the difference between the body and the
subject of the message, what criteria are really wanted, but for the
criteria in the subject you might use something like:

find / -type f -mtime -10d -mtime +6d


More information about the freebsd-questions mailing list