[Gllug] One liner challenge
Stig Brautaset
gllug at brautaset.org
Thu Jan 30 11:34:32 UTC 2003
On Jan 30 2003, robin.c.smith wrote:
> Close but not what I need :-)
>
> I'm looking for something that traverses the directories as well so would
> display all the files and directories under a point and prints them out in
> date order.
You mean directories and files jumbled together?
Maybe not quite what you hoped for (I couldn't make find output
permissions in the same way as ls etc) but maybe it's good enough.
Files are sorted on their modification times in seconds since 1970
(unless I screwed up).
% find -printf "%A@ %m %n %g \t %u %s \t %a %p\n" | sort -nr | cut -d" " -f2-
Stig
--
brautaset.org
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list