Path: utzoo!mnetor!uunet!steinmetz!davidsen
From: davidsen@steinmetz.ge.com (William E. Davidsen Jr)
Newsgroups: comp.unix.questions
Subject: Re: 'find' - can i prune on the basis of pathnames?
Message-ID: <10780@steinmetz.ge.com>
Date: 10 May 88 19:10:18 GMT
References: <435@stylus.cme-durer.ARPA>
Reply-To: davidsen@crdos1.UUCP (bill davidsen)
Organization: General Electric CRD, Schenectady, NY
Lines: 11
Keywords: find prune path versus filename question

Considering your application, you can get there from here by
  find . -name foo -print | egrep -v '\./name1|\./name1/" > file

The problem is that -prune only looks at the current filename
(basename). Therefore the name xxx is omitted from the output, but names
of the format xxx/anything will not be. I do much the same thing, and
drop anything with the string "/tmp/" in the name.
-- 
	bill davidsen		(wedu@ge-crd.arpa)
  {uunet | philabs | seismo}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me