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         --
Announcements -
General Discussion  --