vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| On 2007-08-13, lazyboy_2k@yahoo.com <lazyboy_2k@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] |
| |||
| 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 |
| |||
| lazyboy_2k@yahoo.com <lazyboy_2k@yahoo.com> wrote: > I basically want to be able to list all of files from Jul 15 to Aug > 10. Is it possible to do that? Yes, create reference files with the correct timestamps (touch -t ...) then use the find expressions "-newer file1" and "! -newer file2" -- Daniel |
| |||
| lazyboy_2k@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? Any helps are appreciated. > > TIA, > -Chris > man find |
| ||||
| On Aug 13, 2:12 pm, "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? Any helps are appreciated. > > TIA, > -Chris Hi, find / \( -name a.out -o -name '*.o' \) -atime +7 for modified time option is - mtime. |
| Thread Tools | |
| Display Modes | |
|
|