xref: /illumos-gate/usr/src/test/util-tests/tests/awk/examples/awk/p.42 (revision 241c90a06e8d1708235651863df515a2d522a03a)
1/Asia/		{ pop["Asia"] += $3 }
2/Africa/	{ pop["Africa"] += $3 }
3END		{ print "Asian population in millions is", pop["Asia"]
4		  print "African population in millions is", pop["Africa"] }
5