github.com/benhoyt/goawk@v1.8.1/testdata/gawk/setrec1.awk (about) 1 function reassign(x, y) { 2 $0 = x 3 print y 4 } 5 6 BEGIN { 7 $0 = substr("geronimo", 5, 3) 8 reassign(" 52", $1) 9 }