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

7 lines
218 B
Awk

/Asia/ { pop["Asia"] += $3; }
/Europe/ { pop["Europe"] += $3; }
END { print "Asian population is", pop["Asia"], "million.";
print "European population is", pop["Europe"], "million.";
}