AA-awk-history
http://awk.freeshell.org/AA-awk-history\\ a concise history of awk and some of its forks\\ {{{ common . . . [2] http://www.cs.bell-labs.com/cm/cs/awkbook/index.html\\ adds . . .
2K - last updated 2013-10-26 02:28 UTC by g0ph3r
AA-awk-one-page
http://awk.freeshell.org/AA-awk-one-page\\ 2013-09-19 20:23:02 http://awk.freeshell.org/g0ph3r\\ attempt . . . \\ wiki: http://awk.freeshell.org/?action=index\\ portal: http://awk.info/?var/toc\\ irc chat . . . book: http://www.cs.bell-labs.com/cm/cs/awkbook/index.html\\ additions/changes: http://awk.freeshell.org/FIXES\\ . . . win-32: http://intgat.tigress.co.uk/rmy/busybox/index.html\\ exe-cutable: ftp://ftp.tigress.co.uk/public/gpl/6.0.0/busybox/\\ . . .
2K - last updated 2013-09-20 06:55 UTC by g0ph3r
Adler32Checksum
As documented in the [[http://en.wikipedia.org/wiki/Adler-32 | Adler-32 Wikipedia article]]. {{{ awk . . . since all awk arrays have string keys, every # index into an array incurs the constant overhead of . . .
4K - last updated 2008-12-31 12:05 UTC by pgas
awk-glossary
concise glossary of the essential awk - Last edited 2014-08-04 02:26 UTC\\ Contents: . . . http://awk.freeshell.org/?action=index\\ refs: . . . win32 . . .
5K - last updated 2014-08-04 03:23 UTC by y0tta
awk.exe
[[awk.exe]] Last edited 2013-05-27 23:57:16 PDT\\ The first is from Dr. Kernighan - the k of awk.\\ gawk . . . http://www.cs.princeton.edu/~bwk/btl.mirror/index.html\\ (compiled with Microsoft Visual C++)\\ . . .
2K - last updated 2013-05-28 07:57 UTC by g0ph3r
awk1page
an awk program is a series of //pattern { actions }// statements;\\ ie if the input line matchs pattern . . . list: [[http://awk.freeshell.org/?action=index|AwkChannelWiki: Index of all pages]] . . .
2K - last updated 2012-03-18 22:22 UTC by g0pher
awk nawk oawk
in 1977 there was awk.\\ this page attempts to explain the history of awk.\\ the 1978 7th Edition awk(1) . . . 1988\\ http://www.cs.bell-labs.com/cm/cs/awkbook/index.html\\ page v: original in 1977 / new version . . . http://www.cs.princeton.edu/~bwk/btl.mirror/index.html\\ from file FIXES - lists additions/changes . . .
2K - last updated 2012-03-18 23:21 UTC by g0pher
awka
Awka is comprised of an awk-to-C translator and a library the C code is linked against, to produce executables . . . UNIX systems. [[http://awka.sourceforge.net/index.html|Awka homepage]] Unlike [[libmawk]], Awka . . .
2K - last updated 2012-01-14 18:36 UTC by lewellyn
AwkOnWindows
[[AwkOnWindows|This page]] lists available versions of awk for ms windows.\\ Example: //awk /foo/{print(NR,$0)} . . . in [[http://www.cs.bell-labs.com/cm/cs/awkbook/index.html |The AWK Programming Language]]\\ book is . . .
2K - last updated 2010-10-24 09:39 UTC by g0pher
AwkOnWindowsHowto
AwkOnWindowsHowto\\ rough cut - needs edit {{{ 3) awk command line switches/usage from a win32 cmd.exe . . . 0.96 A[n] = n; 0.037 0.029 0.00091 0.20 i = index(s,x); 0.60 0.57 0.71 1.01 i = substr(s,32); 0.35 . . .
3K - last updated 2010-10-24 07:44 UTC by g0pher
AwkTips
<toc> ---- == Be idiomatic! In this paragraph, we give some hints on how to write more idiomatic . . . the only purpose of creating the array element indexed by $0. During the pass over the first file, . . . all the lines seen are remembered as indexes of the array a. The pass over the second file . . . check whether each line being read exists as an index in the array a (that's what the condition {{{$0 . . . mapfile datafile }}} First, the array a, indexed by opcode, is populated with the human readable . . .
31K - last updated 2009-03-24 16:54 UTC by waldner
BeforeAfterMatch
Problem: print the Nth record before or after a certain regular expression matches or, alternativley, . . . expression metacharacters, so in that case index() can be used instead (thanks prince_jammys from . . . #awk): {{{ sh awk -v N=3 -v pattern="f(oo)*bar" 'index($0,pattern){a[NR+N]}; NR in a' file }}} The above . . .
3K - last updated 2009-02-28 20:38 UTC by waldner
bwk
===bwk awk=== The original implementation of awk. Named after the initials of its primary author, Brian . . . at [[http://www.cs.princeton.edu/~bwk/btl.mirror/index.html]]. Many historical versions are available . . .
1K - last updated 2013-04-12 19:52 UTC by 67.80.208.web-pass.com
CAAN-or-caan
**caan: the comprehensive awk archive network**\\ -or-\\ . . . topics - toc\\ http://awk.freeshell.org/?action=index\\ ---- **Versions:**\\ bwk-awk: http://www.cs.princeton.edu/~bwk/btl.mirror\\ . . . http://intgat.tigress.co.uk/rmy/busybox/index.html\\ exe: ftp://ftp.tigress.co.uk/public/gpl/6.0.0/busybox/\\ . . .
4K - last updated 2014-05-29 02:01 UTC by g0ph3r
CaseInsensitive
{{{}}}**Use tolower()** * portable * must be explicitly used for each comparison Instead of: {{{ awk . . . * used for all comparisons, regex comparisons, index() function * not used for array indexing . . .
1K - last updated 2008-11-26 12:39 UTC by pgas
CAWKLib
=CAWKLib CAWKlib is a library of functions for for awk intended to be used with preprocessors/wrappers . . . array) *ary_choice() -- return random index from an array strings.awk: *str_capitalize() . . . returns string 's1' with string 's2' inserted at index 'i' *str_repeat() -- repeats a string x number . . .
5K - last updated 2015-01-29 10:14 UTC by 108-243-116-77.lightspeed.cicril.sbcglobal.net
ComparingTwoFiles
Sometimes it is useful to compare two files. To do this in awk, the trick is to load the data from the . . . a classic technique to create an array element index by the whole line. This will create an array . . .
2K - last updated 2011-08-25 00:35 UTC by steve
ContextGrep
The following snippets print matching lines with surrounding context lines, like GNU grep's **grep -A . . . a divider lineno = NR-Before # set the array index to start printing if (lineno<last) # check . . .
3K - last updated 2011-07-01 08:32 UTC by pgas
ENVIRON
Modern versions of new awk (gawk, mawk, Bell Labs awk, any POSIX awk) all provide an array named ENVIRON. . . . The array is indexed by environment variable name; the value is . . .
1K - last updated 2008-11-19 13:13 UTC by pgas
ENVIRONJapanese
Modern versions of new awk (gawk, mawk, Bell Labs awk, any POSIX awk) all provide an array named ENVIRON. . . . The array is indexed by environment variable name; the value is . . .
1K - last updated 2008-11-24 08:05 UTC by pgas
FindAllIndices
Sometimes it is useful to find the index of every occurrence of a given character in a string. Let's . . . An easy way of doing this is..: # find the index of every doublequote character; # perform a values-to-keys . . . that point to 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 . . . skipping the marked ones. Each odd-numbered index indicates the beginning of a doublequoted string . . .
2K - last updated 2011-07-05 10:53 UTC by pgas
g0pher
Notes: [[g0pher]] from [[irc://irc.freenode.net//#awk|#awk channel on freenode]]. *Latest (2012-03-18) . . . list: [[http://awk.freeshell.org/?action=index|Awk Channel Wiki: Index of all pages]] *Hot awk . . .
2K - last updated 2013-05-28 04:13 UTC by g0ph3r
HomePageJapanese
Here is the Japanese page for [[HomePage]]. 英語のページは[[HomePage|こちら]]です。 この wiki は **[[http://www.freenode.net|irc.freenode.net]]** . . . 3 部]。 * [http://www.computerworld.com.au/index.php/id;1726534212;fp;;fpid;;pf;1|The A-Z of Programming . . .
5K - last updated 2008-10-19 07:34 UTC by hi saito
index
== Usage == === index [ STRING, SUBSTRING ] === The index [[function]] is used to locate the first occurrence . . . a value of [[zero]] is returned: BEGIN { print index("Staffordshire","ford") # 5 } === Case sensitivity . . .
1K - last updated 2011-06-09 20:36 UTC by markhobley
Inicio
Este wiki es mantenido por los usuarios del cenal **#awk** en **[[http://www.freenode.net|irc.freenode.net]]**. . . . * [http://www.computerworld.com.au/index.php/id;1726534212;fp;;fpid;;pf;1|The A-Z of Programming . . .
7K - last updated 2009-02-12 23:31 UTC by fcr
LastField
awk performs a number of actions automatically when it parses lines: it updates the variable NF, which . . . number of fields on a line, and since fields are indexed starting from 1, $(NF) (or just $NF) contains . . .
2K - last updated 2009-02-05 22:43 UTC by firebush.stsci.edu
LastMatchOnLine
The function 'match' sets RSTART to the index of each match and RLENGTH to its length, and returns 0 . . .
1K - last updated 2009-04-14 22:07 UTC by 216.162.199.202
LinksPage
<toc> ---- == websites dedicated to awk == * [[http://awk.info/|awk.info]] news and articles about . . . interviews == * [http://www.computerworld.com.au/index.php/id;1726534212;fp;;fpid;;pf;1|The A-Z of Programming . . . . . . * http://awkiawki.bogosoft.com/ * http://blis.sourceforge.net/cgi-bin/blis.cgi . . .
4K - last updated 2015-02-24 14:45 UTC by pgas
Overview
= Overview of awk = == The primarily purpose of awk is to processing textual data to produce formatted . . . [[http://markhobley.yi.org/programming/hammers/index.html|hammer scale]], and is classified as "A . . .
4K - last updated 2011-05-23 23:09 UTC by markhobley
PrimeNumberSieve
This is the standard sieve of Eratosthenes implemented in portable awk. The running time of the bare . . . bypassing the hashing performed on all keys that index into arrays (integers are converted to strings . . . Based on very, very preliminary testing): indexing directly into the fields on a given line is . . . far faster than indexing into an array. This is unsurprising, since . . . is dumb. This is purely an exercise in testing indexed data lookup facilities across multiple implementations. . . .
4K - last updated 2008-06-19 05:56 UTC by gnomon
RangeOfFields
Printing a range of fields - all fields but the first, for examples, or fields 3 through 8 - is a surprisingly . . . extract_range($0, 3, NF)}' }}} ==== Using index(), substr(), length() and printf() This approach . . . s - 1 to prev for (i=1; i<s; i++) { prev += index(substr($0, prev + 1), $i) + length($i) - 1; } . . . add the space between s-1 and s to prev prev += index(substr($0, prev + 1), $s) - 1; # loop over the . . . the last field to the end of the current len = index(substr($0, prev + 1), $i) + length($i) - 1; # . . .
10K - last updated 2015-09-08 09:52 UTC by pgas
SolarisNawk
I want to use the tolower() function with {{{SunOS}}} nawk, but all I get is {{{ nawk: calling undefined . . . it), or write your own function to do it using index, substr, and gsub. An example of such a function . . .
1K - last updated 2008-11-24 08:24 UTC by pgas
SolarisNawkJapanese
I want to use the tolower() function with {{{SunOS}}} nawk, but all I get is {{{ nawk: calling undefined . . . it), or write your own function to do it using index, substr, and gsub. An example of such a function . . .
1K - last updated 2008-11-24 08:36 UTC by pgas
special variable
Some [[variable]] names have a special meaning to the awk interpreter. == List of special variables == . . . An informative variable that provides the start index of the currently matched substring | [[SUBSEP]] . . .
2K - last updated 2011-06-25 05:46 UTC by pgas
string manipulation
* [[case conversion]] * [[length|Determine the length of a string]] * [[index|Determine the position . . .
1K - last updated 2011-07-04 22:12 UTC by markhobley
string manipulation function
The [[awk]] programming language provides a set of [[builtin]] functions for performing various string . . . manipulation operations: * [[gsub]] * [[index]] * [[length]] * [[match]] * [[split]] * [[sprintf]] . . .
1K - last updated 2011-06-07 00:35 UTC by markhobley
text.2.wiki.awk
#: C:\#\awk\lib\text.2.wiki.awk\\ . . . i = index(s, "[["); . . . j = index(s, "\|"); . . . k = index(s, "]]"); . . .
11K - last updated 2012-09-24 14:55 UTC by g0ph3r
WartAndWishList
Awk is a wonderful language! That said, there are a few annoying bits... == The Good * well-documented . . . This means that even when numbers are used to index into an array, the numbers are first converted . . . contain strings and numbers, and can only be indexed by strings. Arrays cannot contain other arrays, . . .
7K - last updated 2009-04-13 18:39 UTC by goedel
What is awk
awk is an extraction and reporting language, named after its three original authors: * Alfred V. **A**ho . . . * http://www.student.northpark.edu/pemente/sed/index.htm * http://www.student.northpark.edu/pemente/sed/sedfaq.html . . . [[http://www.cs.bell-labs.com/cm/cs/awkbook/index.html|awk]], often called 'new awk', 'nawk' or . . . compiler]], [[http://awka.sourceforge.net/index.html|awka]], [[http://www.tasoft.com/tawk.html|tawk]] . . .
5K - last updated 2014-11-28 08:24 UTC by pgas
What is awkJapanese
awk is a programming language, named after its three original authors: * Alfred V. Aho * Brian W. Kernighan . . . * http://www.student.northpark.edu/pemente/sed/index.htm * http://www.student.northpark.edu/pemente/sed/sedfaq.html . . .
2K - last updated 2008-11-24 08:03 UTC by pgas
40 pages found.