Skip to content

Instantly share code, notes, and snippets.

@hamdouni
Created September 4, 2015 22:32
Show Gist options
  • Save hamdouni/3dde2c9641229cafc355 to your computer and use it in GitHub Desktop.
Save hamdouni/3dde2c9641229cafc355 to your computer and use it in GitHub Desktop.
#!/bin/sh
a1="◐"
a2="◒"
a3="◑"
a4="◓"
i=1
while true
do
eval char=\$a$i
printf "%s\r" $char
i=$((i+1))
if test $i -gt 4; then i=1; fi
sleep 1s
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment