Path: utzoo!attcan!utgpu!watmath!watdragon!tiger!achowe From: achowe@tiger.waterloo.edu (anthony howe) Newsgroups: comp.sys.atari.st Subject: gnu awk questions Message-ID: <16459@watdragon.waterloo.edu> Date: 18 Sep 89 02:43:38 GMT Sender: daemon@watdragon.waterloo.edu Reply-To: achowe@tiger.waterloo.edu (anthony howe) Distribution: na Organization: U. of Waterloo, Ontario Lines: 29 I finally tried to use the last version of << GNU AWK >> that came down the pike to do some global text search and delete (since FOLDED 0.9e lacks the ability to search and replace control codes). I quickly review what I needed in the book << The AWK Programming Language >> and tried the following: { gsub( /_\b/, "" ); print } This was meant to globally search and delete all undersorce-backspace combinations (I'm stripping a formatted file of cude underlining and other code that mess up my printer). However AWK keeps giving me an "error near line 1" and quotes just about the whole line. What's wrong? I don't even know the diffs between << GNU AWK >> and the implementation described in the above book. There was no documentation. All I remember was a comment or a small readme that said I should get a copy of my UNIX version's man page. Was there any docs with << GNU AWK >> and if so are not my rights to it being abused by not providing it (as mentioned in every GNU COPYING & LICENSE notice)? - Ant achowe@tiger.waterloo.edu | "Life is not fair. Anyone who tells _ -|-|_ _ | you different is trying to sell you (_\ |\| | | | (_) |\| \/ | something." - The Princess Bride ___/ | disclaimer...