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]] . . . * [[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 . . . 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 . . . 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, . . . across several lines: {{{ BEGIN { # The backslash symbol can be used to spread a statement across . . . print $1 } # Comments cannot be split with a backslash symbol \ # because the backlash is treated as . . .
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. However, . . .
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 . . . as *literal character notation*). == The backslash symbol can be used to insert literal characters . . . string An *escape sequence* consists of a [[backslash]] symbol followed by a character or set of characters . . . string, unless it is escaped by using a [[backslash]] prefix, or the string is [[delimit]]ed using . . . an example here. * == Representation of the backslash symbol The [[backslash]] symbol is another character . . .
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 . . . find doublequoted strings which may contain backslash-escaped quote characters. An easy way of doing . . . 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, mark . . .
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]] . . . avoid complications with shell quoting where backslash escape characters can become lost. If the letter . . .
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 . . . [[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 . . . 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
pattern
In [[awk]], patterns are used to select lines of input for processing. The pattern within each [[rule]] . . . for matching text within a string. The [[slash]] symbol is used as an [[enclosure]] for [[regular . . .
2K - last updated 2011-05-19 18:18 UTC by markhobley
ReadDirectory
Getting a list of files in a directory is a tricky process. One might be tempted to try use ls and getline, . . . name can contain any character other than "/"(slash) and "\0"(null). Posix awk strings cannot contain . . .
2K - last updated 2013-10-03 22:35 UTC by emg
SedFAQ
<toc> ---- == I have a line like "abdcgfjeuPATTERNfjfhghj", I want to get the PATTERN part, why . . . (Next time, use awk.) ---- == I have lots of slashes in my pattern and/or replacement! You can escape . . .
34K - last updated 2010-02-14 17:56 UTC by waldner
slash
== Division Operator == The slash symbol is used as the division operator to produce the [[result]]s . . . / 3; # 6 == Regular Expression Enclosure == The slash symbol is used as an [[enclosure]] that marks . . .
1K - last updated 2011-05-11 15:00 UTC by markhobley
statement
The [[awk]] extraction and reporting language is not [[imperative]]. However, [[action]]s within the . . . 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 across . . .
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 . . . 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]] from . . .
1K - last updated 2010-02-01 20:54 UTC by MarkHobley
symbol
| *Symbol* | *Name* | *Purpose* | !! | [[pling]] | logical NOT | " | [[doublequote]] | | # | [[hash]] . . . point and regular expression operator | / | [[slash]] | division operator and regular expression . . . @ | [[snail]] | | ![ | [[openbox]] | | \ | [[backslash]] | escape sequence prefix | !] | [[closebox]] . . . | | [[cheveron]]s | | [[parentheses]] | | [[slash]] | regular expression enclosures . . .
2K - last updated 2013-02-19 14:26 UTC by markhobley
text.2.wiki.awk
#: C:\#\awk\lib\text.2.wiki.awk\\ . . . #: the back slash\\ . . .
11K - last updated 2012-09-24 14:55 UTC by g0ph3r
VariablesInRegex
The patterns between slashes like /pattern/ are called **ERE constants**, or **regular expressions literals**. . . .
2K - last updated 2010-11-26 08:49 UTC by 195.97.26.99
24 pages found.