AwkTips
<toc> ---- == Be idiomatic! In this paragraph, we give some hints on how to write more idiomatic . . . still be done, it just requires more code. See [[FindAllMatches]]. ---- == Joining lines based on ending . . .
31K - last updated 2009-03-24 16:54 UTC by waldner
FindAllMatches
This bit of code will match all non-overlapping instances of a given pattern in a string and will store . . . list to add the start[] array {{{ awk function FindAllMatches(str, re, arr, j, a, b) { j=0 # eaten . . .
2K - last updated 2009-03-24 09:46 UTC by waldner
GeneralizedTextReplacement
Some times people need to recode in awk something they were previously doing with sed or another tool. . . . anything { str=$0 # save original string, since FindAllMatches will consume it # find all matches of . . . fill the start[] array with their positions n=FindAllMatches(str,"foo",mtch,start) # here we can . . . }}} First, we run FindAllMatches to get all matches of /[ac][0-9]/. This . . . be changed to do what you want. Furthermore, the FindAllMatches function can also be used as is for . . .
6K - last updated 2009-03-26 20:38 UTC by waldner
HomePage
This wiki is maintained by regulars from the **#awk** channel on **[[https://libera.chat/|irc.libera.chat]]** . . . of a particular character in a string * FindAllMatches of a particular pattern in a string . . .
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]]** . . . * [[FindAllIndices|文字列の特定の文字の位置を見つける]] * [[FindAllMatches|文字列の特定のパターンにマッチするものを見つける]] * [[RepeatAString|文字列を . . .
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 character in a string * FindAllMatches of a particular pattern in a string . . .
7K - last updated 2009-02-12 23:31 UTC by fcr
6 pages found.