xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/setrec1.awk (revision 5328fc53d11d7151861fa272e4fb0248b8f0e145)
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