Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!melpar!toppin From: toppin@melpar.UUCP (Doug Toppin X2075) Newsgroups: comp.unix.questions Subject: find - do not descend into directory? Keywords: find Message-ID: <104@melpar.UUCP> Date: 5 Jan 90 23:32:17 GMT Organization: E-Systems, Falls Church, VA Lines: 14 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