Monday, August 11, 2008

Highlighting the searched keyword with 'grep'.

Add following lines in the ".bashrc" file, which is in your home directory.

alias grep="grep --color"

export GREP_COLOR="1;32"

You can run either run following command to take this change in-effect

$ source ~/.bashrc

OR

Logout and then login.

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home