mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-11-18 19:09:31 +00:00
ddb82cb2e0
Maybe someday I'll become adept at using cvs...
8 lines
197 B
Awk
8 lines
197 B
Awk
# print continents and populations, sorted by population
|
|
|
|
BEGIN { FS = "\t" }
|
|
{ pop[$4] += $3 }
|
|
END { for (c in pop)
|
|
printf("%15s\t%6d\n", c, pop[c]) | "sort -t'\t' +1rn"
|
|
}
|