how do I filter out permissions errors out of find / | grep foo output?
Asked
Active
Viewed 275 times
1 Answers
2
Well, I think find / -iname '*foo*'
would be a better command. But you can redirect stderr to /dev/null to get rid of all errors. Or redirect stderr to stdout and then filter with grep:
find / 2>/dev/null | grep foo
find \ |& grep 'No Such'

Kyle Brandt
- 83,619
- 74
- 305
- 448
-
find / -iname '*foo*', definitely ;-) – David Z May 22 '09 at 17:41