How can I have grep not print out ‘No such file or directory’ errors?

I’m grepping through a large pile of code managed by git, and whenever I do a grep, I see piles and piles of messages of the form:

> grep pattern * -R -n
whatever/.git/svn: No such file or directory

Is there any way I can make those lines go away?

10 Answers
10

Leave a Comment