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