Skip to content

Instantly share code, notes, and snippets.

@jasantunes
Created February 15, 2019 07:08
Show Gist options
  • Save jasantunes/9361a2d91951b3853759c7adc6433030 to your computer and use it in GitHub Desktop.
Save jasantunes/9361a2d91951b3853759c7adc6433030 to your computer and use it in GitHub Desktop.
Show recently modified files.
# To get a list of the files that were most recently modified:
find $* -type f -printf "%TY-%Tm-%Td %TH:%TM %p\n" | sort -r -n | head
# If you want to ignore files in hidden directories (that start with dot), such as eclipse metadata files, use:
find $* -not \( -type d -name ".*" -prune \) -and -type f -printf "%TY-%Tm-%Td %TH:%TM %p\n" | sort -r -n | head
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment