| Version | Variable | Description | 
|---|---|---|
| awk | FILENAME | Current filename  | 
FS | Field separator (a space)  | |
NF | Number of fields in current record  | |
NR | Number of the current record  | |
OFMT | Output format for numbers (  | |
OFS | Output field separator (a space)  | |
ORS | Output record separator (a newline)  | |
RS | Record separator (a newline)  | |
$0 | Entire input record  | |
$n | nth field in current record; fields are separated by   | |
| nawk | ARGC | Number of arguments on command line  | 
ARGV | An array containing the command-line arguments, indexed from 0 to   | |
CONVFMT | String conversion format for numbers (  | |
ENVIRON | An associative array of environment variables  | |
FNR | Like NR, but relative to the current file  | |
RLENGTH | Length of the string matched by   | |
RSTART | First position in the string matched by   | |
SUBSEP | Separator character for array subscripts (  | |
| gawk | ARGIND | Index in   | 
ERRNO | A string indicating the error when a redirection fails for   | |
FIELDWIDTHS | A space-separated list of field widths to use for splitting up the record, instead of   | |
IGNORECASE | When true, all regular expression matches, string comparisons, and calls to   | |
RT | The text matched by   |