The awk
language evolved considerably between the release of
Version 7 Unix (1978) and the new version that was first made generally available in
System V Release 3.1 (1987). This section summarizes the changes, with
cross-references to further details:
awk
Statements Versus Lines)
return
statement
(see User-Defined Functions)
delete
statement (see The delete
Statement)
do
-while
statement
(see The do
-while
Statement)
atan2()
, cos()
, sin()
, rand()
, and
srand()
(see Numeric Functions)
gsub()
, sub()
, and match()
(see String-Manipulation Functions)
close()
and system()
(see Input/Output Functions)
ARGC
, ARGV
, FNR
, RLENGTH
, RSTART
,
and SUBSEP
predefined variables (see Predefined Variables)
$0
(see Changing the Contents of a Field)
for
statements (see Referring to an Array Element)
awk
programs (see Operator Precedence (How Operators Nest))
FS
(see Specifying How Fields Are Separated) and as the
third argument to the split()
function
(see String-Manipulation Functions), rather than using only the first character
of FS
getline
function
(see Explicit Input with getline
)
BEGIN
and END
rules
(see The BEGIN
and END
Special Patterns)