1*9a7741deSElliott Hughes { if (amount[$2] == "") 2*9a7741deSElliott Hughes name[++n] = $2 3*9a7741deSElliott Hughes amount[$2] += $1 4*9a7741deSElliott Hughes } 5*9a7741deSElliott HughesEND { for (i = 1; i <= n; i++) 6*9a7741deSElliott Hughes print name[i], amount[name[i]] 7*9a7741deSElliott Hughes } 8