The GNU Awk User's Guide: Getline/File. ... Use ' getline < file ' to read the next record from file . ... For example, the following program reads its input record from the file secondary.input ...
www.gnu.org