Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash inline countdown

secs=$((5 * 60))
while [ $secs -gt 0 ]; do
   echo -ne "$secs33[0K
"
   sleep 1
   : $((secs--))
done
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #bash #inline #countdown
ADD COMMENT
Topic
Name
1+3 =