When using grep, the default is to match the content without color.
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/8B/81/wKiom1hPuMbAyBiWAAAnXKOmpe0223.jpg-wh_500x0-wm_3 -wmp_4-s_2335025337.jpg "title=" alias1.jpg "alt=" Wkiom1hpumbaybiwaaanxkompe0223.jpg-wh_50 "/>
To add color to the match, you can add--color=auto to the back.
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/8B/81/wKiom1hPuOvxFOlaAAAgpHZDKiA391.jpg-wh_500x0-wm_3 -wmp_4-s_2069313257.jpg "title=" alias2.jpg "alt=" Wkiom1hpuovxfolaaaagphzdkia391.jpg-wh_50 "/>
But each time add--color=auto is troublesome, so alias app,alias gerp= "grep--color=auto"
This is a lot of convenience, but found that after each reboot this command disappears, how to make alias permanent effect?
In CentOS: Vim ~/.BASHRC
Add alias gerp= "grep--color=auto"
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/8B/7D/wKioL1hPuRPC6-qOAAAg6lx9kc4500.png-wh_500x0-wm_3 -wmp_4-s_2898752120.png "title=" Alias3.png "alt=" Wkiol1hpurpc6-qoaaag6lx9kc4500.png-wh_50 "/>
This will not be added in the future, you can use the common (long) command, add here, improve operational efficiency
Alias is permanently active