Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!cs.utexas.edu!rutgers!att!cbnews!res From: res@cbnews.ATT.COM (Robert E. Stampfli) Newsgroups: comp.unix.questions Subject: partial finds Message-ID: <12847@cbnews.ATT.COM> Date: 5 Jan 90 19:51:36 GMT Reply-To: res@cbnews.ATT.COM (Robert E. Stampfli,55216,cb,1C315,6148604268) Distribution: usa Organization: AT&T Bell Laboratories Lines: 11 Is there anyway to execute a "find" command while explicitly excluding the search of certain branches? For instance, suppose I want to visit each file in an entire Unix system except for those in /u or /usr/src. I have not found any combination of "! -name /u -a ! -name /usr/src" that worked. Of course, I could pipe the results thru grep, but that would be an expensive waste of time if /u and /usr/src contained many files and directories. Anyone have a solution? -- Rob Stampfli / att.com!stampfli (uucp@work) / kd8wk@w8cqk (packet radio) 614-864-9377 / osu-cis.cis.ohio-state.edu!kd8wk!res (uucp@home)