find in ISC 2.02
Jon Gefaell
jon at savant.UUCP
Tue Aug 7 04:49:34 AEST 1990
In article <3805 at auspex.auspex.com> guy at 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 at virginia.edu {...}!uunet!virginia!savant!jon jeg7e at virginia.edu-+
More information about the Comp.unix.i386
mailing list