ยง2024-10-31

Notes about shell script that I am not familiar with!

  1. export RED='\033[0;31m'
export RED='\033[0;31m'
export NC='\033[0m'  # No Color
echo -e "${RED}This text will be red!${NC} And this text will be normal."

the -e flag in the echo command enables interpretation of backslash escapes, allowing the color codes to work properly.

echo -e "Hello,\nWorld!"