I am writing a installation script and would like to display the status of the script as it progresses.
example:
var1=\"pending\" var2=\"pending\" va
This code should give you the idea:
while :; do echo "$RANDOM" echo "$RANDOM" echo "$RANDOM" sleep 0.2 tput cuu1 # move cursor up by one line tput el # clear the line tput cuu1 tput el tput cuu1 tput el done
Use man tput for more info. To see the list of capabilities use man terminfo
man tput
man terminfo