Created
November 8, 2013 23:40
-
-
Save mohapsat/7379401 to your computer and use it in GitHub Desktop.
rotating circle in shell script
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
## --> rotating circle from characters | |
# --> from http://stackoverflow.com/questions/10470139/creating-rotating-circle-using-characters-in-shell-script | |
while sleep 1; do | |
i=$((++i%4 + 2)); | |
printf '\b|/-\' | cut -b 1,$i | tr -d '\n'; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment