xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/setrec1.awk (revision d8109ce4330e1b8ad6c29f9fccacec969066bb9d)
1function reassign(x, y) {
2   $0 = x
3   print y
4}
5
6BEGIN {
7   $0 = substr("geronimo", 5, 3)
8   reassign(" 52", $1)
9}
10