diff options
Diffstat (limited to 'awklib')
-rw-r--r-- | awklib/eg/network/eliza.awk | 4 | ||||
-rw-r--r-- | awklib/eg/network/remconf.awk | 2 | ||||
-rw-r--r-- | awklib/eg/network/statist.awk | 2 | ||||
-rw-r--r-- | awklib/eg/network/webgrab.awk | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/awklib/eg/network/eliza.awk b/awklib/eg/network/eliza.awk index 15ee2c46..9b85ca95 100644 --- a/awklib/eg/network/eliza.awk +++ b/awklib/eg/network/eliza.awk @@ -22,7 +22,7 @@ function SetUpServer() { function HandleGET() { # A real HTTP server would treat some parts of the URI as a file name. # We take parts of the URI as menu choices and go on accordingly. - if(MENU[2] == "AboutServer") { + if (MENU[2] == "AboutServer") { Document = "This is not a CGI script.\ This is an httpd, an HTML file, and a CGI script all \ in one GAWK script. It needs no separate www-server, \ @@ -54,7 +54,7 @@ function ElizaSays(YouSay) { } else { q = toupper(YouSay) gsub("'", "", q) - if(q == qold) { + if (q == qold) { answer = "PLEASE DONT REPEAT YOURSELF !" } else { if (index(q, "SHUT UP") > 0) { diff --git a/awklib/eg/network/remconf.awk b/awklib/eg/network/remconf.awk index ef922265..56f27142 100644 --- a/awklib/eg/network/remconf.awk +++ b/awklib/eg/network/remconf.awk @@ -13,7 +13,7 @@ function SetUpServer() { if (ConfigFile == "") ConfigFile = "config.asc" } function HandleGET() { - if(MENU[2] == "AboutServer") { + if (MENU[2] == "AboutServer") { Document = "This is a GUI for remote configuration of an\ embedded system. It is is implemented as one GAWK script." } else if (MENU[2] == "ReadConfig") { diff --git a/awklib/eg/network/statist.awk b/awklib/eg/network/statist.awk index a4fc55cf..d0a172cf 100644 --- a/awklib/eg/network/statist.awk +++ b/awklib/eg/network/statist.awk @@ -11,7 +11,7 @@ function SetUpServer() { m1=m2=0; v1=v2=1; n1=n2=10 } function HandleGET() { - if(MENU[2] == "AboutServer") { + if (MENU[2] == "AboutServer") { Document = "This is a GUI for a statistical computation.\ It compares means and variances of two distributions.\ It is implemented as one GAWK script and uses GNUPLOT." diff --git a/awklib/eg/network/webgrab.awk b/awklib/eg/network/webgrab.awk index 41738805..a843da18 100644 --- a/awklib/eg/network/webgrab.awk +++ b/awklib/eg/network/webgrab.awk @@ -1,4 +1,4 @@ -BEGIN { RS = "http://[#%&\\+\\-\\./0-9\\:;\\?A-Z_a-z\\~]*" } +BEGIN { RS = "https?://[#%&\\+\\-\\./0-9\\:;\\?A-Z_a-z\\~]*" } RT != "" { command = ("gawk -v Proxy=MyProxy -f geturl.awk " RT \ " > doc" NR ".html") |