This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: File sorting routine


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]