May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

awk built-in variables

Properties Description
$0 The current record (as a single variable)
$1~$n N-th field of the current record, separated by FS between fields
FS Enter the default field separator is a space
NF The number of fields in the current record is the number of columns
NO The number of records have been read out, is the line number, starting at 1
RS He recorded input delimiter defaults to a newline
OFS The default output field separator is a space
ORS Output record separator, by default a newline
ARGC The number of command line arguments
ARGV Command line parameter array
FILENAME Enter the file name of the current
IGNORECASE If true, the case-insensitive match
ARGIND ARGV identifier is currently processing files
CONVFMT Digital conversion formats% .6g
ENVIRON UNIX Environment Variables
Errno UNIX system error message
FIELDWIDTHS Enter keywords separated by the width of the string field
FNR The current number of records
OFMT Digital output format% .6g
RSTART Was first matched string matching function
RLENGTH Is the length of the matched string matching function
SUBSEP \034

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>