AwkGuide
** Work in Progress ** {{{ import from Mark Hobley's wiki }}} <toc> ---- == Overview * [[Overview]] . . . * [[constructor]]s * [[context]] * [[continuation]] character * [[control structure]]s * . . . * [[goto|label]]s * [[libraries]] * line [[continuation]] * [[list]]s * [[literal character]]s . . .
4K - last updated 2011-08-14 15:57 UTC by markhobley
backslash
In [[awk]], the backslash symbol can be used: * as a line [[continuation]] character * for suppression . . .
1K - last updated 2011-05-09 22:34 UTC by markhobley
continuation
Line continuation enables long lines of code to split across several lines for the purpose of making . . . easier to read. == The backslash symbol as a continuation character == In [[awk]], the [[backslash]] . . . symbol can be used as a continuation character, enabling a [[statement]] to . . . lines print \ "Hello World!" exit } }}} === Continuation characters must be appropriately placed . . . within a statement === In awk, a continuation character should not be placed in the . . .
1K - last updated 2011-05-09 22:48 UTC by markhobley
iterative loop
An '''iterative loop''' repeatedly executes a set of instructions as the [iterator] steps through a series . . . * Initialization statement * Test condition * Continuation statement ==== _Initialization statement_ . . . 10: for (l= 0; l <= 9; l++) { print l } ==== _Continuation statement_ The continuation statement . . . on completion of each iteration of the loop. The continuation statement, l++ in the above example causes . . .
2K - last updated 2011-08-13 21:00 UTC by markhobley
line orientated
== The awk extraction and reporting language is line orientated == The [[awk]] extraction and reporting . . . separate lines, by using a [[backslash]] line [[continuation]] symbol to break the line: {{{ # A backslash . . . lines /foobar/ \ { print $1 } }}} Note that line continuation characters must be appropriately placed . . .
1K - last updated 2011-05-17 23:24 UTC by markhobley
statement
The [[awk]] extraction and reporting language is not [[imperative]]. However, [[action]]s within the . . . is considered the end of the statement, unless a continuation character has been used at the end of . . . can be split across several lines by using a continuation character == The [[awk]] programming language . . . across several lines, by using a backslash [[continuation character]] at the end of the line to . . . lines print \ "Hello World!" exit } }}} == Continuation characters can appear anywhere within . . .
2K - last updated 2011-05-21 16:43 UTC by markhobley
6 pages found.