[Cialug] finding files with "find" command for specific date

Ken MacLeod ken at bitsko.slc.ut.us
Fri Sep 10 10:46:17 CDT 2010


On Fri, Sep 10, 2010 at 10:39 AM, Ken MacLeod <ken at bitsko.slc.ut.us> wrote:
> On Fri, Sep 10, 2010 at 10:38 AM, Jeffrey Ollie <jeff at ocjtech.us> wrote:
>> On Fri, Sep 10, 2010 at 10:32 AM, Afan Pasalic <afan at afan.net> wrote:

>>> find /path/to/files/log* -mtime 10

>>> I need all files for SPECIFIC day.

> And also use -mtime -11 to restrict the time span to one day (less
> than 11 days, greater than 10).

Ignore that.  - and + are only used for ranges.  The 10 didn't have a
+ so it's exactly 10 days ago (with -daystart as Jeff mentioned).


More information about the Cialug mailing list