awk/testdir/p.26

4 lines
112 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
/Asia/ { pop = pop + $3; n = n + 1 }
END { print "population of", n,\
"Asian countries in millions is", pop }