Skip to content

Instantly share code, notes, and snippets.

@bitmammoth
Forked from mohapsat/gist:7379401
Created December 31, 2020 06:06
Show Gist options
  • Save bitmammoth/bccc4ae7fea06ab120bda4b066e01562 to your computer and use it in GitHub Desktop.
Save bitmammoth/bccc4ae7fea06ab120bda4b066e01562 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