awk/testdir/t.in2

5 lines
68 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
{ x[substr($2, 1, 1)] += $1 }
END { for (i in x)
print i, x[i]
}