It's kind of fun to put comments like this in your awk code.
// Do C++ comments work? answer: yes! of course
Michael Brennan
There are three other freely available awk implementations. This section briefly describes where to get them:
This version requires an ISO C (1990 standard) compiler; the C compiler from GCC (the GNU Compiler Collection) works quite nicely.
See BTL, for a list of extensions in this awk that are not in POSIX awk.
You can get it via anonymous ftp to the host
ftp.whidbey.net
. Change directory to /pub/brennan.
Use “binary” or “image” mode, and retrieve mawk1.3.3.tar.gz
(or the latest version that is there).
gunzip may be used to decompress this file. Installation is similar to gawk's (see Unix Installation).
mawk has the following extensions that are not in POSIX awk:
fflush
built-in function for flushing buffered output
(see I/O Functions).
func
as an abbreviation for function
(see Definition Syntax).
"-"
instead of "/dev/stdin"
with mawk.
FS
and for the third
argument to split
to be null strings
(see Single Character Fields).
RS
to be a regexp
(see Records).
BINMODE
special variable for non-Unix operating systems
(see PC Using).
The next version of mawk will support nextfile
.
The awk translator is released under the GPL, and the library is under the LGPL.
To get awka, go to http://awka.sourceforge.net. You can reach Andrew Sumner at andrew@zbcom.net.