awk/testdir/p.42

5 lines
186 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
/Asia/ { pop["Asia"] += $3 }
/Africa/ { pop["Africa"] += $3 }
END { print "Asian population in millions is", pop["Asia"]
print "African population in millions is", pop["Africa"] }