find verbosity

[prev] [thread] [next] [lurker] [Date index for 2003/09/05]

From: Ann Barcomb
Subject: find verbosity
Date: 15:42 on 05 Sep 2003
I admit...this may not be find's fault.  I just notice it with find,
but it really annoys me.  I want a simple way to reduce verbosity.

Specifically, I don't want to hear messages about all the directories
I don't have permission to access.  I know I don't have permission to
access them, so just ignore them and continue!  It's pretty common
for someone to not have access to every file...or are you only
supposed to run the command as root to avoid missing the result hiding
amid the error messages?  Why can't it just ignore directories I don't
have access to?

Example output:
    hrm[1] /home/ann> find /tmp -name foo
    find: /tmp/1/fd: Permission denied
    find: /tmp/2/fd: Permission denied
    find: /tmp/3/fd: Permission denied
    /tmp/foo
    find: /tmp/4/fd: Permission denied
    find: /tmp/5/fd: Permission denied

Ideal output:
    hrm[2] /home/ann> find /tmp -name foo
    /tmp/foo

(If you want to defend find by giving me a solution to this problem, I
actually welcome rationality in this instance.)

Generated at 14:02 on 01 Jul 2004 by mariachi 0.52