Skip to content

Instantly share code, notes, and snippets.

@edsoncelio
Last active June 26, 2016 19:50
Show Gist options
  • Save edsoncelio/e628aa4181a6f60d50f63e3728a91043 to your computer and use it in GitHub Desktop.
Save edsoncelio/e628aa4181a6f60d50f63e3728a91043 to your computer and use it in GitHub Desktop.
loading bar in shell script
#!/bin/bash
#loading bar in shell script^^
BARRA="[..................................................]"
passo="="
for i in $(seq 1 50); do
BARRA=${BARRA/./$passo}
sleep 1
clear
echo $BARRA $i"%"
done
echo 'completo!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment