gno/usr.bin/awk/tests/ch2p34.awk

5 lines
150 B
Awk
Raw Normal View History

$3 > maxpop { maxpop = $3; country = $1 }
END { print "country with largest population:",
country, maxpop
}