gawk's built-in variables are:
ARGV. See below for what is actually included in
ARGVof the current file being processed. When
gawkis processing the input data files, it is always true that `FILENAME == ARGV[ARGIND]'.
ARGC- 1. Dynamically changing
ARGCand the contents of
ARGVcan control the files used for data. A null-valued element in
ARGVdoes not include the options to
awkor the text of the
ENVIRON["HOME"]. One possible value might be `/home/arnold'. Changing this array does not affect the environment seen by programs which
gawkspawns via redirection or the
systemfunction. (This may change in a future version of
gawk.) Some operating systems do not have environment variables. The
ENVIRONarray is empty when running on these systems.
FILENAMEis the null string.
IGNORECASEhas a non-zero value, then pattern matching in rules, record separating with
RS, field splitting with
FS, regular expression matching with `~' and `!~', and the
subbuilt-in functions all ignore case when doing regular expression operations, and all string comparisons are done ignoring case. The value of
IGNORECASEdoes not affect array subscripting.
RSis set to the null string, then records are separated by blank lines. When
RSis set to the null string, then the newline character always acts as a field separator, in addition to whatever value
FSmay have. If
RSis set to a multi-character string, it denotes a regexp; input text matching the regexp separates records.
RS, the record separator.
match; zero if no match.
match; -1 if no match.
See section Built-in Variables, for more information.
Go to the first, previous, next, last section, table of contents.