Skip to content

Instantly share code, notes, and snippets.

@greymd
Last active January 16, 2017 14:40
Show Gist options
  • Select an option

  • Save greymd/afcd4ef1ae780ff786c793c79b38a86f to your computer and use it in GitHub Desktop.

Select an option

Save greymd/afcd4ef1ae780ff786c793c79b38a86f to your computer and use it in GitHub Desktop.
Spiner with ShellScript
#!/bin/bash
yes "⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏" | tr ' ' '\n' | while read s; do
printf " $s"$'\r'
perl -e 'select(undef, undef, undef, 0.25)'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment