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 in name) 6*9a7741deSElliott Hughes print i, name[i], amount[name[i]] | "sort" 7*9a7741deSElliott Hughes } 8