[Gllug] One liner challenge

robin.c.smith at bt.com robin.c.smith at bt.com
Thu Jan 30 12:00:37 UTC 2003


Thanks, I didn't know stat existed, I would have used perl.

Robin

-----Original Message-----
From: rich at annexia.org [mailto:rich at annexia.org]
Sent: Thursday, January 30, 2003 09:59
To: gllug at linux.co.uk
Subject: Re: [Gllug] One liner challenge



Always up for a challenge.

Caveat: this _won't_ work if files have spaces in them unfortunately 
(because of the awkward output of the 'stat' command).

find | xargs stat -t | awk '{print $1 " " $13}' | sort -k2 -nr

Rich.

-- 
Richard Jones, Red Hat Inc. (London, UK) http://www.redhat.com/software/ccm
http://www.annexia.org/ Freshmeat projects: http://freshmeat.net/users/rwmj

-- 
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