This section summarizes the common extensions supported by gawk, Brian Kernighan's awk, and mawk, the three most widely-used freely available versions of awk (see Other Versions).
Feature | BWK Awk | Mawk | GNU Awk
|
---|---|---|---|
‘\x’ Escape sequence | X | X | X
|
RS as regexp | X | X
| |
FS as null string | X | X | X
|
/dev/stdin special file | X | X
| |
/dev/stdout special file | X | X | X
|
/dev/stderr special file | X | X | X
|
** and **= operators | X | X
| |
func keyword | X | X
| |
nextfile statement | X | X | X
|
delete without subscript | X | X | X
|
length() of an array | X | X
| |
fflush() function | X | X | X
|
BINMODE variable | X | X
|