Created
January 10, 2020 07:52
-
-
Save aemonair/49a329f94323ba90e3e7d9dce6b1c914 to your computer and use it in GitHub Desktop.
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
for (( i = 0; i < 600; i++ ));do | |
thistime=$(date "+%H:%M:%S" -d "00:00:00 $i second") | |
echo $thistime >> log | |
done | |
for (( i = 0; i < 600; i++ ));do | |
thistime=$(date "+%H:%M:%S" -d "00:00:00 $i second") | |
echo $thistime | |
echo $thistime >> result.log | |
echo $(grep -o $thistime log | wc -l) >> result.log | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment