How do you pipe after a here document
Conor P. Cahill
cpcahil at virtech.uucp
Sun Dec 2 11:29:15 AEST 1990
In article <1F37P47 at xds13.ferranti.com> peter at ficc.ferranti.com (Peter da Silva) writes:
>OK, so how do you pipe that here document through:
>
> while read foo bar baz
> do
> ....
> done
With the following:
#! /bin/sh
cat <<END |
I,ve got
a lovely
bunch of coconuts
END
while read foo bar baz
do
echo $foo
done
--
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