Skip to content

Instantly share code, notes, and snippets.

@mohapsat
Created November 8, 2013 23:40
Show Gist options
  • Save mohapsat/7379401 to your computer and use it in GitHub Desktop.
Save mohapsat/7379401 to your computer and use it in GitHub Desktop.
rotating circle in shell script
## --> 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