🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1741

Re: How do you pipe after a here document

#1741
From: Dewey Paciaffi
Date: Fri, 09 Nov 1990 14:52
26 lines
883 bytes
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 <<END
-I,ve got
-a lovely
-bunch of coconuts
-END 
-| grep coconuts
-
-The above doesn't work so how can I do it?

Like this:

#! /bin/sh
cat <<END | grep coconuts
I,ve got
a lovely
bunch of coconuts
END 


-- 
Dewey Paciaffi           ...!uunet!edi386!eddjp
Technical Details
Message-ID: <121@edi386.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!edi386!eddjp
References: <1990Nov8.201508.13222@cid.aes.doe.CA>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!edi386!eddjp
From: eddjp@edi386.UUCP ( Dewey Paciaffi )
Newsgroups: comp.unix.shell
Subject: Re: How do you pipe after a here document
Message-ID: <121@edi386.UUCP>
Date: 9 Nov 90 14:52:57 GMT
References: <1990Nov8.201508.13222@cid.aes.doe.CA>
Reply-To: eddjp@edi386.UUCP ( Dewey Paciaffi )
Distribution: na
Organization: J.M. Huber Corp., Edison,NJ
Lines: 26