Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!romp!auschs!awdprime!doorstop.austin.ibm.com!tif From: tif@doorstop.austin.ibm.com (Paul Chamberlain) Newsgroups: comp.unix.shell Subject: Re: How do you pipe after a here document Message-ID: <4358@awdprime.UUCP> Date: 27 Nov 90 17:15:25 GMT References: <1990Nov8.201508.13222@cid.aes.doe.CA> <27620006@hp-lsd.COS.HP.COM> <1F37P47@xds13.ferranti.com> Sender: news@awdprime.UUCP Reply-To: tif@doorstop.austin.ibm.com (Paul Chamberlain) Organization: IBM AWD, Austin, TX Lines: 28 Summary: Expires: Sender: Followup-To: Keywords: peter@ficc.ferranti.com (Peter da Silva) writes: [asks how to pipe a here document to a complicated command.] Actually, the solution was given in one of the original answers, but it was among several other solutions so it may have been missed. #! /bin/sh # If sh sees a pipe it knows the command is continued cat <