#!/bin/sh awk '{a[$2]+=$1} END {for (cust in a) { printf ("%s %s\n",cust,a[cust]);}}'