How to use echo command to output color escape sequence
2 answers
Depending on what environment or shell you are using might have an effect, one thing you can probably do is use ANSI-C
quoting:
echo $'\e[1;34m'${domain}$'\e[0m'
Words of the form $ 'string' are specially processed. The word is expanded to a string with replaced backslashes as specified in the ANSI C Standard.
https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
+4
source to share