AwkGuide
** Work in Progress ** {{{ import from Mark Hobley's wiki }}} <toc> ---- == Overview * [[Overview]] . . . [[default variable]] * [[define functions]] * [[delimiter]]s * [[destructor]]s * [[division]] * [[doublequotes]] . . .
4K - last updated 2011-08-14 15:57 UTC by markhobley
delimiter
== _Literal strings are delimited using doublequotes_ In [[awk]], literal strings are delimited using . . .
1K - last updated 2010-10-21 20:58 UTC by markhobley
escape sequence
Some characters cannot be included in [[literal string]]s, because they are [[nonprintable]] or [[control . . . string is [[delimit]]ed using an alternative [[delimiter]]. *This article requires an example. Please . . .
3K - last updated 2008-12-30 13:07 UTC by Mark Hobley
FS
= Field Separator = The [[special variable]] FS is a field separator that is used to determine how [[awk]] . . . Any other single characters would be treated as delimiters for an empty field: {{{ #!/bin/sh # This . . . This gives five fields, because groups of other delimiters are treated as separating empty fields echo . . . print l ":" $l }' }}} == Matching a single space delimiter == If you really want to use a single space . . . delimiter, allowing groups of spaces to be treated . . .
5K - last updated 2013-02-19 21:45 UTC by markhobley
RangeOfFields
Printing a range of fields - all fields but the first, for examples, or fields 3 through 8 - is a surprisingly . . . guide to the syntax. {{{cut}}} cannot use field delimiters that are longer than a single character. . . . By default, the delimiter is the tab character. To select fields one, . . . to the previous example. If a single-character delimiter limitation is not a restriction, and if the . . . array where {{{delim[i]}}} gets filled with the delimiter string between {{{fld[i]}}} and {{{fld[i+1]}}}. . . .
10K - last updated 2015-09-08 09:52 UTC by pgas
RS
= Record Separator = The [[special variable]] RS is a record separator that is used to determine how . . . value of the record separator will be used as a delimiter for subsequent records. Note that an record . . .
3K - last updated 2013-02-19 23:11 UTC by markhobley
SedFAQ
<toc> ---- == I have a line like "abdcgfjeuPATTERNfjfhghj", I want to get the PATTERN part, why . . . less-known fact is that you can use a different delimiter even for pattern used in addresses, using . . .
34K - last updated 2010-02-14 17:56 UTC by waldner
7 pages found.