Created
November 8, 2019 10:14
-
-
Save boillodmanuel/676b3af823fae4177f1d0b41a6f23442 to your computer and use it in GitHub Desktop.
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
sleep-with-countdown() { | |
secs=$1 | |
while [ $secs -gt 0 ]; do | |
printf "\rsleep: $secs\033[0K" | |
sleep 1 | |
: $((secs--)) | |
done | |
printf "\n" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very helpful