arithmetic
The [[awk]] programming language provides a set of [[dyadic]] arithmetic operators for performing basic . . . an [[exponent]] operator. == The backslash symbol may not be used for integer division == Traditionally, . . . does not support the use of a [[backslash]] symbol as an [[integer division]] operator. ---- [[Calculations . . .
1K - last updated 2011-05-24 22:16 UTC by markhobley
awk1page
an awk program is a series of //pattern { actions }// statements;\\ ie if the input line matchs pattern . . . $0 is the whole line. Comments can follow the # symbol. {{{awk # print those lines where "awk" appears . . .
2K - last updated 2012-03-18 22:22 UTC by g0pher
AwkGuide
** Work in Progress ** {{{ import from Mark Hobley's wiki }}} <toc> ---- == Overview * [[Overview]] . . . [[grouping arguments]] * [[hashbang]] * [[hash]] symbol * [[here document]]s * [[identifier]]s * [[if]] . . . function]]s * [[sub]] * [[substr]]ings * [[symbol]]s * [[table]]s * [[case conversion|tolower]] . . .
4K - last updated 2011-08-14 15:57 UTC by markhobley
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
CAWKLib
=CAWKLib CAWKlib is a library of functions for for awk intended to be used with preprocessors/wrappers . . . *file_islink() -- returns 1 if the file is a symbolic link *file_hasmyuid() -- returns 1 if the . . .
5K - last updated 2015-01-29 10:14 UTC by 108-243-116-77.lightspeed.cicril.sbcglobal.net
comment
Comments are pieces of text or [[whitespace]] that can be included in a program to make the code more . . . be inserted by prefixing them with a [[hash]] symbol. The [[awk]] interpreter will ignore the [[hash]] . . . symbol and any other characters that follow it until . . .
1K - last updated 2009-07-15 17:07 UTC by MarkHobley
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, enabling . . . several lines: {{{ BEGIN { # The backslash symbol can be used to spread a statement across several . . . $1 } # Comments cannot be split with a backslash symbol \ # because the backlash is treated as part . . .
1K - last updated 2011-05-09 22:48 UTC by markhobley
delimiter
== _Literal strings are delimited using doublequotes_ In [[awk]], literal strings are delimited using . . . [[doublequote]] symbols: . . .
1K - last updated 2010-10-21 20:58 UTC by markhobley
division
== Quotient Division == The [[slash]] symbol can be used as the division [[operator]] to produce the . . . does not support the use of a [[backslash]] symbol as an integer division operator. However, the . . .
2K - last updated 2011-03-20 07:07 UTC by markhobley
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]] to . . .
1K - last updated 2010-11-28 10:46 UTC by markhobley
dot
== The dot symbol == === The dot symbol as a regular expression operator === The [[dot]] symbol can be . . . character can also be matched by the dot symbol operator. . . .
1K - last updated 2010-11-11 23:41 UTC by markhobley
escape sequence
Some characters cannot be included in [[literal string]]s, because they are [[nonprintable]] or [[control . . . *literal character notation*). == The backslash symbol can be used to insert literal characters into . . . An *escape sequence* consists of a [[backslash]] symbol followed by a character or set of characters . . . of doublequote marks The [[doublequote]] symbol is used to [[delimit]] the beginning or end . . . here. * == Representation of the backslash symbol The [[backslash]] symbol is another character . . .
3K - last updated 2008-12-30 13:07 UTC by Mark Hobley
exponent
==Warning! The use of [[gawkism]]s will prevent the script from running correctly on systems that use . . . [[arithmetic]] operator. The [[doublestar]] symbol used here for [[arithmetic]] exponential operations . . .
2K - last updated 2012-03-20 07:33 UTC by g0pher
field reference
== The field reference operator == The [[dollar]] symbol acts as a unary *field reference operator* and . . . 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
gawkism
Gawkisms are non portable syntax components that do not work with some awk implementations. The use of . . . * [[newline]] characters after certain [[symbol]]s and [[keyword]]s are ignored * [[octal]] . . .
2K - last updated 2011-05-19 22:29 UTC by markhobley
hash
== Prefixing comments == The hash symbol can be used as a prefix for inserting comments within an [[awk]] . . .
1K - last updated 2010-11-08 22:37 UTC by markhobley
Hello World in awk
This example program outputs the words "hello world" to the terminal: {{{ awk # Hello World BEGIN { print . . . inserted by prefixing them with a [[crosshatch]] symbol. Any [[comment]]s are ignored by the [[awk]] . . . interpreter, which ignores the [[hash]] symbol and any other characters that follow it until . . .
2K - last updated 2010-11-11 19:16 UTC by markhobley
line orientated
== The awk extraction and reporting language is line orientated == The [[awk]] extraction and reporting . . . by using a [[backslash]] line [[continuation]] symbol to break the line: {{{ # A backslash symbol . . .
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 . . . code]] that begins with a [[backslash]] symbol: === Literal Character Representation Digraphs . . . === The following example shows how a backslash symbol is used to insert literal characters into a . . .
2K - last updated 2010-11-28 19:14 UTC by markhobley
logical operator
In [[awk]], *logical operators* are used to perform [[boolean]] operations, and a return a value of [true] . . . on the values of the [operand]s. | *Operator* | *Symbol* | *Description* | [[and]] | [[doubleampersand . . .
3K - last updated 2009-01-02 11:13 UTC by pgas
multiplication
== Multiplication Operator == The multiplication operator represented by the star symbol, is used as . . .
1K - last updated 2011-04-17 06:32 UTC by markhobley
nudge operator
The *nudge operators* can be used to [[increment]] or [[decrement]] the value of their [[operand]]s, . . . (nudge up), is represented by a [[plusplus]] symbol and the *decrement operator* (nudge down), is . . . represented by a [[doubledash]] symbol. The nudge [[operator]]s modify their [[operand]]s, . . .
3K - last updated 2011-03-20 13:18 UTC by markhobley
number
== _Numbers can be expressed as integers or floating point values_ In [[awk]], numbers can be expressed . . . number = -5 It is also possible to use the plus symbol as a unary numbersign operator to prefix positive . . .
1K - last updated 2011-03-06 22:33 UTC by markhobley
number sign operators
== _Number sign operators_ === _Negative numbers_ The *minus symbol* may be used as a [[unary]] operator . . . -5 is negative === _Positive numbers_ The *plus symbol* may be used as a [unary] operator in [[positive]] . . .
1K - last updated 2011-02-28 12:39 UTC by pgas
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 expression]]s . . . [[regular expression]]s separated by a [[comma]] symbol to mark start and ending points for text selection. . . .
2K - last updated 2011-05-19 18:18 UTC by markhobley
redirection
The awk scripting language provides support for redirection via the greaterthan, doublebeak and pipe . . . symbols. The greaterthan symbol acts as an output redirection . . . print "Hello" > foobar.txt } }}} A doublebeak symbol behaves in a similar manner to the greaterthan . . . symbol, but instead of the file being overwritten, . . .
2K - last updated 2011-06-25 05:12 UTC by pgas
SedFAQ
<toc> ---- == I have a line like "abdcgfjeuPATTERNfjfhghj", I want to get the PATTERN part, why . . . problems, you will probably have to choose some symbol or strange character; any character is fine, . . .
34K - last updated 2010-02-14 17:56 UTC by waldner
semicolon
== Separation of statements == The [[semicolon]] symbol can be used to separate multiple [[statement]]s . . .
1K - last updated 2010-11-28 19:46 UTC by markhobley
slash
== Division Operator == The slash symbol is used as the division operator to produce the [[result]]s . . . # 6 == Regular Expression Enclosure == The slash symbol is used as an [[enclosure]] that marks a [[regular . . .
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 . . . end of the statement or rule: == The semicolon symbol can be used to separate multiple statements . . . used on a single line === The [[semicolon]] symbol can be used to separate statements within a . . . to be continued: {{{ BEGIN { # The backslash symbol can be used to spread a statement across several . . .
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 . . . [[doublequote]] symbols: == _Empty strings_ A pair of consecutive [[doublequote]] . . . symbols can be used to represent an [[empty string]]. . . . 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. . . .
1K - last updated 2010-02-01 20:54 UTC by MarkHobley
symbol
| *Symbol* | *Name* | *Purpose* | !! | [[pling]] | logical NOT | " | [[doublequote]] | | # | [[hash]] . . .
2K - last updated 2013-02-19 14:26 UTC by markhobley
tilde
== Substring containment operator == The tilde [[symbol]] can be used as a containment operator providing . . .
1K - last updated 2011-05-19 19:04 UTC by markhobley
variable
A '''variable''' is a symbolic name associated with a [[value]]. A variable acts as a container and the . . . of [[letter]]s, [[digit]]s, or [[underscore]] symbols, and may not begin with a [[digit]]. The awk . . .
3K - last updated 2012-04-22 11:42 UTC by unregistered
35 pages found.