BASH - Adding coloured text

Programming - Bourne / BASH

 

This will simply print your text in red. 

echo -e '\E[31mThis prints in red.'; tput sgr0

If you need any further information or want to know how to add bold, underlining, or background colours to your text click here. 

 

 

 

 

 

 

 

 

Article updates via email..


We have 20 guests online