Comment on How to choose colors for your CLI applications (2023)parentComments−godelski7moHere's something also useful that's portable declare GRN='\e[1;32m' declare RED='\e[1;31m' declare YLW='\e[1;33m' declare CYN='\e[1;36m' write_log() { echo -e "[$( date +'%c' )] : ${1}\e[0m" | tee -a ${logfile} } write_log "${RED}I'm an ERROR"
Comments
Here's something also useful that's portable