getlinegetline
[var
] [<
file
]or command | getline
[var
]
Read next line of input. Original awk
doesn't support the syntax to open multiple input streams. The first form reads input from file
; the second form reads the output of command
. Both forms read one record at a time, and each time the statement is executed, it gets the next record of input. The record is assigned to |
|