bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help: Bash script that show you the last file created?


From: Eric Blake
Subject: Re: Help: Bash script that show you the last file created?
Date: Mon, 16 Feb 2009 05:49:07 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Mike Frysinger on 2/15/2009 9:44 PM:
>> ctime is the time when the inode was last modified, not (necessarily)
>> the time when the file was created.
> 
> if op is worried about that, then there is no place where the exact creation 
> time can be found.  the interpretation of {c,m}time is up to how the op is 
> backing things up, and is for him to figure out what is best.  he's asked for 
> guidance on sorting things, and ls will give him that.

Newer file systems provide Btime (birth time) in addtion to [acm]time, and
while not all OSs support it yet, at least some BSD flavors and cygwin 1.7
do.  GNU findutils is able to find files based on Btime, given sufficient
OS and file system support; so although many systems cannot find files
based on creation time, there exist some that can.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmZYMMACgkQ84KuGfSFAYBBswCglSzYhUkyhAWCKSq05e1VqNZb
QW8An3NiQUrQKVwvjIw9q3kKVNmOxYZd
=a3GV
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]