Answers for "bash inline countdown"

0

bash inline countdown

secs=$((5 * 60))
while [ $secs -gt 0 ]; do
   echo -ne "$secs\033[0K\r"
   sleep 1
   : $((secs--))
done
Posted by: Guest on October-22-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language