/^[0-9][0-9]*$/ { curscreen = 0 + $1; nlines[curscreen] = 0; next; } { lines[curscreen "," nlines[curscreen]] = $0; nlines[curscreen] ++; } END { if (nlines[curscreen] == 0) curscreen --; nscreens = curscreen + 1; printf("int nhelpscreens = %d;\n",nscreens); maxnl = 0; for (i=0;i maxnl) maxnl = nlines[i]; } printf("int helpmaxnl = %d;\n",maxnl); printf("int helpmaxmw;\n"); printf("int helpnlines[] = {"); for (i=0;i