🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1733

Re: How do you pipe after a here document

#1733
From: Jonathan I. Kamens
Date: Thu, 08 Nov 1990 22:13
22 lines
1110 bytes
In article <1990Nov8.201508.13222@cid.aes.doe.CA>, afsipmh@cidsv01.cid.aes.doe.CA writes:
|> #! /bin/sh
|> cat <<END
|> I,ve got
|> a lovely
|> bunch of coconuts
|> END 
|> | grep coconuts

  This seems to work for me:

    cat <<END | grep coconuts
    I've got
    a lovely
    bunch of coconuts
    END

-- 
Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik@Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710
Technical Details
Message-ID: <1990Nov8.221332.10882@athena.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!caen!uakari.primate.wisc.edu!samsung!olivea!mintaka!bloom-beacon!athena.mit.edu!jik
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!hellgate.utah.edu!caen!uakari.primate.wisc.edu!samsung!olivea!mintaka!bloom-beacon!athena.mit.edu!jik
From: jik@athena.mit.edu (Jonathan I. Kamens)
Newsgroups: comp.unix.shell
Subject: Re: How do you pipe after a here document
Message-ID: <1990Nov8.221332.10882@athena.mit.edu>
Date: 8 Nov 90 22:13:32 GMT
References: <1990Nov8.201508.13222@cid.aes.doe.CA>
Sender: daemon@athena.mit.edu (Mr Background)
Reply-To: jik@athena.mit.edu (Jonathan I. Kamens)
Distribution: na
Organization: Massachusetts Institute of Technology
Lines: 22