On Wed, Jan 09, 2008 at 04:57:04PM -0600, Dave Sherohman wrote: > Not entirely "quick" when dealing with a million files, but > > find /some/dir/ -exec ls -l {} \; | awk '{print $6,$7,$8}' | sort -r | head -1 Ewwwww... ETOOMANYLS find /some/dir -type f -printf "%h/%f %A@\n" | sort -rn -k2 | head -1 With a bit of awk magic you can even take the sorting out of the picture. florin -- Bruce Schneier expects the Spanish Inquisition. http://geekz.co.uk/schneierfacts/fact/163 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20080109/2d6b21ee/attachment.pgp