Created
October 22, 2018 09:19
-
-
Save whizzalan/2f628d0e346c7428d7edc73cbebd5b4d to your computer and use it in GitHub Desktop.
Watch File Example
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
watch_file=`stat -c %Y owen_watch_file.sh`; | |
now_=`date +%s`; | |
if [ $[ $now_-$watch_file ] -gt 1 ];then | |
echo 'Owen Good Job!'; | |
else | |
echo 'This file Not be changed!'; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment