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