|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] find files within a date range
|
On Fri, Nov 02, 2007 at 03:23:07PM -0400, Neill R wrote:
> I have a dir with 12000 files, I need to find files with a time stamp
> between 5-10-07 and 5-15-07....any ideas? I have looked through the find
> man pages but nothing seems to pop out at me, thanks in advance...
1.
touch -t 200705100000 00start
touch -t 200705160000 00end
find . -newer 00start \! -newer 00end
2.
start=(# days between 5-10 and today)
end=(# days between 5-16 and today)
find . -mtime -$start -mtime +$end
3.
ls -l | egrep -e 'May 1(0-5) 2007'
Those ought to work but they're off the top of my head.
Dan W.
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|