View Single Post

   
  #3 (permalink)  
Old 01-16-2008, 11:34 AM
lazyboy_2k@yahoo.com
 
Posts: n/a
Default Re: List All Files in Directory Within a Range of Date

On Aug 13, 12:48 pm, Huge <H...@nowhere.much.invalid> wrote:
> On 2007-08-13, lazyboy...@yahoo.com <lazyboy...@yahoo.com> wrote:
>
> > Hi,

>
> > Is there a way to list all of the files in a directory within a range
> > of date or just a specific date?

>
> Yes.
>
> Oh, you want to know what it is?
>
> man find. Look for the 'time' options.
>
> --
> "Religion poisons everything."
> [email me at huge {at} huge (dot) org <dot> uk]


For instance:

# ls -ltr /tmp
total 80
-rw-rw-r-- 1 root sys 5080 Jun 25 14:10 ps_data
drwx------ 2 root root 182 Jun 25 14:10 smc898
drwxr--r-- 2 root root 117 Jun 25 14:10 SunMCDBLogFiles
-rw-rw-rw- 1 root root 25879 Jul 15 14:07
probeserver.stderr
-rw-r--r-- 1 root other 110012 Jul 29 13 14:51 testfile
-rw-r--r-- 1 root other 143296 Aug 10 14:51 file1
-rw-r--r-- 1 root other 11 Aug 13 14:51 myfile

I basically want to be able to list all of files from Jul 15 to Aug
10. Is it possible to do that?

Thx,
-Chris

Reply With Quote