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