|
|
List All Files in Directory Within a Range of Date
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
|
|
0
|
|
|
|
Reply
|
lazyboy_2k (74)
|
8/13/2007 6:12:34 PM |
|
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]
|
|
0
|
|
|
|
Reply
|
Huge
|
8/13/2007 7:48:23 PM
|
|
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
|
|
0
|
|
|
|
Reply
|
lazyboy_2k
|
8/13/2007 9:55:54 PM
|
|
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
|
|
0
|
|
|
|
Reply
|
Daniel
|
8/13/2007 11:26:41 PM
|
|
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
|
|
0
|
|
|
|
Reply
|
Richard
|
8/14/2007 5:10:36 AM
|
|
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.
|
|
0
|
|
|
|
Reply
|
comp
|
8/14/2007 1:18:14 PM
|
|
|
5 Replies
495 Views
(page loaded in 0.086 seconds)
|
|
|
|
|
|
|
|
|