How do you pipe after a here document
Jonathan I. Kamens
jik at athena.mit.edu
Fri Nov 9 09:13:32 AEST 1990
In article <1990Nov8.201508.13222 at cid.aes.doe.CA>, afsipmh at 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 at Athena.MIT.EDU Allston, MA 02134
Office: 617-253-8085 Home: 617-782-0710
More information about the Comp.unix.shell
mailing list