Created
February 15, 2019 07:08
-
-
Save jasantunes/9361a2d91951b3853759c7adc6433030 to your computer and use it in GitHub Desktop.
Show recently modified files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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