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