Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!columbia!rutgers!okstate!uokmax!rmtodd From: rmtodd@uokmax.UUCP (Richard Michael Todd) Newsgroups: comp.sources.wanted Subject: Re: Awk Message-ID: <638@uokmax.UUCP> Date: Mon, 3-Aug-87 17:43:04 EDT Article-I.D.: uokmax.638 Posted: Mon Aug 3 17:43:04 1987 Date-Received: Wed, 5-Aug-87 04:49:07 EDT References: <659@hsi.UUCP> <3430003@hpsrlc.HP.COM> Reply-To: rmtodd@uokmax.UUCP (Richard Michael Todd) Organization: University of Oklahoma, Norman Lines: 25 In article <3430003@hpsrlc.HP.COM> darrylo@hpsrlc.HP.COM (Darryl Okahata) writes: > On some BBSes, there is a program called BAWK, which purports to be a >"version" of awk for MSDOS. It usually comes with sources only (i.e., NO >executables). Out of curiosity, I compiled it -- and managed to do it -- >but that's about it. I really don't know if it works, or, if it does work, >how well it works (I don't know much about awk -- the only time I tried to >use awk on UN*X, I couldn't because of a bug in UN*X awk). Well, I can't claim to be an expert on awk, but I've used bawk and it seems to work. It doesn't implement the full awk, but the parts that it does do it does correctly. I have taken a script written for bawk and used it on the real thing with no problem except for a slight incompatibility in how the FILENAME internal variable is handled (sorry, I don't remember the details except that there was an incompatibility). You will want to make sure that the #define in the bawk code to set the line length (don't remember the name, but it's something obvious) is set to something good and long. Strange things happen when it reads in a too-long line, and the original line-length value of 128 wasn't long enough for what I was doing. If you can't find it at a local BBS, Sourcery Systems BBS has it. Their number is 405-728-2463. They've got all sorts of other goodies too. As I recall, they have both C source and executable for BAWK. -------------------------------------------------------------------------- Richard Todd USSnail:820 Annie Court,Norman OK 73069 UUCP: {allegra!cbosgd|ihnp4}!occrsh!uokmax!rmtodd