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