awk/testdir/tt.06

8 lines
68 B
Plaintext

{
x[$1] += length
}
END {
for (i in x)
print i, x[i] | "sort"
}