Created
April 25, 2022 20:10
-
-
Save louipc/3982a5331b5ab88cc3cc2c9a61179258 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Wavy thing. | |
| # ,.'`'.,.'`'.,.'`'.,.'`'.,.'`'.,.'`'., | |
| if [ "$1" = "wave" ]; then | |
| cycle=", . ' \` ' ." | |
| while true | |
| do | |
| for char in ${cycle} | |
| do | |
| echo -n $char | |
| sleep .1 | |
| done | |
| done | |
| fi | |
| # Spinner | |
| if [ "$1" = "spinner" ]; then | |
| while true | |
| do | |
| echo -n ' ' | |
| for i in / - \\ \|; do | |
| echo -en "\b$i" | |
| sleep .3 | |
| done | |
| echo -en "\b" | |
| done | |
| fi | |
| # Grower | |
| if [ "$1" = "grower" ]; then | |
| limit=5 | |
| while true | |
| do | |
| echo -n '=' | |
| for i in {1..50}; do | |
| echo -en "=" | |
| sleep .05 | |
| done | |
| for i in {1..50}; do | |
| echo -en "\b \b" | |
| sleep .05 | |
| done | |
| echo -en "\b" | |
| done | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment