How to list all files under a directory recursively and sort the output by modification time?

April 24, 2012 in answer

0 votes, 0.00 avg. rating (0% score)

ANSWER:

Here is a method using stat as @johnshen64 suggested

find . -type f -exec stat -f "%m%t%Sm %N" '{}' ; | sort -rn | head -20 | cut -f2-

by Computist from http://superuser.com/questions/416423