Mawk

The mawk utility is not currently in the cygwin repository. However, it is available from a third party repository:

http://artfiles.org/cygwin.org/pub/cygwinports/release-2/mawk/

Replacing gawk with mawk
It is not possible to remove gawk using apt-cyg:

apt-cyg remove gawk apt-cyg cannot remove package gawk, exiting

To replace gawk with awk:

wget http://artfiles.org/cygwin.org/pub/cygwinports/release-2/mawk/mawk-1.3.4.20100625-1.tar.bz2
 * Download the precompiled mawk package:

tar xjf mawk-1.3.4.20100625-1.tar.bz2
 * Unpack the precompiled package:

cp usr/bin/mawk.exe /usr/bin/mawk.exe
 * Install the mawk interpreter:

cd /usr/bin rm awk.exe ln -s mawk.exe awk.exe
 * Update the awk symlink:

rm /usr/bin/gawk.exe
 * Delete the gawk executable