Skip to content

Instantly share code, notes, and snippets.

@stevepaulo
Created March 1, 2018 19:00
Show Gist options
  • Save stevepaulo/4b567085d55b8e74e7a79af5fbfc4b77 to your computer and use it in GitHub Desktop.
Save stevepaulo/4b567085d55b8e74e7a79af5fbfc4b77 to your computer and use it in GitHub Desktop.
Countdown timer in terminal
MIN=10 && for i in $(seq $(($MIN*60)) -1 1); do printf "\r%02d:%02d:%02d" $((i/3600)) $(( (i/60)%60)) $((i%60)); sleep 1; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment