Posts Tagged exclude
Ignoring .svn directories with grep
Posted by Prentice Wongvibulsin in Development on August 20, 2009
Trying a recursive grep?
grep -RnH (string) (path) gets you all the occurrences of (string) in (path) with line numbers but if you’re working with an SVN folder, a bunch of hits will come up from the .svn folder. Thats pretty annoying… the fix is using the exclude flag.
Try:
grep --exclude *\.svn* -RnH (string) (path)
Beautiful.