--- Mark Bradbury <mark.bradbury@xxxxxxxxxx> wrote: > Find doesn't seem to change the atime eg It changes the times on directories, not the files. > [mab@hal9000 temp]$ touch one two three > [mab@hal9000 temp]$ ls -l > total 0 > -rw-rw-r-- 1 mab mab 0 Nov 14 > 10:49 one > -rw-rw-r-- 1 mab mab 0 Nov 14 > 10:49 three > -rw-rw-r-- 1 mab mab 0 Nov 14 > 10:49 two > [mab@hal9000 temp]$ find . -type f -print | xargs ls > -l --time=atime > -rw-rw-r-- 1 mab mab 0 Nov 14 > 10:49 ./one > -rw-rw-r-- 1 mab mab 0 Nov 14 > 10:49 ./three > -rw-rw-r-- 1 mab mab 0 Nov 14 > 10:49 ./two > [mab@hal9000 temp]$ cat two > [mab@hal9000 temp]$ find . -type f -print | xargs ls > -l --time=atime > -rw-rw-r-- 1 mab mab 0 Nov 14 > 10:49 ./one > -rw-rw-r-- 1 mab mab 0 Nov 14 > 10:49 ./three > -rw-rw-r-- 1 mab mab 0 Nov 14 > 10:50 ./two > [mab@hal9000 temp]$ find . -type f -print | xargs ls > -l --time=atime > -rw-rw-r-- 1 mab mab 0 Nov 14 > 10:49 ./one > -rw-rw-r-- 1 mab mab 0 Nov 14 > 10:49 ./three > -rw-rw-r-- 1 mab mab 0 Nov 14 > 10:50 ./two > [mab@hal9000 temp]$ > > > > On Fri, 2003-11-14 at 10:40, Bret Hughes wrote: > > On Thu, 2003-11-13 at 18:02, Cameron Simpson > wrote: > > > On 22:45 13 Nov 2003, Mark Bradbury > <mark.bradbury@xxxxxxxxxx> wrote: > > > | What I need is a report of the last access > time of all files within a > > > | directory tree complete with full name and > path. (management you > > > | know :)) > > > > > > find dir -type f -print | xargs ls --time=atime > > > > > > The access time is a pretty useless number for > most purposes. > > > -- > > > > > > yep and IIRC the find will only work once 'cause > find will reset the > > atime. > > > > Bret > -- > Mark Bradbury (RHCE)- Senior System Support Officer > (UNIX) > Information Technology & Management Support > Charles Darwin University, Darwin, NT, 0909 > Ph 08 8946 6167, Mobile 0417 860 591, Fax 08 8946 > 6630 > CRICOS Provider No: 00300K > > ATTACHMENT part 2 application/pgp-signature name=signature.asc ===== He who laughs last thinks slowest. __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list