Let me explain you :-
Suppose
GREEN='\033[00;32m'
I want to redirect the content of the output to a file which will have the font with GREEN colour.
$ echo "$GREEN Hello2 $NONE" >tmp.txt
$ cat tmp.txt
Hello2
When I opening the file using cat command the font of the content of tmp.txt file (i,e; Hello2) is coming in GREEN colour but if I open the file in more command it is not reflecting the desired colour.
Hope you understand the issue now.
Last edited by maitree@123; 07-31-2014 at 08:10 AM.
|