File sorting routine

Alexandre Oliva aoliva@redhat.com
Wed Sep 6 03:33:00 GMT 2000


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



More information about the Gcc mailing list