awk Language
This könyv describes the GNU implementation of awk, which follows
the POSIX specification. Many awk users are only familiar
with the original awk implementation in Version 7 Unix.
(This implementation was the basis for awk in Berkeley Unix,
through 4.3--Reno. The 4.4 release of Berkeley Unix uses gawk 2.15.2
for its version of awk.) This chapter briefly describes the
evolution of the awk language, with cross references to other parts
of the könyv where you can find more information.
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.
awk kifejezések és sorok).
return statement
(see section Felhasználó által definiált függvények).
delete statement (see section A delete kifejezés).
do-while statement
(see section A do-while kifejezés).
atan2, cos, sin, rand and
srand (see section Numerikus beépített függvények).
gsub, sub, and match
(see section Szövegmanipuláló beépített függvények).
close, and system
(see section Bemenettel és kimenettel (I/O) kapcsolatos beépített függvények).
ARGC, ARGV, FNR, RLENGTH, RSTART,
and SUBSEP built-in variables (see section Beépített változók).
awk
programs (see section Operátorok precedenciája (Hogyan ágyazhatók operátorok egymásba)).
FS
(see section Hogyan történik a mezőelválasztás), and as the
third argument to the split function
(see section Szövegmanipuláló beépített függvények).
awk to
recognize `\r', `\b', and `\f', but this is not
something you can rely on.)
getline function
(see section Explicit beolvasás getline-al).
BEGIN and END rules
(see section A BEGIN és az END speciális minták).
The System V Release 4 version of Unix awk added these features
(some of which originated in gawk):
ENVIRON variable (see section Beépített változók).
srand built-in function
(see section Numerikus beépített függvények).
toupper and tolower built-in string functions
for case translation
(see section Szövegmanipuláló beépített függvények).
printf function
(see section Formátumleíró betűk).
"%*.*d")
in the argument list of the printf function
(see section Formátumleíró betűk).
/foo/ as expressions, where
they are equivalent to using the matching operator, as in `$0 ~ /foo/'
(see section Reguláris kifejezés konstansok használata).
awk
The POSIX Command Language and Utilities standard for awk
introduced the following changes into the language:
CONVFMT for controlling the conversion of numbers
to strings (see section Szövegek és számok konverziója).
The following common extensions are not permitted by the POSIX standard:
\x escape sequences are not recognized
(see section Escape szekvenciák).
FS is
equal to a single space.
func for the keyword function is not
recognized (see section A függvénydefiníció formája).
FS to be a single tab character
(see section Hogyan történik a mezőelválasztás).
fflush built-in function is not supported
(see section Bemenettel és kimenettel (I/O) kapcsolatos beépített függvények).
awk
Brian Kernighan, one of the original designers of Unix awk,
has made his version available via anonymous ftp
(see section Other Freely Available awk Implementations).
This section describes extensions in his version of awk that are
not in POSIX awk.
fflush built-in function for flushing buffered output
(see section Bemenettel és kimenettel (I/O) kapcsolatos beépített függvények).
gawk Not in POSIX awk
The GNU implementation, gawk, adds a number of features.
This sections lists them in the order they were added to gawk.
They can all be disabled with either the `--traditional' or
`--posix' options
(see section Command Line Options).
Version 2.10 of gawk introduced these features:
AWKPATH environment variable for specifying a path search for
the `-f' command line option
(see section Command Line Options).
IGNORECASE variable and its effects
(see section Kis- és nagybetűk az illesztésekben).
gawk-ban).
Version 2.13 of gawk introduced these features:
FIELDWIDTHS variable and its effects
(see section Meghatározott szélességű adatok beolvasása).
systime and strftime built-in functions for obtaining
and printing time stamps
(see section Dátumfeldolgozó függvények).
Version 2.14 of gawk introduced these features:
next file statement for skipping to the next data file
(see section A nextfile kifejezés).
Version 2.15 of gawk introduced these features:
ARGIND variable, that tracks the movement of FILENAME
through ARGV (see section Beépített változók).
ERRNO variable, that contains the system error message when
getline returns -1, or when close fails
(see section Beépített változók).
gawk-ban).
Version 3.0 of gawk introduced these features:
next file statement became nextfile
(see section A nextfile kifejezés).
awk
(see section Major Changes between V7 and SVR3.1).
FS to be a null string, and for the third
argument to split to be the null string
(see section Minden karakter egy mező).
RS to be a regexp
(see section Hogyan történik a feldarabolás rekordokra).
RT variable
(see section Hogyan történik a feldarabolás rekordokra).
gensub function for more powerful text manipulation
(see section Szövegmanipuláló beépített függvények).
strftime function acquired a default time format,
allowing it to be called with no arguments
(see section Dátumfeldolgozó függvények).
IGNORECASE changed, now applying to string comparison as well
as regexp operations
(see section Kis- és nagybetűk az illesztésekben).
fflush function from the
Bell Labs research version of awk
(see section Command Line Options; also
see section Bemenettel és kimenettel (I/O) kapcsolatos beépített függvények).
gawk for Unix).
gawk on an Amiga).
Go to the first, previous, next, last section, table of contents.