How can I make `find` find files in reverse chronological order?
I want to find files in subdirectories sorted by timestamp (of creation), with most recent first.
I have looked at the man page but it seems to only seems to let you filter by timestamp rather than sort by timestamp.
What options can I pass to find
to accomplish this?
Alternately, how can I combine it with another tool, like sort
to sort by timestamp?
While Paul's solution is generally OK, it involves more I/O than simply:
find bin/ -type f -printf '%Ts\t%p\n' | sort -nr | cut -f2