[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
4.9.10 Summary of getline
Variants
table-getline-variants
summarizes the eight variants of getline
,
listing which built-in variables are set by each one,
and whether the variant is standard or a gawk
extension.
Variant | Effect | Standard / Extension |
---|---|---|
getline | Sets $0 , NF , FNR , and NR | Standard |
getline var | Sets var, FNR , and NR | Standard |
getline < file | Sets $0 and NF | Standard |
getline var < file | Sets var | Standard |
command | getline | Sets $0 and NF | Standard |
command | getline var | Sets var | Standard |
command |& getline | Sets $0 and NF | Extension |
command |& getline var | Sets var | Extension |
Table 4.1: getline Variants and What They Set