Skip to content

Instantly share code, notes, and snippets.

@z-------------
Last active August 29, 2015 13:57
Show Gist options
  • Save z-------------/9908433 to your computer and use it in GitHub Desktop.
Save z-------------/9908433 to your computer and use it in GitHub Desktop.
Exceedingly simple bash timer
#!/bin/bash
# timer.sh <start> <interval>
start="$1"
interval="$2"
for ((i=$start;i>=1;i--))
do
printf "$i "
sleep $interval
done
echo Timer done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment