I’ve tested:
RED='\033[0;31m'
echo "${RED}Print red"
echo "Print blue"
But the below text will be printed both in red even if only the first line has the variable
Same happens if I use:
tput setaf 4; echo "Print blue"
echo "Print Magenta"
It will be printing all my following terminal code in blue
I just want to change the color of a single line of code, saying an echo, for example, and nothing else.