Skip to content

Instantly share code, notes, and snippets.

@flickerfly
Created May 16, 2017 19:10
Show Gist options
  • Save flickerfly/98f7d862a95abb6994ff4294b9a3db45 to your computer and use it in GitHub Desktop.
Save flickerfly/98f7d862a95abb6994ff4294b9a3db45 to your computer and use it in GitHub Desktop.
Count, right aligned
final=800
counter=0
while [ $counter -le $final ]; do
printf "\r %75s/%4s" $counter $final
sleep 1
((counter++));
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment