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