qse/regress/awk/cou-024.awk

5 lines
171 B
Awk
Raw Permalink Normal View History

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