xref: /freebsd/contrib/one-true-awk/testdir/t.nameval (revision 2a58b312b62f908ec92311d1bd8536dbaeb8e55b)
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