gawk's built-in variables are:
ARGC
ARGV. See below for what is actually
included in ARGV.
ARGIND
ARGV of the current file being processed.
When gawk is processing the input data files,
it is always true that `FILENAME == ARGV[ARGIND]'.
ARGV
ARGC - 1. Dynamically changing ARGC and
the contents of ARGV
can control the files used for data. A null-valued element in
ARGV is ignored. ARGV does not include the options to
awk or the text of the awk program itself.
CONVFMT
FIELDWIDTHS
ENVIRON
HOME is
ENVIRON["HOME"]. One possible value might be `/home/arnold'.
Changing this array does not affect the environment seen by programs
which gawk spawns via redirection or the system function.
(This may change in a future version of gawk.)
Some operating systems do not have environment variables.
The ENVIRON array is empty when running on these systems.
ERRNO
getline
or close.
FILENAME
FILENAME is the null string.
FNR
FS
IGNORECASE
IGNORECASE has a non-zero value, then pattern
matching in rules, record separating with RS, field splitting
with FS, regular expression matching with `~' and
`!~', and the gensub, gsub, index,
match, split and sub built-in functions all
ignore case when doing regular expression operations, and all string
comparisons are done ignoring case.
The value of IGNORECASE does not affect array subscripting.
NF
NR
OFMT
print statement,
"%.6g" by default.
OFS
ORS
RS
RS is set to the null string, then records are separated by
blank lines. When RS is set to the null string, then the newline
character always acts as a field separator, in addition to whatever value
FS may have. If RS is set to a multi-character
string, it denotes a regexp; input text matching the regexp
separates records.
RT
RS,
the record separator.
RSTART
match; zero if no match.
RLENGTH
match; -1 if no match.
SUBSEP
"\034".
See section Built-in Variables, for more information.
Go to the first, previous, next, last section, table of contents.