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 a number of 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.
The original distribution site for the mawk source code no longer has it. A copy has been made available at http://www.skeeve.com/gawk/mawk1.3.3.tar.gz.
In 2009, Thomas Dickey took on mawk maintenance. Basic information is availabe on the project's web page. The download URL is ftp://invisible-island.net/mawk/mawk.tar.gz.
Once you have it, 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).
It is to be hoped that a future version of mawk will support nextfile
(see Nextfile Statement).
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.
This is an independent implementation of awk distributed under the GPL. It has a large number of extensions over standard awk and may not be 100% syntactically compatible with it. See http://www.quiktrim.org/QTawk.html for more information, including the manual and a download link.