vi countdown.sh; # create a new file with those lines
#!/bin/bash
COUNT=10
while (( COUNT > 0 ))
do
echo -e “$COUNT \c”
sleep 1;
(( COUNT — ))
done
echo -e “\n\nWe have lift off!!”
ESC 😡 # save and quit vi
# mark the script as runnable
chmod +x !$
# or
chmod +x bin/countdown.sh
# and run it – nice countdown
liked this article?
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!