find in ISC 2.02

Guy Harris guy at auspex.auspex.com
Thu Aug 2 11:09:54 AEST 1990


>>... 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.



More information about the Comp.unix.i386 mailing list