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