Handle color code

p1=text1
p2=text2(in red color)

when i am trying to replace $p1 with $p2, content of the file from text2 become red. so when i open that file using vi its showing color code before tex2.
please suggest me how to omit that color code and make content of that file in default color?

Hi Biplab...

http://en.wikipedia.org/wiki/ANSI_escape_code

This is for *NIX flavours and you can do loads more than just colours...

If you are using Windows then on CMD.EXE use the builtin COLOR command which will ONLY change foreground and background colours as a whole.

If you use Windows PowerShell then good luck as it is a RPITA...