On Thu, Mar 26, 2009 at 10:38:20AM +0100, Jan Schampera wrote:
> Lennart Schultz wrote:
> > cat file|while read line
> > do
> > done

> How to do it instead?
> http://bash-hackers.org/wiki/doku.php/syntax/expansion/proc_subst

In this case, he doesn't need a process substitution -- he's just
reading from a file.

while read line; do
 ...
done < file

is all that's required.  (Yes, the process substitution will be
helpful in some of the more demanding problems.)


Reply via email to