Linux - grep with color highlighting

Quoted from http://www.cyberciti.biz
> grep --color='auto' -i error /var/log/messages

Set for shell default usage
> vi ~/.bash_profile
# add the following lines
export GREP_COLOR='1;37;41'
alias grep='grep --color=auto'

Comments