Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!psuvax1!rutgers!cunixf.cc.columbia.edu!cubmol!ping From: ping@cubmol.bio.columbia.edu (Shiping Zhang) Newsgroups: comp.unix.shell Subject: Re: How do you pipe after a here document Message-ID: <1990Nov8.220829.11578@cubmol.bio.columbia.edu> Date: 8 Nov 90 22:08:29 GMT References: <1990Nov8.201508.13222@cid.aes.doe.CA> Reply-To: ping@cubmol.bio.columbia.edu (Shiping Zhang) Distribution: na Organization: Dept. of Biology, Columbia Univ., New York, NY Lines: 24 In article <1990Nov8.201508.13222@cid.aes.doe.CA> afsipmh@cidsv01.cid.aes.doe.CA () writes: > I want to do something like the following: >#! /bin/sh >cat <I,ve got >a lovely >bunch of coconuts >END >| grep coconuts >The above doesn't work so how can I do it? Try the following: #! /bin/sh cat <