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