qse/ase/cmd/awk/cou-024.awk
2008-03-21 03:49:53 +00:00

5 lines
171 B
Awk

$4 == "Asia" { pop = pop + $3; n = n + 1; }
END { print "Total population of the", n,
"Asian countries is", pop, "million.";
}