I am trying to get my regex highlighted on mac using terminal. I have put this is my .profile:
export GREP_COLOR='1;30;40'
Nothing changes, so I added the same to my bash.profile still nothing, restarted the machine nothing. When I am:
egrep --color=auto ".*\W blah blah "
then it lights up some yellow color but I wondered if I had done something wrong in my .profile or bash_profile.
Any help would be good: snow leopard, with just plain old terminal :-)
GREP_COLORdeprecated? Anywaysgrep --colorshould highlight matches in the default color, without any need for environment variables. – jw013 Mar 23 '12 at 0:07