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?
Use find's -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+\t%p\n" | sort
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
2 years ago