Article View: comp.unix.shell
Article #1730How do you pipe after a here document
From: afsipmh
Date: Thu, 08 Nov 1990 20:15
Date: Thu, 08 Nov 1990 20:15
17 lines
912 bytes
912 bytes
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? -- Pat Hertel Canadian Meteorological Centre Analyst/Programmer 2121 N. Service Rd. % rm God phertel@cmc.aes.doe.ca Dorval,Quebec rm: God non-existent Environment Canada CANADA H9P1J3
Technical Details
Message-ID:
<1990Nov8.201508.13222@cid.aes.doe.CA>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!cidsv01.cid.aes.doe.CA!cidsv01.cid.aes.doe.CA!afsipmhShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!cidsv01.cid.aes.doe.CA!cidsv01.cid.aes.doe.CA!afsipmh From: afsipmh@cidsv01.cid.aes.doe.CA Newsgroups: comp.unix.shell Subject: How do you pipe after a here document Message-ID: <1990Nov8.201508.13222@cid.aes.doe.CA> Date: 8 Nov 90 20:15:08 GMT Sender: afsipmh@cid.aes.doe.CA (Patrick Hertel) Reply-To: afsipmh@cidsv01.cid.aes.doe.CA () Distribution: na Organization: Environment Canada Lines: 17