special variable

Last edit

Summary: remove dollarint from the special variables, remove the informative vs control. Not only ou can change ARGV NF and NR ENVIRON....but the change sometimes has concrete effects (ie changes the number of files parsed, removing the last field if you decrement NF etc..)

Changed:

< Some [[variable]] names have a special meaning to the awk interpreter. There are two types of special variables:
< == Control variables ==
< Control variables contain operational parameters used by the awk interpreter. It is possible to modify these variables to control the way that the awk interpreter operates.
< == Informative variables ==
< Informative variables provide information about current status within the awk script. These variables are read only and cannot be explicitly modified by the program.

to

> Some [[variable]] names have a special meaning to the awk interpreter.


Some variable names have a special meaning to the awk interpreter.

List of special variables

The following are '''special variables''' within awk:

'''Variable'''Description
[[ARGC?]]An informative variable that provides command line parameter information
[[ARGV?]]An informative [[array?]] that provides command line parameter information
[[CONVFMT?]]A control variable that specifies the conversion format of numerical strings
ENVIRONAn informative array that contains the environment strings
[[FILENAME?]]An informative variable that provides the current input [[filename?]]
FNRAn informative variable that provides the number of records read from current file
FSA control variable that specifies the input field separator
NFAn informative variable that provides the number of fields within the current record
[[NR?]]An informative variable that provides the total number of records read so far
[[OFMT?]]A control variable that specifies the output format of numerical values
[[OFS?]]A control variable that specifies the output field separator
[[ORS?]]A control variable that specifies the output record separator
[[RLENGTH?]]An informative variable that provides the length of the currently matched substring
RSA control variable that specifies the input record separator
[[RSTART?]]An informative variable that provides the start index of the currently matched substring
[[SUBSEP?]]A control variable that specifies the subscript separator for multidimensional arrays