Technical
Grep Without Svn Folders

I was really annoyed of seeing .svn in my greps, its even more annoying when you grepping in the absolutely unknown code, so I googled and almost right away came across this great blog entry from State Of Flux I do copy his code here but only just for the record ( without claiming any credit whatsoever)



find . -path '*/.svn' -prune \
    -o -path '*/vendor' -prune \
    -o -path '*/log' -o -path '*~' -prune \
    -o \( -size -100000c -type f \) \
    -print0 | xargs -0 grep -ne "SEARCH" 

I created and alias called super_find in ~/.bashrc (on ubuntu) so your final bash would look like:


alias super_find="find . -path '*/.svn' -prune \
    -o -path '*/vendor' -prune \
    -o -path '*/test' -prune \
    -o -path '*/spec' -prune \
    -o -path '*/log' -o -path '*~' -prune \
            -o \( -size -100000c -type f \) \
                -print0 | xargs -0 grep -ne"