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

2009-02-16 Thread Eric Blake
-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

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

2009-02-15 Thread tal396
Coz its could be find in alot of subdirs like /home/server/backups/local_backups/1-1-2009/server/mysql/1-1-2009.sql /home/server/backups/local_backups/1-2-2009/server/mysql/1-2-2009.sql /home/server/backups/local_backups/1-3-2009/server/mysql/1-3-2009.sql so any idea? Bugzilla from

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

2009-02-15 Thread Paul Jarc
tal396 tal...@gmail.com wrote: Coz its could be find in alot of subdirs like /home/server/backups/local_backups/1-1-2009/server/mysql/1-1-2009.sql /home/server/backups/local_backups/1-2-2009/server/mysql/1-2-2009.sql /home/server/backups/local_backups/1-3-2009/server/mysql/1-3-2009.sql This

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

2009-02-15 Thread Mike Frysinger
On Sunday 15 February 2009 23:19:28 Jan Schampera wrote: Mike Frysinger wrote: there is any way to get the last file that created that is fomat is *.sql why not just use `ls` and one of its sort options ? the ls man page documents how to sort by creation time Without looking there:

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

2009-02-15 Thread Paul Jarc
Mike Frysinger vap...@gentoo.org wrote: the op wasnt asking for the time, they were asking for the last created file. and the ls man page talks how to sort by ctime. ctime is the time when the inode was last modified, not (necessarily) the time when the file was created. paul

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

2009-02-15 Thread Jan Schampera
Mike Frysinger wrote: Without looking there: It can't be documented, because there's no general way to retrieve the creation time of a file. the op wasnt asking for the time, they were asking for the last created file. and the ls man page talks how to sort by ctime. Yes, that's the

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

2009-02-15 Thread Mike Frysinger
On Sunday 15 February 2009 23:39:03 Paul Jarc wrote: Mike Frysinger vap...@gentoo.org wrote: the op wasnt asking for the time, they were asking for the last created file. and the ls man page talks how to sort by ctime. ctime is the time when the inode was last modified, not (necessarily)