Re: Finding the newest directory
From: Sam Holden (sholden_at_flexal.cs.usyd.edu.au)
Date: 05/13/04
- Next message: Bob Walton: "Re: Using hashes to sort number sequences"
- Previous message: Ben Morrow: "Re: A Stupid question."
- Next in thread: Ben Morrow: "Re: Finding the newest directory"
- Reply: Ben Morrow: "Re: Finding the newest directory"
- Maybe reply: Sam Holden: "Re: Finding the newest directory"
- Maybe reply: Joe Smith: "Re: Finding the newest directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 13 May 2004 03:04:26 GMT
On Wed, 12 May 2004 22:52:42 -0400, sc0ri0n <sc0ri0n@hotmail.com> wrote:
> Hi,
>
> If I have a bunch of directories and files (sun solaris). Is there a way to
> find the newest directory (last one created not modified)?
No (unless you are using a funky non-standard file system).
Creation time is not tracked by the filesystem.
You have (most recent) access time, modification time, and
file status time. File status time (ctime) is as close as
you'll get, but it is set by other operations that change
the file status (such as chmod(), link(), unlink(), etc.)
stat gives you access to the ctime.
perldoc -f stat
-- Sam Holden
- Next message: Bob Walton: "Re: Using hashes to sort number sequences"
- Previous message: Ben Morrow: "Re: A Stupid question."
- Next in thread: Ben Morrow: "Re: Finding the newest directory"
- Reply: Ben Morrow: "Re: Finding the newest directory"
- Maybe reply: Sam Holden: "Re: Finding the newest directory"
- Maybe reply: Joe Smith: "Re: Finding the newest directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|