awk/testdir/p.42
Arnold D. Robbins d6c466c367 Extract testdir.
2019-06-23 03:13:57 -06:00

5 lines
186 B
Plaintext

/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"] }