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