Last active
August 29, 2015 14:03
-
-
Save matteomattei/5b66924fa2c2053cde8a to your computer and use it in GitHub Desktop.
Simple countdown in Bash
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
#!/bin/bash | |
# A simple countdown in Bash | |
echo -n "countdown..." | |
for i in 1 2 3 4 5 6 7 8 9 10 | |
do | |
echo -n -e "\rcountdown... ${i}" | |
sleep 1 | |
done | |
echo -e "\nDONE!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment