qse/ase/test/awk/cou-025.awk

7 lines
218 B
Awk
Raw Normal View History

2006-12-05 11:34:20 +00:00
/Asia/ { pop["Asia"] += $3; }
/Europe/ { pop["Europe"] += $3; }
END { print "Asian population is", pop["Asia"], "million.";
print "European population is", pop["Europe"], "million.";
}