gawk: Getline/Variable/Coprocess
1
1 4.10.8 Using 'getline' into a Variable from a Coprocess
1 -------------------------------------------------------
1
1 When you use 'COMMAND |& getline VAR', the output from the coprocess
1 COMMAND is sent through a two-way pipe to 'getline' and into the
1 variable VAR.
1
1 In this version of 'getline', none of the predefined variables are
1 changed and the record is not split into fields. The only variable
1 changed is VAR. However, 'RT' is set.
1
1 Coprocesses are an advanced feature. They are discussed here only
1 because this is the minor node on 'getline'. ⇒Two-way I/O, where
1 coprocesses are discussed in more detail.
1