Posts Tagged findall

Ignoring .svn directories with grep

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.

, , , , , , , , , ,

2 Comments