BackslashInRegexp
Because {{{"\\$"}}} is a string and {{{/\\$/}}} is not; in strings, some of the escape characters get . . . string: \$ => regular expression: literal dollar sign }}} To get behavior like the first case . . .
2K - last updated 2008-11-26 12:27 UTC by pgas
dollar
== Prefixing field numbers == The dollar symbol can be used to prefix [[field]] numbers: == Regular expression . . . anchoring == The dollar symbol is used as a regular expression [[anchor]] . . .
1K - last updated 2010-11-28 10:46 UTC by markhobley
dollarint
A [[dollar]] sign and followed by an [[integer]] are used to refer to [[field]]s within the current [[record]]: . . . to use to use a [[variable name]] after the [[dollar]] sign to specify the field number: {{{ awk . . . also possible to use an expression after the [[dollar]] sign to specify the field number. Note that . . . would get a value 2 more than field 3 }}} == A dollar sign followed by a zero references the entire . . . record == A [[dollar]] sign and followed by a zero references the . . .
3K - last updated 2011-06-25 05:28 UTC by pgas
field
In [[awk]] all [[input]] is separated into [[record]]s and each [[record]] is further divided into fields. . . . script, each field can be referenced by using [[dollarint]] operator. {{{ awk { print $3 } # output . . .
1K - last updated 2011-06-25 05:31 UTC by pgas
field reference
== The field reference operator == The [[dollar]] symbol acts as a unary *field reference operator* and . . . to use to use a [[variable name]] after the dollar sign to specify the field number: {{{ { myfield . . . also possible to use an [[expression]] after the dollar sign to specify the field number. Note that . . . is given as the [[argument]] following the dollar symbol, then the entire record is referenced: . . .
2K - last updated 2011-06-28 09:12 UTC by markhobley
regular expression operator
The [[awk]] programming language provides a set of *regular expression operators* that have special meanings . . . Anchor matches the beginning of a string | $ | [[dollar]] | Anchor matches the end of a string | . | . . .
2K - last updated 2013-02-19 14:06 UTC by markhobley
symbol
| *Symbol* | *Name* | *Purpose* | !! | [[pling]] | logical NOT | " | [[doublequote]] | | # | [[hash]] . . . | prefixes comments | $ | [[dollar]] | field reference operator and regular expression . . .
2K - last updated 2013-02-19 14:26 UTC by markhobley
7 pages found.