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