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