awk/testdir/p.50

5 lines
120 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
BEGIN { FS = "\t" }
{ pop[$4 ":" $1] += $3 }
END { for (cc in pop)
print cc ":" pop[cc] | "sort -t: -k 1,1 -k 3nr" }