The GNU implementation, gawk, adds a large number of features. This section lists them in the order they were added to gawk. They can all be disabled with either the --traditional or --posix options (see Options).
Version 2.10 of gawk introduced the following features:
IGNORECASE
variable and its effects
(see Case-sensitivity).
Version 2.13 of gawk introduced the following features:
FIELDWIDTHS
variable and its effects
(see Constant Size).
systime
and strftime
built-in functions for obtaining
and printing timestamps
(see Time Functions).
Version 2.14 of gawk introduced the following feature:
next file
statement for skipping to the next data file
(see Nextfile Statement).
Version 2.15 of gawk introduced the following features:
ARGIND
variable, which tracks the movement of FILENAME
through ARGV
(see Built-in Variables).
ERRNO
variable, which contains the system error message when
getline
returns −1 or close
fails
(see Built-in Variables).
Version 3.0 of gawk introduced the following features:
IGNORECASE
changed, now applying to string comparison as well
as regexp operations
(see Case-sensitivity).
RT
variable that contains the input text that
matched RS
(see Records).
gensub
function for more powerful text manipulation
(see String Functions).
strftime
function acquired a default time format,
allowing it to be called with no arguments
(see Time Functions).
FS
and for the third
argument to split
to be null strings
(see Single Character Fields).
RS
to be a regexp
(see Records).
next file
statement became nextfile
(see Nextfile Statement).
fflush
function from the
Bell Laboratories research version of awk
(see Options; also
see I/O Functions).
Version 3.1 of gawk introduced the following features:
BINMODE
special variable for non-POSIX systems,
which allows binary I/O for input and/or output files
(see PC Using).
LINT
special variable, which dynamically controls lint warnings
(see Built-in Variables).
PROCINFO
array for providing process-related information
(see Built-in Variables).
TEXTDOMAIN
special variable for setting an application's
internationalization text domain
(see Built-in Variables,
and
Internationalization).
close
that allows closing one end
of a two-way pipe to a coprocess
(see Two-way I/O).
match
function
for capturing text-matching subexpressions within a regexp
(see String Functions).
printf
formats for
making translations easier
(see Printf Ordering).
asort
and asorti
functions for sorting arrays
(see Array Sorting).
bindtextdomain
, dcgettext
and dcngettext
functions
for internationalization
(see Programmer i18n).
extension
built-in function and the ability to add
new built-in functions dynamically
(see Dynamic Extensions).
mktime
built-in function for creating timestamps
(see Time Functions).
and
,
or
,
xor
,
compl
,
lshift
,
rshift
,
and
strtonum
built-in
functions
(see Bitwise Functions).
gettext
for gawk's own message output
(see Gawk I18N).
sub
and gsub
(see Gory Details).