Created
July 27, 2017 15:21
-
-
Save non7top/4be7008fcc5cd4331b87a47a981f3811 to your computer and use it in GitHub Desktop.
Bash, cehck file is older then given number of days
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
# seen on SO | |
__older="$(( $(date +%s) - $(stat -L --format %Y ${file} ) > (${__age}*60*60) ))" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment