Tags: denied, dirs, files, ignore, linux, output, permission, piping, screen, software, spool, unix

find - ignore dirs/files with permission denied

On Software » Linux & Unix

461 words with 1 Comments; publish: Thu, 15 Nov 2007 18:59:00 GMT; (40050.78, « »)

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?

All Comments

Leave a comment...

    • 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


      #1; Sat, 17 Nov 2007 22:50:00 GMT