AwkGuide
** Work in Progress ** {{{ import from Mark Hobley's wiki }}} <toc> ---- == Overview * [[Overview]] . . . * [[bitwise operator]]s * [[block]]s * [[brace]]s * [[branch]]es * [[builtin function]]s * [[calling . . .
4K - last updated 2011-08-14 15:57 UTC by markhobley
AwkTips
<toc> ---- == Be idiomatic! In this paragraph, we give some hints on how to write more idiomatic . . . our attention to the action part (what's inside braces). **print $0** is a redundant statement, since . . .
31K - last updated 2009-03-24 16:54 UTC by waldner
BEGIN
== Begin Blocks The [[awk]] programming language allows us to use **begin blocks** and **end blocks** . . . keyword and each block is contained in squiggly brace enclosures. There is no default action provided . . .
3K - last updated 2013-04-11 14:25 UTC by 92.40.253.171.threembb.co.uk
brace
== Enclosure of actions == In [[awk]], squiggly braces are used as [[enclosure]]s around [[action]]s . . . the [[rule]]s: == Grouping of statements == Braces can also be used to create a [[block]] of [[statement]]s . . .
1K - last updated 2010-11-10 22:41 UTC by markhobley
Hello World in awk
This example program outputs the words "hello world" to the terminal: {{{ awk # Hello World BEGIN { print . . . contents of the begin function is enclosed in [[brace]]s. This defines the boundaries of the [[block]] . . .
2K - last updated 2010-11-11 19:16 UTC by markhobley
if
The if [[condition]]al construct allows a [[statement]] or [[block]] of code to be [[condition]]ally . . . syntactical cocomponents. == Using squiggly braces to conditionally execute a branch containing . . . to enclose the [[statement]]s within squiggly [[brace]]s: {{{ if (guess == 6) { print "Wow! That was . . .
2K - last updated 2011-09-11 21:43 UTC by 92.40.253.171.threembb.co.uk
Overview
= Overview of awk = == The primarily purpose of awk is to processing textual data to produce formatted . . . [[pattern]]. The [[action]] is enclosed within [[brace]]s so that the [[awk]] interpreter can differentiate . . .
4K - last updated 2011-05-23 23:09 UTC by markhobley
rule
Scripts in [[awk]] may contain one or more rules. == Rules consist of patterns and actions == Each rule . . . place. The [[action]] is enclosed in squiggly [[brace]]s to separate it from the pattern: == Patterns . . .
1K - last updated 2011-05-11 15:07 UTC by markhobley
symbol
| *Symbol* | *Name* | *Purpose* | !! | [[pling]] | logical NOT | " | [[doublequote]] | | # | [[hash]] . . . | [[box]]es | array element referencing | [[brace]]s | | [[cheveron]]s | | [[parentheses]] | | . . .
2K - last updated 2013-02-19 14:26 UTC by markhobley
whitespace
== _Line breaks are best placed at whitespace points_ The [[awk]] extraction and reporting language is . . . the end of a [[command]] or following squiggly [[braces]], where whitespace would typically be placed: . . .
1K - last updated 2011-03-20 22:07 UTC by markhobley
10 pages found.