awk/testdir/t.nameval
Arnold D. Robbins d6c466c367 Extract testdir.
2019-06-23 03:13:57 -06:00

8 lines
132 B
Plaintext

{ if (amount[$2] == "")
name[++n] = $2
amount[$2] += $1
}
END { for (i = 1; i <= n; i++)
print name[i], amount[name[i]]
}