Click to See Complete Forum and Search --> : find - ignore dirs/files with permission denied


bugfix
11-23-2000, 02:27 PM
How to I do a find and ignore the files who's permission is denied. They just spool off the screen too quick. I've piping the output to grep but that doesn't work. e.g.

find / -name foo | grep foo

Any ideas?

speck
11-23-2000, 05:20 PM
If you want to ignore files where the permission is denied, try:

find / -name foo 2>/dev/null

It looks like what you're trying to do is:

find / -name foo | grep foo | more

Speck