When grep’ing through code on OSX or linux, .svn files are a pain because grep will find code in the source file and in the corresponding svn file. To fix this, use the below bash script to omit .svn directories from grep searches.
Code Grep (cg)
Create a cg script in
1 2 3 4 5 6 7 8 9
Thanks to Maresa Nirwan’s article.
Include a few extra vars in your ~/.profile
1 2 3 4
And reload the profile with the source command