Multiple grep search/ignore patterns

Viewed 41870

I usually use the following pipeline to grep for a particular search string and yet ignore certain other patterns:

grep -Ri 64 src/install/ | grep -v \.svn | grep -v "file"| grep -v "2\.5" | grep -v "2\.6"

Can this be achieved in a succinct manner? I am using GNU grep 2.5.3.

5 Answers
Related