AwkGuide
** Work in Progress ** {{{ import from Mark Hobley's wiki }}} <toc> ---- == Overview * [[Overview]] . . . sequence]]s * [[expression]]s * [[field]]s * [[field reference]] operator * [[FS|field separator]] . . .
4K - last updated 2011-08-14 15:57 UTC by markhobley
dollarint
A [[dollar]] sign and followed by an [[integer]] are used to refer to [[field]]s within the current [[record]]: . . . it's not exactly true, in fact $ is the field reference operator and 3 is just a number that . . .
3K - last updated 2011-06-25 05:28 UTC by pgas
field reference
== The field reference operator == The [[dollar]] symbol acts as a unary *field reference operator* and . . . the [[expression]] takes [[precedence]] over the field reference operator: {{{ print $(3 + 2) # output . . .
2K - last updated 2011-06-28 09:12 UTC by markhobley
FieldReference
$ is the "field reference" operator in AWK. It references the field in the current input record given . . . $i; }}} The power of awk is in learning to use field references, some further examples: {{{ # print . . .
1K - last updated 2009-01-03 01:51 UTC by fcr
LastField
awk performs a number of actions automatically when it parses lines: it updates the variable NF, which . . . it's not exactly true, in fact $ is the field reference operator and 1 is just a number that . . .
2K - last updated 2009-02-05 22:43 UTC by firebush.stsci.edu
PrintASingleQuote
This question gets asked often enough that it deserves its own answer. This common question doesn't actually . . . with awk's literal string syntax and the "$" field reference operator. ==== Hex Escapes: Bad Juju . . .
5K - last updated 2015-07-05 09:45 UTC by pitman
symbol
| *Symbol* | *Name* | *Purpose* | !! | [[pling]] | logical NOT | " | [[doublequote]] | | # | [[hash]] . . . | prefixes comments | $ | [[dollar]] | field reference operator and regular expression anchor . . .
2K - last updated 2013-02-19 14:26 UTC by markhobley
7 pages found.