AwkGuide
** Work in Progress ** {{{ import from Mark Hobley's wiki }}} <toc> ---- == Overview * [[Overview]] . . . operator]]s * [[block]]s * [[brace]]s * [[branch]]es * [[builtin function]]s * [[calling section]] . . . operator]]s * [[concatenation]] * conditional [[branch]]es * [[conditional loop]]s * [[read only variable|constant]]s . . .
4K - last updated 2011-08-14 15:57 UTC by markhobley
branch
A branch is a [[control structure]] that allow a particular section of code to be conditionally executed . . . a variety of [[component]] keywords for defining branches, including: [[if]], [[else]] === Using logical . . . provides the facility to perform conditional branching using logical operators. . . .
1K - last updated 2011-04-17 06:37 UTC by markhobley
control structure
'''Control structures''' are constructs used to control the logic of a program based on a given condition. . . . Control structures typically use [[branch]] or [[loop]] statements. Code is typically . . . within the control structure. === _Conditional Branching_ The following example shows a [[block]] . . . of code being used as a conditional [[branch]]: {{{ awk if (guess == 6) { print "Wow! That . . .
1K - last updated 2011-06-25 05:08 UTC by pgas
if
The if [[condition]]al construct allows a [[statement]] or [[block]] of code to be [[condition]]ally . . . on the result of a [[boolean]] expression. The [[branch]] within the [[condition]], only gets executed . . . Using squiggly braces to conditionally execute a branch containing more than one statement == In order . . . than one [[statement]] within a conditional [[branch]], it is necessary to enclose the [[statement]]s . . . if conditional construct to allow one of two [[branch]]es of code to be conditionally executed depending . . .
2K - last updated 2011-09-11 21:43 UTC by 92.40.253.171.threembb.co.uk
logical operator
In [[awk]], *logical operators* are used to perform [[boolean]] operations, and a return a value of [true] . . . Please insert an example here. * == Conditional Branching * [[conditional branching]] Logical operators . . . be used within a program to create [[conditional branching]] structures. == Expressions Containing Multiple . . . [[Logical Operator Precedence]] [[Conditional Branching Using Logical Operators]] [[Logical Operators . . .
3K - last updated 2009-01-02 11:13 UTC by pgas
Overview
= Overview of awk = == The primarily purpose of awk is to processing textual data to produce formatted . . . constructs such as [[loop]]s and conditional [[branch]]es, and enables [[arithmetic]] and [[string]] . . .
4K - last updated 2011-05-23 23:09 UTC by markhobley
SedFAQ
<toc> ---- == I have a line like "abdcgfjeuPATTERNfjfhghj", I want to get the PATTERN part, why . . . This is because of the way "t" is defined: {{{ Branch to LABEL only if there has been a successful . . . the last input line was read or conditional branch was taken. }}} In our case, if we used "b", . . . conditions would be satisfied. Using "t" to branch to the beginning, on the other hand (which will . . . that line has at least 4 occurrences b # if not, branch to end :ok s/^[^\n]*\n// # remove what's before... . . .
34K - last updated 2010-02-14 17:56 UTC by waldner
7 pages found.