Skip to content

Instantly share code, notes, and snippets.

@animatedlew
Created March 24, 2019 22:09
Show Gist options
  • Save animatedlew/271460cbb79fde9ac1af81de3ffae5ea to your computer and use it in GitHub Desktop.
Save animatedlew/271460cbb79fde9ac1af81de3ffae5ea to your computer and use it in GitHub Desktop.
#!/bin/bash
tput reset
icon=("|" "/" "-" "\\")
for n in {1..100}
do
tput cup 0 0
echo "${icon[n%4]}"
sleep 0.1
done
tput cup 1 0
echo bye!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment