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.
Just pipe your unfiltered output into a single instance of grep and use an extended regexp to declare what you want to ignore:
Edit: To search multiple files maybe try
Edit: Ooh. I forgot to add the simple trick to stop a cringeable use of multiple grep instances, namely
Replacing that with
removes the need of the second grep.