Re: piping a group of lines to a program
- From: Douglas O'Neal <oneal@xxxxxxxxxxxx>
- Date: Wed, 30 May 2007 08:14:47 -0400
rhXX wrote:
hi all,
i want to send a group of lines to a program in a script shell.
now i'm using:
echo "line 1" > $TMPFILE
echo "line 2" >> $TMPFILE
...
echo "line N" >> $TMPFILE
cat $TMPFILE | prog
rm -f $TMPFILE
it seems me very primitive, create / delete a temp file only to
"group" the lines for piping
is it any method to pipe these line directly without temp file?
tks in advance
(echo "line 1"; echo "line 2"; ... ; echo "line N") | prog
.
- Follow-Ups:
- Re: piping a group of lines to a program
- From: rhXX
- Re: piping a group of lines to a program
- References:
- piping a group of lines to a program
- From: rhXX
- piping a group of lines to a program
- Prev by Date: piping a group of lines to a program
- Next by Date: Re: piping a group of lines to a program
- Previous by thread: piping a group of lines to a program
- Next by thread: Re: piping a group of lines to a program
- Index(es):
Relevant Pages
|