getline
So far we have been getting our input data from awk
's main
input stream--either the standard input (usually your terminal, sometimes
the output from another program) or from the
files specified on the command line. The awk
language has a
special built-in command called getline
that
can be used to read input under your explicit control.
getline
function.
getline
with no arguments.
getline
into a variable.
getline
from a file.
getline
into a variable from a
file.
getline
from a pipe.
getline
into a variable from a
pipe.
getline
Variants.
Go to the first, previous, next, last section, table of contents.