www.delorie.com/gnu/docs/gawk/gawk_56.html   search  
 
Buy the book!


The GNU Awk User's Guide

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.8.10 Summary of getline Variants

The following table summarizes the eight variants of getline, listing which built-in variables are set by each one.

This is a gawk extension This is a gawk extension
getline Sets $0, NF, FNR, and NR
getline var Sets var, FNR, and NR
getline < file Sets $0 and NF
getline var < file Sets var
command | getline Sets $0 and NF
command | getline var Sets var
command |& getline Sets $0 and NF.
command |& getline var Sets var.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003