[comp.unix.questions] find - do not descend into directory?

toppin@melpar.UUCP (Doug Toppin X2075) (01/06/90)

We are running SCO Xenix 2.2.3 on the 286.
I am trying to generate a find command that will print everything in
several directories and will not descend into a directory called test.
I have had no luck in doing it in the find itself and have had to
process the output.  What I attempted follows:
 * find . ! -name test -print
 * find . ! \( -type d -name test \) -print
The first tried to exclude the directory test by name,
the second tried to exclude assuming that it needed type and name.
Anything I attempted still went in the test directory.
If anyone knows how to do this please let me know.
thanks
Doug Toppin
uunet!melpar!toppin