Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dearaujoj
Created October 27, 2014 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dearaujoj/2f53b9e34869e9787b2c to your computer and use it in GitHub Desktop.
Save dearaujoj/2f53b9e34869e9787b2c to your computer and use it in GitHub Desktop.
How to list files sorted by modification date recursively
#Change 1n,1 to 1nr,1 if you want the files listed most recent first.
find . -printf '%T@ %c %p\n' | sort -k 1n,1 -k 7 | cut -d' ' -f2-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment