Well, in Perl, you can do "-M $file".
See "perldoc -f -X"
----- Original Message -----
From: "Donna Garverick" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Wednesday, May 21, 2003 1:01 PM
Subject: Re: [HP3000-L] determining a file's age
> Lars Appel wrote:
>
> > Sounds like a job for /bin/find "/some/dir -mtime +30" with
> > or without additional -exec options. Or maybe with -atime, if
> > you're after the access date.
>
> i was wondering about that (and rather hoping that someone would offer
> a posix solution) -- but i don't think find will answer the question.
> as we've seen, it's relatively easy to pick out a file set based on
> the age of the file. but what i'm after is the reverse -- determine
> the age based on the file. - d
>
> --
> Donna Garverick Sr. System Programmer
> 925-210-6631 [log in to unmask]
>
> Come, my friends, 'Tis not too late to seek a newer world.
> Tho' much is taken, much abides; and tho'
> We are not now that strength which in old days
> Moved earth and heaven, that which we are, we are.
> "Ulysses", A. Tennyson
>
> >>>MY opinions, not Longs Drug Stores'<<<
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|