Created
January 14, 2022 05:41
-
-
Save ndunks/223e5116d26d74b3f8ecb6ea2236f47e 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 | |
DELAY=0.3 | |
STEP=0 | |
ART_CHARS="—\\—//" | |
while true; do | |
IDX=$(( $STEP % 4 )) | |
CHAR=${ART_CHARS:$IDX:1} | |
echo -e -n "\r" | |
printf "$CHAR %.0s" {1..50} | |
STEP=$(( $STEP + 1 )) | |
sleep $DELAY | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment