Skip to content

Instantly share code, notes, and snippets.

@oakaigh
Created November 7, 2019 04:25
Show Gist options
  • Save oakaigh/6d7d7d58568319e39af141ff9895cb2e to your computer and use it in GitHub Desktop.
Save oakaigh/6d7d7d58568319e39af141ff9895cb2e to your computer and use it in GitHub Desktop.
Shell script for fun
while true; do
printf "\ry "
i=0
while (( i++ <= 20 )); do
printf '\b'
sleep 0.1
printf "et"
done
printf "\r "
done
while true; do
printf "\ry "
for i in {0..5}; do
for j in {0..5}; do
printf '\b'
sleep 0.1
printf "\e[%dm%s\e[0m" $(( i * 16 + j )) "et"
done
done
printf "\r "
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment