github.com/benhoyt/goawk@v1.8.1/testdata/t.beginnext (about)

     1  BEGIN {
     2  	while (getline && n++ < 10)
     3  		print
     4  	print "tenth"
     5  }
     6  { print }