Saturday, 4 March 2017

How to color every echo line in shell script?

What I want to do is coloring every echo output line in an .sh script.



Like:



echo 'Download stuff...'

wget http://fdsfdsf.com/fgf.png
cd /home
echo 'Got it'


--->



[IN_COLOR]Download stuff...[IN_COLOR]
http://fdsfdsf.com/fgf.png
[IN_COLOR]Got it[IN_COLOR]



...can't paint in ^^

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...