xref: /freebsd/contrib/one-true-awk/testdir/t.nameval (revision 23f24377b1a9ab6677f00f2302484d6658d94cab)
1*23f24377SWarner Losh	{ if (amount[$2] == "")
2*23f24377SWarner Losh		name[++n] = $2
3*23f24377SWarner Losh	  amount[$2] += $1
4*23f24377SWarner Losh	}
5*23f24377SWarner LoshEND	{ for (i = 1; i <= n; i++)
6*23f24377SWarner Losh		print name[i], amount[name[i]]
7*23f24377SWarner Losh	}
8