MAWK for DOS
============
* About
* Documentation
* MAWK extensions

About
=====
MAWK version 1.3.4-20240622 for DOS.

mawk is an interpreter for the AWK Programming Language. It uses a
bytecode interpreter, and is known for speedy execution.  Both builds
require an 80386 or better and were tested on FreeDOS.

* mawk.exe is built with DJGPP and requires CWSDPMI.EXE

* mawkx.exe is built with OpenWatcom and requires HXRT and 4DOS
 <https://github.com/Baron-von-Riedesel/HX>
 <https://4dos.info/sources.htm>

Documentation
=============
See mawk.txt for the manual.
See dos.txt for build notes.
See djgpp.dif for source code changes.

See also:

<https://invisible-island.net/mawk/mawk.html>

readme.txt, Documentation section:

<gopher://tilde.pink/1/~bencollver/files/dos/devel/awk/>

MAWK extensions
===============
*   Extended Regular Expressions.
*   Mktime, strftime and systime.
*   New functions: toupper() and tolower().
*   New variables: ENVIRON[] and CONVFMT.
*   ANSI C conversion specifications for printf() and sprintf().
*   New command options: -v var=value, multiple -f options, and
   implementation options as arguments to -W.
*   For DOS, an environment variable MAWKBINMODE and a built-in
   variable  BINMODE. The bits of the BINMODE value tell mawk
   how to modify the RS and ORS variables:

   0  set standard input to binary mode, and if BIT-2 is unset, set
      RS to "\r\n" (CR/LF) rather than "\n" (LF).

   1  set  standard  output  to binary mode, and if BIT-2 is unset,
      set ORS to "\r\n" (CR/LF) rather than "\n" (LF).

   2  suppress the assignment to RS and ORS  of  CR/LF,  making  it
      possible  to  run scripts and generate output compatible with
      Unix line-endings.