qse/ase/test/awk/cou-027.out

17 lines
213 B
Plaintext

BEGIN {
FS = " ";
}
{
pop[$4] += $3;
}
END {
for (c in pop)
printf ("%15s %6d\n",c,pop[c]) | "sort -t' ' +1rn";
}
Asia 2173
North America 340
Europe 172
South America 134