How to make a countdown timer in bash

In this tutorial we will show you how to make three versions of a countdown timer in bash. We start with a simple countdown timer, then progress to a more colorful version, and finally a fancier version which uses tput for screen coloring and cursor positioning.