
Zach K. answered 08/25/22
Tutor
3.8
(5)
Senior UNIX Systems Administrator
RED="\e[31m"
ENDCOLOR="\e[0m"
echo -e "${RED}Red text${ENDCOLOR}"

Zach K. answered 08/25/22
Senior UNIX Systems Administrator
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Zach K.
https://dev.to/ifenna__/adding-colors-to-bash-scripts-48g408/25/22