# This awk script finds names, titles, and keywords in S-PLUS help files, # and returns a summary of information on stdout. # The usage is awk -f filename1 [...] # (the help files should have .FN(s), .TL, and .KW(s). BEGIN { grokking_fn = 1; grokking_tl = 2; grokking_kw = 3; OFILENAME = FILENAME; } { # If the file changes, show what information we've gleaned from lasts file, # and reset for the this file. if (FILENAME != OFILENAME) { # show summary is repeated in the END section to get # the summary for the last file. # show summary for this file. for (name=0; name