tenaglia@astroatc.UUCP (Chris Tenaglia) (09/02/89)
Thanks for the observations. I like the 'include' idea a lot. I'm not sure but I think if you at the 'while remove' lines they are (should) be nested in a 'if not(find("keep",flags)) then' structure. Thus, if you have an 'initial' block with 'flags ||:= "keep"' the grepawk files will not be removed. On supression of empty output, if nothing is returned, it fails automatically, causing the write() in the caller to fail. The static and initial are very useful in the update() procedure. Also if you need more procedures, you can end the update() procedure with 'end' and then start 'procedure ????()' on the next line. There are global variables called tty, crt, and kbd. These equate to stdin and stdout for direct i/o. I use them for debugging usually. I think I will try the 'include' idea, and implement another flags value called "log" that will generate an iawk.log file that will record the expressions for later inclusion. If you add some goodies, don't hesitate to mail me a sample. Yours truly, Chris Tenaglia Astronautics Corporation of America 4115 N. Teutonia Avenue Milwaukee, Wi 53209 USA (414) 447-8200 X-421