home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD2.mdf
/
c
/
compcomp
/
awk
/
asia.awk
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1990-02-08
|
245 b
|
8 lines
# compute the total population and number of Asian countries
# AKW p38
$4 == "Asia" { pop = pop + $3; n = n + 1 }
END { print "Total population of the", n,
"Asian countries is", pop, "million."
}