(gawk.info) V7/SVR3
Info Catalog
(gawk.info) Language History
(gawk.info) Language History
(gawk.info) SVR4
Major Changes between V7 and SVR3.1
===================================
The `awk' language evolved considerably between the release of
Version 7 Unix (1978) and the new version 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 ( `awk'
Statements Versus Lines Statements/Lines.).
* User-defined functions, and the `return' statement (
User-defined Functions User-defined.).
* The `delete' statement ( The `delete' Statement Delete.).
* The `do'-`while' statement ( The `do'-`while' Statement Do
Statement.).
* The built-in functions `atan2', `cos', `sin', `rand' and `srand'
( Numeric Built-in Functions Numeric Functions.).
* The built-in functions `gsub', `sub', and `match' ( Built-in
Functions for String Manipulation String Functions.).
* The built-in functions `close', and `system' ( Built-in
Functions for Input/Output I/O Functions.).
* The `ARGC', `ARGV', `FNR', `RLENGTH', `RSTART', and `SUBSEP'
built-in variables ( Built-in Variables).
* The conditional expression using the ternary operator `?:' (
Conditional Expressions Conditional Exp.).
DONTPRINTYET * The exponentiation operator `^' ( Arithmetic Operators
Arithmetic Ops.) and its assignment operator form `^=' (*note
DONTPRINTYET * The exponentiation operator `^' ( Arithmetic Operators
Arithmetic Ops.) and its assignment operator form `^=' (
Assignment Expressions Assignment Ops.).
* C-compatible operator precedence, which breaks some old `awk'
programs ( Operator Precedence (How Operators Nest)
Precedence.).
* Regexps as the value of `FS' ( Specifying How Fields are
Separated Field Separators.), and as the third argument to the
`split' function ( Built-in Functions for String
Manipulation String Functions.).
* Dynamic regexps as operands of the `~' and `!~' operators (
How to Use Regular Expressions Regexp Usage.).
* The escape sequences `\b', `\f', and `\r' ( Escape
Sequences). (Some vendors have updated their old versions of
`awk' to recognize `\r', `\b', and `\f', but this is not something
you can rely on.)
* Redirection of input for the `getline' function ( Explicit
Input with `getline' Getline.).
* Multiple `BEGIN' and `END' rules ( The `BEGIN' and `END'
Special Patterns BEGIN/END.).
* Multi-dimensional arrays ( Multi-dimensional Arrays
Multi-dimensional.).
Info Catalog
(gawk.info) Language History
(gawk.info) Language History
(gawk.info) SVR4
automatically generated byinfo2html