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


Logout and then login.

11. August 2008 by Neependra
Categories: Uncategorized | Tags: | Leave a comment

Leave a Reply