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