Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!watmath!clyde!akgua!mcnc!decvax!wivax!cadmus!harvard!seismo!hao!hplabs!sri-unix!tcs%usna.uucp@BRL-BMD.ARPA
From: tcs%usna.uucp@BRL-BMD.ARPA
Newsgroups: net.unix
Subject: creating pipes in find(1)
Message-ID: <12378@sri-arpa.UUCP>
Date: Tue, 25-Sep-84 14:51:16 EDT
Article-I.D.: sri-arpa.12378
Posted: Tue Sep 25 14:51:16 1984
Date-Received: Sat, 29-Sep-84 10:33:22 EDT
Lines: 20

How do I build a pipe within the exec portion of find?
Example:
	find /etc -name printcap -exec cat {} | lpr \;

I've tried lots of combinations of escaped parens, exec'ing
the shell, etc and nothing works.
I have gotten this to work:
	find /tmp -name tobuy -exec junk1 {} \;

junk1:
	cat $1 | more

But I'd rather know how to do it without having another file
lying around.

If it can be done, please explain the combination of
escapes, etc you use make it work.  Thanks.
	-tcs
	Terry Slattery	  U.S. Naval Academy	301-267-4413
	ARPA: tcs@brl-bmd     UUCP: decvax!brl-bmd!usna!tcs