Skip to content

Instantly share code, notes, and snippets.

@belachkar
Created February 16, 2020 18:28
Show Gist options
  • Save belachkar/523fcc9afd02c19ef2d299139de46607 to your computer and use it in GitHub Desktop.
Save belachkar/523fcc9afd02c19ef2d299139de46607 to your computer and use it in GitHub Desktop.
bash count down code

Bash Count Down

#!/bin/bash

echo
echo "==> Count down will start in 3 seconds"
echo
for sec in {1..6}
  do printf "\r %01d" $((7 - ${sec}))
  sleep .5
done
echo -e "\033[2K"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment