Article View: comp.unix.shell
Article #1735Re: How do you pipe after a here document
From: Neil Rickert
Date: Thu, 08 Nov 1990 23:33
Date: Thu, 08 Nov 1990 23:33
36 lines
1203 bytes
1203 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? How about: grep coconuts <<END I,ve got a lovely bunch of coconuts END or even: ( cat <<END I,ve got a lovely bunch of coconuts END ) | grep coconuts -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science <rickert@cs.niu.edu> Northern Illinois Univ. DeKalb, IL 60115. +1-815-753-6940
Technical Details
Message-ID:
<1990Nov8.233350.8495@mp.cs.niu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickertReferences:
<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!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.unix.shell Subject: Re: How do you pipe after a here document Message-ID: <1990Nov8.233350.8495@mp.cs.niu.edu> Date: 8 Nov 90 23:33:50 GMT References: <1990Nov8.201508.13222@cid.aes.doe.CA> Distribution: na Organization: Northern Illinois University Lines: 36