Counting down inline with bash
Mon, 16 July 2018
countdown.sh
target_counter=10 while [[ ${target_counter} -gt 0 ]]; do printf "\\rCounting down from 10: %2d" ${target_counter} sleep 1 ((target_counter--)) done