deadprogrammer Asked: 2009-05-23 08:47:48 +0800 CST2009-05-23 08:47:48 +0800 CST 2009-05-23 08:47:48 +0800 CST ignoring errors in find / output 772 how do I filter out permissions errors out of find / | grep foo output? find grep 1 Answers Voted Best Answer Kyle Brandt 2009-05-23T08:54:17+08:002009-05-23T08:54:17+08:00 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'
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: