ref: d7f37646965ee26214da0e1d97f3c1d54349ae2d dir: /testdir/t.in2/
{ x[substr($2, 1, 1)] += $1 } END { for (i in x) print i, x[i] }