8.59. Gawk-5.2.2

The Gawk package contains programs for manipulating text files.

Approximate build time: 0.1 SBU
Required disk space: 46 MB

8.59.1. Installation of Gawk

First, ensure some unneeded files are not installed:

sed -i 's/extras//' Makefile.in

Prepare Gawk for compilation:

./configure --prefix=/usr

Compile the package:


To test the results, issue:

chown -Rv tester .
su tester -c "PATH=$PATH make check"

Install the package:

make LN='ln -f' install

The meaning of the overridden make variable:

LN='ln -f'

This variable ensures that the previous hard link installed in Section 6.9, “Gawk-5.2.2” is updated here.

The installation process already created awk as a symlink to gawk, create its man page as a symlink as well:

ln -sv gawk.1 /usr/share/man/man1/awk.1

If desired, install the documentation:

mkdir -pv                                   /usr/share/doc/gawk-5.2.2
cp    -v doc/{awkforai.txt,*.{eps,pdf,jpg}} /usr/share/doc/gawk-5.2.2

8.59.2. Contents of Gawk

Installed programs: awk (link to gawk), gawk, and gawk-5.2.2
Installed libraries: filefuncs.so, fnmatch.so, fork.so, inplace.so, intdiv.so, ordchr.so, readdir.so, readfile.so, revoutput.so, revtwoway.so, rwarray.so, and time.so (all in /usr/lib/gawk)
Installed directories: /usr/lib/gawk, /usr/libexec/awk, /usr/share/awk, and /usr/share/doc/gawk-5.2.2

Short Descriptions


A link to gawk


A program for manipulating text files; it is the GNU implementation of awk


A hard link to gawk