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 -
I redirect stderr to stdout and then use grep's invert-match (-v) to exclude the warning/error string that I want to hide:
stderr
stdout
-v
grep -r * 2>&1 | grep -v "No such file or directory"