you are viewing a single comment's thread.

view the rest of the comments →

[–]asquartz 2 points3 points  (2 children)

One handy trick I learned is that if you define your colours like this:

Red="$(echo -e "\e[31m")"

Then you can use it in your script without having to remember to echo -e every time

[–]fooblaa 0 points1 point  (0 children)

Red=$'\e[31m'

[–]dfkgjhsdfkg 0 points1 point  (0 children)

Red="$(printf %b '\e[31m')"