Node:Getline/Variable/Coprocess, Next:Getline Notes, Previous:Getline/Coprocess, Up:Getline
getlineinto a Variable from a Coprocess
When you use
command |& getline var, the output from
the coprocess command is sent through a two-way pipe to
and into the variable var.
In this version of
getline, none of the built-in variables are
changed and the record is not split into fields. The only variable
changed is var.