🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1738

Re: How do you pipe after a here document

#1738
From: Conor P. Cahill
Date: Fri, 09 Nov 1990 12:35
32 lines
1035 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

cat <<END | grep coconuts
junk
goes
here
coconuts
END

or

cat <<END |
junk
goes 
here
coconuts
END
grep coconuts
-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 
Technical Details
Message-ID: <1990Nov09.123516.6407@virtech.uucp>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!virtech!cpcahil
References: <1990Nov8.201508.13222@cid.aes.doe.CA>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!virtech!cpcahil
From: cpcahil@virtech.uucp (Conor P. Cahill)
Newsgroups: comp.unix.shell
Subject: Re: How do you pipe after a here document
Message-ID: <1990Nov09.123516.6407@virtech.uucp>
Date: 9 Nov 90 12:35:16 GMT
References: <1990Nov8.201508.13222@cid.aes.doe.CA>
Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill)
Distribution: na
Organization: Virtual Technologies Inc., Sterling VA
Lines: 32