|
| From: | Eduardo A . Bustamante L贸pez |
| Subject: | Re: [Help-bash] Use stdin without tempfile |
| Date: | Sun, 1 Dec 2013 18:54:58 -0800 |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
> > {
> > for i in {1..10}
> > do read -r line
> > echo "$line"
> > done | prog1
> >
> > prog2
> > } < "$1"
>
> 10 is just an example. When 10 becomes a very large number or the
> input is very long, I guess this is not very efficient? Is there a
> more efficient solution?
What makes you think it's not 芦efficient禄 (whatever that means to
you)? What tests did you do? What's the real use case here?
--
Eduardo Alan Bustamante L贸pez
| [Prev in Thread] | Current Thread | [Next in Thread] |