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