I want to use
find but sort the results reverse chronologically as with
ls -ltr. Is this possible through any combo of flags or pipelines?
-printf command to output both the time (in a sortable way) and the file, then sort. If you use GNU find,
find . your-options -printf "%T+ %p\n" | sort
For convenience here is an explanation of the
-printf "%T+ %p\n" from
%TkFile's last modification time in the format specified by
k, which is the same as for
kin this case is set to
+Date and time, separated by
+, for example `2004-04-28+22:22:05.0'. This is a GNU extension. The time is given in the current timezone (which may be affected by setting the TZ environment variable). The seconds field includes a fractional part.