Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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