(awknext-record-expr
(recordfield-variable···)
counter-variable/optional
((state-variableinit-expr) ···)
continue-variable/optionalclause···)
counter-variable/optional is either empty or
variablecontinue-variable/optional is either empty or
variableclause is one of
(testbody-expr···1)
(test=>procedure-expr)
(/regexp-str/ (variable-or-false···1) body-expr···1)
(range exclusive-start-testexclusive-stop-testbody-expr···1)
(:rangeinclusive-start-testexclusive-stop-testbody-expr···1)
(range:exclusive-start-testinclusive-stop-testbody-expr···1)
(:range:inclusive-start-testinclusive-inclusive-stop-testbody-expr···1)
(elsebody-expr···1)
(after body-expr···1)
test is one of
integerregexp-strexprvariable-or-false is one of
variable#f
For detailed information about awk, see Olin Shivers's Scsh Reference Manual. In addition to awk, the
Scsh-compatible procedures match:start,
match:end, match:substring, and
regexp-exec are defined. These match: procedures
must be used to extract match information in a regular expression
clause when using the => form.