
for | 783
gawk
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
do
do
statement
while (expr)
Looping statement. Execute statement, then evaluate expr and if
true, execute statement again. A series of statements must be put
within braces.
exit
exit [expr]
Exit from script, reading no new input. The END procedure, if it
exists, will be executed. An optional expr becomes awk’s return
value.
exp
exp(x)
Return exponential of x (ex).
extension
extension(lib, init) {G}
Dynamically load the shared object file lib, calling the function init
to initialize it. Return the value returned by the init function. This
function allows you to add new built-in functions to gawk. See
Effective awk Programming (O’Reilly) for the details.
fflush
fflush([output-expr]) {E}
Flush any buffers associated with open output file or pipe output-
expr.
gawk extends this function. If no output-expr is supplied, it flushes
standard output. If output-expr is the null string (""), it flushes all
open files and pipes.
for
for (init-expr; test-expr; incr-expr)
statement
C-style looping construct. init-expr assigns the initial value of a
counter variable. test-expr is a relational expression that is evalu-
ated each time before executing the statement. When test-expr is
false, the loop is exited. incr-expr is used to increment the counter
variable after each pass. All of the expressions are ...