I am about to write a shell script. I would like to be able to visually distinguish some of its output text as a warning, by setting its color to yellow.
How is this done?
bashshell-script
I am about to write a shell script. I would like to be able to visually distinguish some of its output text as a warning, by setting its color to yellow.
How is this done?
Best Answer
From "ShellHacks: Bash Colors":
or
\033
or\e
as an Escape character starts the escape sequence, which in this case contains the controls to change colors.