Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- MAX=100
- [ -z "${1##*[!0-9]*}" ] || MAX=$1
- while [ $((VAL=$VAL+1)) -le $MAX ]; do
- printf "\r%$((${#MAX}+1))s" $VAL"%"
- sleep 0.02s
- done
- echo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement