xref: /freebsd/contrib/one-true-awk/testdir/p.50 (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
1BEGIN	{ FS = "\t" }
2	{ pop[$4 ":" $1] += $3 }
3END	{ for (cc in pop)
4		print cc ":" pop[cc] | "sort -t: -k 1,1 -k 3nr" }
5