Skip to content

Instantly share code, notes, and snippets.

@ndunks
Created January 14, 2022 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndunks/223e5116d26d74b3f8ecb6ea2236f47e to your computer and use it in GitHub Desktop.
Save ndunks/223e5116d26d74b3f8ecb6ea2236f47e to your computer and use it in GitHub Desktop.
#!/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