Appendix A. The Evolution of the awk Language
This book describes the GNU implementation of awk, which follows the POSIX specification. Many long-time awk users learned awk programming with the original awk implementation in Version 7 Unix. (This implementation was the basis for awk in Berkeley Unix, through 4.3-Reno. Subsequent versions of Berkeley Unix, and systems derived from 4.4BSD-Lite, use various versions of gawk for their awk.) This chapter briefly describes the evolution of the awk language, with cross-references to other parts of the book where you can find more information.
Major Changes Between V7 and SVR3.1
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:
The requirement for
;to separate rules on a line (see the Section 1.6 in Chapter 1).User-defined functions and the
returnstatement (see the Section 8.2 in Chapter 8).The
deletestatement (see the Section 7.6 in Chapter 7).The
do-whilestatement (see the Section 6.4.3 in Chapter 6).The built-in functions
atan2,cos,sin,rand, andsrand(see the Section 8.1.2 in Chapter 8).The built-in functions
gsub,sub, andmatch(see the Section 8.1.3 in Chapter 8).The built-in functions
closeandsystem(see the Section 8.1.4 in Chapter 8).The
ARGC,ARGV,FNR,RLENGTH,RSTART, andSUBSEPbuilt-in variables ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access