arithmetic
The [[awk]] programming language provides a set of [[dyadic]] arithmetic operators for performing basic . . . not provide an [[exponent]] operator. == The backslash symbol may not be used for integer division . . . language does not support the use of a [[backslash]] symbol as an [[integer division]] operator. . . .
1K - last updated 2011-05-24 22:16 UTC by markhobley
AwkGuide
** Work in Progress ** {{{ import from Mark Hobley's wiki }}} <toc> ---- == Overview * [[Overview]] . . . [[assign]]ment * [[associative container]]s * [[backslash]] * [[BEGIN]] * [[bitwise operator]]s * [[block]]s . . .
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 . . . f.*r bar }}} Note that you have to use double backslashes in strings that will be used as [[http://www.gnu.org/manual/gawk/html_node/Computed-Regexps.html|computed . . .
31K - last updated 2009-03-24 16:54 UTC by waldner
Backreferences
The usual (and correct) answer for backreferences in awk (for example, the answer you can get on #awk . . . gawk manual for more information (including why backslashes must be escaped in the replacement text). . . .
3K - last updated 2010-12-30 06:53 UTC by ppp089210039107.dsl.hol.gr
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
BackslashInRegexp
Because {{{"\\$"}}} is a string and {{{/\\$/}}} is not; in strings, some of the escape characters get . . . {{{ /\\$/ => regular expression: literal backslash at end-of-expression "\\$" => string: . . .
2K - last updated 2008-11-26 12:27 UTC by pgas
comp.lang.awk FAQ
This material of this faq originates from the comp.lang.awk FAQ that you can find there: * http://www.faqs.org/faqs/computer-lang/awk/faq/ . . . ? Why don't parentheses match? <include "BackslashInRegexp"> [[http://awk.freeshell.org/?action=edit;id=BackslashInRegexp| . . .
8K - last updated 2009-03-04 12:42 UTC by pgas
continuation
Line continuation enables long lines of code to split across several lines for the purpose of making . . . them easier to read. == The backslash symbol as a continuation character == In . . . [[awk]], the [[backslash]] symbol can be used as a continuation character, . . . be split across several lines: {{{ BEGIN { # The backslash symbol can be used to spread a statement . . . \ { print $1 } # Comments cannot be split with a backslash symbol \ # because the backlash is treated . . .
1K - last updated 2011-05-09 22:48 UTC by markhobley
division
== Quotient Division == The [[slash]] symbol can be used as the division [[operator]] to produce the . . . language does not support the use of a [[backslash]] symbol as an integer division operator. . . .
2K - last updated 2011-03-20 07:07 UTC by markhobley
escape sequence
Some characters cannot be included in [[literal string]]s, because they are [[nonprintable]] or [[control . . . (known as *literal character notation*). == The backslash symbol can be used to insert literal characters . . . a string An *escape sequence* consists of a [[backslash]] symbol followed by a character or set of . . . the string, unless it is escaped by using a [[backslash]] prefix, or the string is [[delimit]]ed . . . an example here. * == Representation of the backslash symbol The [[backslash]] symbol is another . . .
3K - last updated 2008-12-30 13:07 UTC by Mark Hobley
FindAllIndices
Sometimes it is useful to find the index of every occurrence of a given character in a string. Let's . . . to find doublequoted strings which may contain backslash-escaped quote characters. An easy way of . . . to sequence numbers; # find the index of every backslash character; # for each backslash, if the index . . . + 1 of that backslash is in the list of doublequote positions, . . .
2K - last updated 2011-07-05 10:53 UTC by pgas
FS
= Field Separator = The [[special variable]] FS is a field separator that is used to determine how [[awk]] . . . to avoid complications with shell quoting where backslash escape characters can become lost. If the . . .
5K - last updated 2013-02-19 21:45 UTC by markhobley
line orientated
== The awk extraction and reporting language is line orientated == The [[awk]] extraction and reporting . . . and action on separate lines, by using a [[backslash]] line [[continuation]] symbol to break the . . . line: {{{ # A backslash symbol allows this single rule to span multiple . . .
1K - last updated 2011-05-17 23:24 UTC by markhobley
literal characters
== Special characters cannot be directly included in a literal string == Special characters, such as . . . a [[representation code]] that begins with a [[backslash]] symbol: === Literal Character Representation . . . characters that can be represented using the backslash, together with the digraphical representation . . . return | \t | tab | \v | vertical tab | \\ | backslash === Numerical Literal Character Representation . . . of the represented ascii character === Using a backslash to insert literal characters into a string . . .
2K - last updated 2010-11-28 19:14 UTC by markhobley
statement
The [[awk]] extraction and reporting language is not [[imperative]]. However, [[action]]s within the . . . is to be split across several lines, by using a backslash [[continuation character]] at the end of . . . the line to be continued: {{{ BEGIN { # The backslash symbol can be used to spread a statement . . .
2K - last updated 2011-05-21 16:43 UTC by markhobley
string
== _Literal strings are delimited using doublequotes_ In [[awk]], literal strings are delimited using . . . can be used to represent an [[empty string]]. == Backslash notation can be used to include special characters_ . . . character]]s in literal strings by using [[backslash]] symbol notation to represent [[escape sequence]]s. . . .
1K - last updated 2010-10-19 21:58 UTC by markhobley
suppression of interpolation within a regular expression
The [[backslash]] symbol is be used to prevent [[interpolation]] of [[metacharacter]]s within the program. . . . By prefixing the special character with a backslash metacharacter, we prevent [[interpolation]] . . .
1K - last updated 2010-02-01 20:54 UTC by MarkHobley
symbol
| *Symbol* | *Name* | *Purpose* | !! | [[pling]] | logical NOT | " | [[doublequote]] | | # | [[hash]] . . . | | @ | [[snail]] | | ![ | [[openbox]] | | \ | [[backslash]] | escape sequence prefix | !] | [[closebox]] . . .
2K - last updated 2013-02-19 14:26 UTC by markhobley
18 pages found.