manpagez: man pages & more
info gawk
Home | html | info | man
[ < ] [ > ]   [ << ] [ 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.

VariantEffectStandard / Extension
getlineSets $0, NF, FNR, and NRStandard
getline varSets var, FNR, and NRStandard
getline < fileSets $0 and NFStandard
getline var < fileSets varStandard
command | getlineSets $0 and NFStandard
command | getline varSets varStandard
command |& getlineSets $0 and NFExtension
command |& getline varSets varExtension

Table 4.1: getline Variants and What They Set


© manpagez.com 2000-2024
Individual documents may contain additional copyright information.