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