home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / cmplangm / 1989_6 / awk / asia.awk < prev    next >
Text File  |  1988-02-25  |  170b  |  5 lines

  1. $4 == "Asia" { pop = pop + $3; n = n + 1 }
  2. END          { print "Total population of the", n,
  3.                    "Asian countries is", pop, "million."
  4.              }
  5.