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