colored ouput from bash script

To output text from a bash script, you do echo _text_. If you want to control the color of the output, you do echo -e ‘\E[color1;color2mYour Text.’ (color1 is the foreground, color2 the background color).

For example, for green characters you do echo -e ‘\E[32mtext’, while for red characters you do echo -e ‘\E[31mtext’.