Paul Jungwirth on 13 Apr 2012 06:11:10 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Sort a file tree by last modified time


>> find /path/to/files -printf '%TY-%Tm-%Td_%TH:%TM:%TS\t%y\t%s\t%p\n' |
>> sort -r
>
>ÂI can remember just so many
> switches.

Remembering codes for date formatting/parsing are the worst. But at
least in this command, the letters after the `%T` are the same as in
date(1), if that helps any:

    date "+%Y-%m-%d_%H:%M:%S"


-- 
_________________________________
Pulchritudo splendor veritatis.
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug