xref: /freebsd/contrib/one-true-awk/testdir/p.50 (revision 55141f2c8991b2a6adbf30bb0fe3e6cbc303f06d)
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