8 lines
135 B
Plaintext
8 lines
135 B
Plaintext
{ if (amount[$2] == "")
|
|
name[++n] = $2
|
|
amount[$2] += $1
|
|
}
|
|
END { for (i in name)
|
|
print i, name[i], amount[name[i]] | "sort"
|
|
}
|