Created
April 21, 2016 04:19
-
-
Save faizal2007/a0d86cec2bbdd808cc50bfac4a87c032 to your computer and use it in GitHub Desktop.
Over rite output line by line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
c=5 # seconds to wait | |
REWRITE="\e[25D\e[1A\e[K" | |
echo "Starting..." | |
while [ $c -gt 0 ]; do | |
c=$((c-1)) | |
sleep 1 | |
echo -e "${REWRITE}Backup Bola..$c" | |
done | |
echo -e "${REWRITE}Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment