[Gllug] One liner challenge

robin.c.smith at bt.com robin.c.smith at bt.com
Thu Jan 30 10:50:55 UTC 2003


That works perfectly - ta

-----Original Message-----
From: Stig Brautaset [mailto:gllug at brautaset.org]
Sent: Thursday, January 30, 2003 10:16
To: gllug at linux.co.uk
Subject: Re: [Gllug] One liner challenge


On Jan 30 2003, Stig wrote:
> On Jan 30 2003, robin.c.smith wrote:
> > I use
> > 
> > find . -exec ls -ld {} \;
> > 
> > to list all the files and directories as I don't like the output of ls
-lR
> > 
> > However I would like to have the output changed so that it lists
everything
> > but sorted by date with the most recent file last.
> > There must be a simple one liner to do this.
> 
> Which official body specifies that? ;)
> 
> try 
> 
> 	find . | xargs ls -tld

And as Rich, I too read "most recent file last". Add "r" to the ls
options to rectify.

Stig
-- 
brautaset.org

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list