in reply to opendir in file find

Just use the -x test on the directory. You can store the ones that fail in an array for the listing later.

Replies are listed 'Best First'.
Re: Re: opendir in file find
by skyknight (Hermit) on Jul 25, 2003 at 16:56 UTC

    I don't think that is the question he was asking... I was under the impression that by being able to "search" a directory, he meant being able to list its contents. Having execute permissions on a directory makes you able to "cd" through a directory, but does not let you list its contents. As such, a more appropriate test is being able to read the directory, and thus the file test operator he wants is -r.