AwkGuide
** Work in Progress ** {{{ import from Mark Hobley's wiki }}} <toc> ---- == Overview * [[Overview]] . . . * [[regular expression operator]]s * [[repeat]] loops * [[return]] * [[RS]] * [[rule]]s * . . .
4K - last updated 2011-08-14 15:57 UTC by markhobley
CAWKLib
=CAWKLib CAWKlib is a library of functions for for awk intended to be used with preprocessors/wrappers . . . 's1' with string 's2' inserted at index 'i' *str_repeat() -- repeats a string x number of times (thanks . . . again Ben) *str_repeat_to() -- repeat a string up to a certain length . . .
5K - last updated 2015-01-29 10:14 UTC by 108-243-116-77.lightspeed.cicril.sbcglobal.net
ContextGrep
The following snippets print matching lines with surrounding context lines, like GNU grep's **grep -A . . . track of the last line printed, so lines are not repeated when contexts overlap. === Lines Before and . . .
3K - last updated 2011-07-01 08:32 UTC by pgas
FindAllIndices
Sometimes it is useful to find the index of every occurrence of a given character in a string. Let's . . . filled with indices of different characters by repeated invocation. The escaped-doublequote example . . .
2K - last updated 2011-07-05 10:53 UTC by pgas
HomePage
This wiki is maintained by regulars from the **#awk** channel on **[[https://libera.chat/|irc.libera.chat]]** . . . of a particular pattern in a string * RepeatAString n times * FormatFileSizes in human readable . . .
5K - last updated 2023-06-26 04:15 UTC by HappMacDonald
HomePageJapanese
Here is the Japanese page for [[HomePage]]. 英語のページは[[HomePage|こちら]]です。 この wiki は **[[http://www.freenode.net|irc.freenode.net]]** . . . [[FindAllMatches|文字列の特定のパターンにマッチするものを見つける]] * [[RepeatAString|文字列を n 回繰り返す]] * [[FormatFileSizes|可読なフォーマットのファイルサイズ]] . . .
5K - last updated 2008-10-19 07:34 UTC by hi saito
Inicio
Este wiki es mantenido por los usuarios del cenal **#awk** en **[[http://www.freenode.net|irc.freenode.net]]**. . . . of a particular pattern in a string * RepeatAString n times * FormatFileSizes in human readable . . .
7K - last updated 2009-02-12 23:31 UTC by fcr
iterative loop
An '''iterative loop''' repeatedly executes a set of instructions as the [iterator] steps through a series . . . A '''for loop''' is an '''iterative loop''' that repeatedly runs a [block] of instructions against an . . .
2K - last updated 2011-08-13 21:00 UTC by markhobley
Overview
= Overview of awk = == The primarily purpose of awk is to processing textual data to produce formatted . . . first line of the [[input file]], the cycle is repeated for each of the subsequent lines in of [[input]], . . .
4K - last updated 2011-05-23 23:09 UTC by markhobley
Overview of regular expressions
== What is a regular expression? == A regular expression is a method of representing a string matching . . . to specify how many times a character set is repeated. === Extended regular expression syntax === . . .
2K - last updated 2011-05-17 20:32 UTC by markhobley
repeat
A '''repeat loop''' is a [conditional loop] that repeatedly executes a block of instructions whilst the . . . an [while] syntactical cocomponent to produce a repeat loop: BEGIN { attempts = 1 do { print "Knock! . . . <= 10) } === _The block of code within a repeat loop will always run at least once_ Note than . . . unlike [while] loops, with a repeat loop, the [condition] is evaluated after the . . . This means that the [block] of code within a repeat loop will always run at least once. . . .
1K - last updated 2011-08-14 16:00 UTC by markhobley
RepeatAString
Sometimes it is useful to have something like Perl's 'x' operator, which repeats a string N times. This . . .
1K - last updated 2009-03-01 19:15 UTC by h-67-101-152-180.nycmny83.dynamic.covad.net
SedFAQ
<toc> ---- == I have a line like "abdcgfjeuPATTERNfjfhghj", I want to get the PATTERN part, why . . . yes, go to the main part bok # if not, go up and repeat :ok2 # we have .....\nPATTERN..\nPATTERN..\nPATTERN..\nPATTERN.. . . . and the next line is read, and the comparison repeated. Note that the loop in the program reads in . . .
34K - last updated 2010-02-14 17:56 UTC by waldner
ShellQuoting
Quoting can be such a headache for the novice, in shell programming, and especially in awk. Art Povelones . . . 1999/09/30 which is probably too much detail to repeat with the FAQ; if you could use it, search via . . .
2K - last updated 2008-11-19 07:41 UTC by pgas
14 pages found.