Buy the book!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
Control statements, such as
while, and so on,
control the flow of execution in
awk programs. Most of the
control statements in
awk are patterned on similar statements in C.
All the control statements start with special keywords, such as
while, to distinguish them from simple expressions.
Many control statements contain other statements. For example, the
if statement contains another statement that may or may not be
executed. The contained statement is called the body.
To include more than one statement in the body, group them into a
single compound statement with curly braces, separating them with
newlines or semicolons.
Conditionally execute some
Loop until some condition is satisfied. 7.4.3 The
Do specified action while looping until some condition is satisfied. 7.4.4 The
Another looping statement, that provides initialization and increment clauses. 7.4.5 The
Immediately exit the innermost enclosing loop. 7.4.6 The
Skip to the end of the innermost enclosing loop. 7.4.7 The
Stop processing the current input record. 7.4.8 Using
Stop processing the current file. 7.4.9 The
Stop execution of
|webmaster||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|