This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: File sorting routine
- To: Rob Christopher <rob dot christopher at marconi dot com>
- Subject: Re: File sorting routine
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 06 Sep 2000 07:32:55 -0300
- Cc: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <DF3A61EBEA06D411A1D100B0D021D5C103C686@hayn0012.gmsws.gecm.com>
On Sep 6, 2000, Rob Christopher <rob.christopher@marconi.com> wrote:
> Sorry if this isn't specifically a gcc question
This is definitely not the place for this question.
> but does anyone know of a handy file sorting routine which can read
> all the file contents of a directory and return which file has the
> oldest timestamp (or lowest value when comparing filenames).
Since `ls -t' does this, I'd start by looking at the sources of GNU
fileutils.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me