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: Mike Frysinger
Subject: Re: Help: Bash script that show you the last file created?
Date: Sun, 15 Feb 2009 23:37:32 -0500
User-agent: KMail/1.11.0 (Linux/2.6.28; KDE/4.2.0; x86_64; ; )

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: 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.
-mike




reply via email to

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