Created
June 29, 2012 15:54
-
-
Save themiurgo/3018767 to your computer and use it in GitHub Desktop.
Seconds elapsed since last update of a file
This file contains 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
# FILL FILENAME | |
# Return the seconds from last modification of a file, among a list of files | |
file=$(ls FILENAME -hant --time-style +%s | head -n1 | awk '{print $6}' ) ; now=$(date +%s); echo $((now-file)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment