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

admin