Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!sdd.hp.com!usc!ucsd!rutgers!mcnc!uvaarpa!murdoch!savant!jon From: jon@savant.UUCP (Jon Gefaell) Newsgroups: comp.unix.i386 Subject: Re: find in ISC 2.02 Keywords: ISC Message-ID: <871@savant.UUCP> Date: 6 Aug 90 18:49:34 GMT References: <2618@lamont.ldgo.columbia.edu> <1990Jul31.041206.26868@ddsw1.MCS.COM> <3805@auspex.auspex.com> Reply-To: jon@savant.UUCP (Jon Gefaell) Organization: Savant System, Public Interactive Media: Charlottesville, Va. Lines: 22 In article <3805@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: >>>... 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. Woudn't find . -type d -name ! /usr/unwanted do the trick? I have no idea, I'm just a novice :) -- +----------- Domain? DOMAIN? We Don't Need No Steeeenkin' Domain! -----------+ | /\ | | / \ | | / \ | | ~~~~~~~~~~ | +-savant!jon@virginia.edu {...}!uunet!virginia!savant!jon jeg7e@virginia.edu-+