Node:Getline Summary, Previous:Getline Notes, Up:Getline
getline VariantsThe following table summarizes the eight variants of getline,
listing which built-in variables are set by each one.
| getline | Sets $0,NF,FNR, andNR | 
| getlinevar | Sets var, FNR, andNR | 
| getline <file | Sets $0andNF | 
| getline var < file | Sets var | 
| command | getline | Sets $0andNF | 
| command | getlinevar | Sets var | 
| command |& getline | Sets $0andNF. 
This is agawkextension | 
| command |& getlinevar | Sets var. 
This is a gawkextension |