xref: /illumos-gate/usr/src/test/util-tests/tests/awk/examples/awk/p.42 (revision 45ede40b2394db7967e59f19288fae9b62efd4aa)
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