Skip to content

Instantly share code, notes, and snippets.

@aemonair
Created January 10, 2020 07:52
Show Gist options
  • Save aemonair/49a329f94323ba90e3e7d9dce6b1c914 to your computer and use it in GitHub Desktop.
Save aemonair/49a329f94323ba90e3e7d9dce6b1c914 to your computer and use it in GitHub Desktop.
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