How do you pipe after a here document
Conor P. Cahill
cpcahil at virtech.uucp
Fri Nov 9 23:35:16 AEST 1990
In article <1990Nov8.201508.13222 at cid.aes.doe.CA> afsipmh at 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
More information about the Comp.unix.shell
mailing list