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