Created
September 5, 2019 16:30
-
-
Save meysampg/6dca555004979ede904bc596652c2e38 to your computer and use it in GitHub Desktop.
Find all files which accessed between now and 50 minutes ago
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
SEARCH_DIR="/path/to/directory" | |
FORMAT="%Y-%m-%d %H:00:00" | |
find $SEARCH_DIR -newerat "`date -d "-50minutes" +"$FORMAT"`" ! -newerat "`date +"$FORMAT"`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment