This file contains hidden or 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 | |
| # The following excellent guide was used to find the right ascii escape codes: | |
| # https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797 | |
| let count=10 | |
| echo "Count: $count" | |
| while [ $count -gt 0 ] ; do | |
| echo -en "\x1b[1A\x1b[7C" | |
| printf "%2d\n" $count | |
| sleep 1 |