Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2011 07:30:41 -0400
From:      "b. f." <bf1783@googlemail.com>
To:        Gary Kline <kline@thought.org>, freebsd-questions@freebsd.org
Subject:   Re: how do i find a file in all directories 7 to 9 days old?
Message-ID:  <CAGFTUwOTZzrUd0nR=GDjwym%2BVxS6r8c-Xhyo8o%2BvSTn5h-P4kQ@mail.gmail.com>
In-Reply-To: <CAGFTUwOidDtM5qv8tQSTxrCUiV0=v_sBqNWNQmjmq%2Bv_Qg5AFg@mail.gmail.com>
References:  <CAGFTUwOidDtM5qv8tQSTxrCUiV0=v_sBqNWNQmjmq%2Bv_Qg5AFg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/28/11, b. f. <bf1783@googlemail.com> 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


b.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGFTUwOTZzrUd0nR=GDjwym%2BVxS6r8c-Xhyo8o%2BvSTn5h-P4kQ>