Category : Files from Magazines
Archive   : AWKWARD.ZIP
Filename : LISTING.3

 
Output of file : LISTING.3 contained in archive : AWKWARD.ZIP
#Listing 3. Constructing advice table from failure replacement relation.

01 # $1 = teststep; $2 = action; $3 = part; $4 = serial
02
03 BEGIN {
04 teststep = "";
05 replacement = ""
06 counter = 0;
07 }
08
09 {
10 NF == 4) {
11 if (teststep == $1 && replacement == $3)
12 counter++;
13 else {
14 printf("%s\t%2d\d%s\n", teststep, counter, replacement) | "sort -r"
15 teststep = $1;
16 replacement = $3;
17 counter = 1;
18 }
19 }


  3 Responses to “Category : Files from Magazines
Archive   : AWKWARD.ZIP
Filename : LISTING.3

  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/