how do I filter out permissions errors out of find / | grep foo output?
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 / -iname '*foo*'
find / 2>/dev/null | grep foo
find \ |& grep 'No Such'
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
7 years ago