help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Use stdin without tempfile


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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]