Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.i386 Subject: Re: find in ISC 2.02 Keywords: ISC Message-ID: <3805@auspex.auspex.com> Date: 2 Aug 90 01:09:54 GMT References: <2618@lamont.ldgo.columbia.edu> <1990Jul31.041206.26868@ddsw1.MCS.COM> Organization: Auspex Systems, Santa Clara Lines: 11 >>... find spents a very long >>time in looking through this directory tree. >>Is there a way to prevent that (searching an unwanted directory) > >find . ! -name /usr/unwanted/\* ... Nice try, but you don't win the dining room set. The "-name" predicate checks *component* names, not *path* names; using "-name", you can tell "find" to ignore any file whose last component is "unwanted", but you can't tell it to ignore any file in directory "/usr/unwanted" in that way.