Category : Miscellaneous Language Source Code
Archive   : AWK320.ZIP
Filename : TABLE.AWK

 
Output of file : TABLE.AWK contained in archive : AWK320.ZIP
# form1 - format countries data by continent, pop. den.

# AKW p91

BEGIN { FS = "\t" # make tab the field separator
printf("%10s %6s %5s %s\n\n",
"COUNTRY", "AREA", "POP", "CONTINENT")
}
{ printf("%10s %6d %5d %s\n", $1, $2, $3, $4)
area = area +$2
pop = pop + $3
}
END { printf("\n%10s %6d %5d\n", "TOTAL", area, pop) }



  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : AWK320.ZIP
Filename : TABLE.AWK

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/