AA-awk-history
http://awk.freeshell.org/AA-awk-history\\ a concise history of awk and some of its forks\\ {{{ common . . . do delete function return\\ [3] current maintainer - the dr. k of awk\\ . . .
2K - last updated 2013-10-26 02:28 UTC by g0ph3r
AllAboutGetline
//Editor's notes: The article was originally posted on the comp.lang.awk newsgroup, and can still be . . . simplest, less error-prone, and easiest to maintain to let awks normal text-processing read the . . .
16K - last updated 2009-02-15 22:14 UTC by waldner
awk-glossary
concise glossary of the essential awk - Last edited 2014-08-04 02:26 UTC\\ Contents: . . . David Robbins -- maintainer of gawk\\ http://www.skeeve.com\\ . . . Thomas E. Dickey -- maintainer of mawk\\ http://invisible-island.net/personal/resume.html\\ . . .
5K - last updated 2014-08-04 03:23 UTC by y0tta
awk 2012 ISO
**[[awk_2012_ISO]]** revised: . . . (the //k// of awk and maintainer of awk)\\ home: http://www.cs.princeton.edu/~bwk\\ . . . \\ Aharon D. Robbins (maintainer of gawk)\\ home: http://www.skeeve.com\\ . . . \\ Thomas E. Dickey (maintainer of mawk 1.3.4)\\ home: . . .
4K - last updated 2012-09-16 03:39 UTC by g0ph3r
AwkGuide
** Work in Progress ** {{{ import from Mark Hobley's wiki }}} <toc> ---- == Overview * [[Overview]] . . . modifier]]s * [[limitation]]s * [[loop]]s * [[main]] * [[mathematical function]]s * [[mistake]]s . . .
4K - last updated 2011-08-14 15:57 UTC by markhobley
AwkOnWindows
[[AwkOnWindows|This page]] lists available versions of awk for ms windows.\\ Example: //awk /foo/{print(NR,$0)} . . . |The AWK Programming Language]]\\ book is maintained by [[http://www.cs.princeton.edu/~bwk/btl.mirror/| . . .
2K - last updated 2010-10-24 09:39 UTC by g0pher
case conversion
The [[awk]] extraction and reporting language provides the toupper and tolower functions for converting . . . string is converted, the provided argument remains unchanged: {{{ awk BEGIN { mystring = "I Like . . . string is converted, the provided argument remains unchanged: {{{ awk BEGIN { mystring = "I Like . . .
2K - last updated 2011-06-25 05:10 UTC by pgas
ConvertHexToFloatingPoint
This code uses [[gawkism|gawk specific features]], such as the [[http://www.gnu.org/manual/gawk/html_node/Strtonum-Function.html][strtonum]] . . . <stdlib.h> #include <time.h> int main() { float f[10]; char *p; srand(time(NULL)); for(int . . .
3K - last updated 2010-06-23 19:49 UTC by john b
gawkism
Gawkisms are non portable syntax components that do not work with some awk implementations. The use of . . . (bitwise function) * [[AWKPATH]] * [[bindtextdomain]] function * [[BINMODE]] * [[bitwise]] functions . . . function * [[strtonum]] function * [[TEXTDOMAIN]] * underscore string prefix (for translation) . . .
2K - last updated 2011-05-19 22:29 UTC by markhobley
GeneralizedTextReplacement
Some times people need to recode in awk something they were previously doing with sed or another tool. . . . substr(orgstr,last) return newstr } # main body of the program; here we just turn the matched . . .
6K - last updated 2009-03-26 20:38 UTC by waldner
Hello World in awk
This example program outputs the words "hello world" to the terminal: {{{ awk # Hello World BEGIN { print . . . statement The first [[statement]] within the [[main]] function calls the [[print]] statement with . . .
2K - last updated 2010-11-11 19:16 UTC by markhobley
HomePage
This wiki is maintained by regulars from the **#awk** channel on **[[https://libera.chat/|irc.libera.chat]]** . . .
5K - last updated 2023-06-26 04:15 UTC by HappMacDonald
libmawk
libmawk is a fork of [[mawk]], designed for embedding in C programs. Compare and contrast with [[awka]]. . . . Libmawk has the following main features: * load and run multiple awk scripts . . .
2K - last updated 2012-01-16 09:07 UTC by lewellyn
ListOfPastebins
This is a list of PasteBin URLs that have been used in #awk. There should be a much shorter list of recommended . . . , http://pastebin.com - all subdomains of the same general service * http://pastebin.bafserv.com . . . similarity in names, are likely developed and maintained by the same person and/or organization. . . .
2K - last updated 2015-09-08 09:08 UTC by pgas
main
== Making the application start up from a main routine == In some languages, a '''main''' function provides . . . language is [[datadriven]], so does not have a main function. However, it does support the use of . . . for our application: {{{ BEGIN { # This is our main startup procedure print "Hello World!" } }}} . . .
1K - last updated 2011-07-18 09:57 UTC by markhobley
mawk
The **mawk** package provides a very fast awk implementation by Mike Brennan[1] based on a byte code . . . interpreter. It is currently maintained by Thomas E. Dickey. [[http://invisible-island.net/mawk/mawk.html|mawk . . . See also: [[libmawk]] [1] Brennan still maintains his own version of **mawk** called **mawk-2** . . .
1K - last updated 2023-11-23 19:50 UTC by AwkwardCoder
modulus
The [[dyadic]] modulus [[operator]], represented by a [[percent]] sign is used to return the remainder . . . division [[arithmetic]]: print 15 % 4 # 3 (the remainder of 15 divided by 4) == Negative Numbers == . . .
1K - last updated 2011-06-07 00:41 UTC by markhobley
output
== output == === standard output === === output to files === The [[awk]] programming language uses a . . . has been defined, the output file remains open until a [[close]] command is encountered, . . .
1K - last updated 2010-11-16 00:44 UTC by markhobley
PrimeNumberSieve
This is the standard sieve of Eratosthenes implemented in portable awk. The running time of the bare . . . primes up to sqrt(bound) and then sifting the remaining segments for O(n) runtime; using Pritchard's . . . techniques to reach sublinear runtime). The main difference between {{{sift1}}} and {{{sift2}}} . . .
4K - last updated 2008-06-19 05:56 UTC by gnomon
qse
Not a standalone awk, but an interesting library embedding an awk interpreter, from [[https://groups.google.com/group/comp.lang.awk/browse_thread/thread/b02c0d75e49eab75/54fc2c6316d657bc?lnk=gst&q=c%2B%2B+embed#54fc2c6316d657bc| . . . %s\n"),msg); goto oops; } while(0) int main () { qse_awk_t* awk = QSE_NULL; qse_awk_rtx_t* . . . std::endl; \ return -1; \ } while (0) int main (int argc, char* argv[]) { MyAwk awk; // open . . .
4K - last updated 2011-10-27 06:25 UTC by pgas
RangeOfFields
Printing a range of fields - all fields but the first, for examples, or fields 3 through 8 - is a surprisingly . . . awk performs field splitting, it does not maintain a record (or at least not that is accessible . . .
10K - last updated 2015-09-08 09:52 UTC by pgas
RepeatAString
Sometimes it is useful to have something like Perl's 'x' operator, which repeats a string N times. This . . . of contents. {{{ awk function rep(str, num, remain, result) { if (num < 2) { remain = (num == . . . 1) } else { remain = (num % 2 == 1) result = rep(str, (num - remain) . . . / 2) } return result result (remain ? str :"") } }}} The function {{{rep}}} above . . .
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 . . . in the previous section to pull out the remaining occurrences (thus effectively pulling out the . . . with \n) s/PATTERN/replacement/g # replace all remaining occurrences G # append hold space (naked 4th . . . isolated 4 occurrences tok2 # if yes, go to the main part bok # if not, go up and repeat :ok2 # we . . . the longes common prefix. This is then what remains in the pattern space, and the next line is read, . . .
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 . . . probably the best, and easiest to understand and maintain, for most purposes: (the '@@' is quoted to . . .
2K - last updated 2008-11-19 07:41 UTC by pgas
WartAndWishList
Awk is a wonderful language! That said, there are a few annoying bits... == The Good * well-documented . . . good consistency between them * terse domain-specific syntax * rapid execution, fast startup . . .
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 . . . in any case, it is still actively maintained now. The newest released version is 3.1.6. . . . the development version (3.2.0 or 4.x; the gawk maintainer hasn't decided yet). # 1991: Mike Brennan . . . open license. Huzzah! This version is also still maintained and is available from Brian Kernighan's . . .
5K - last updated 2014-11-28 08:24 UTC by pgas
WhichIsBetter
This comes up so often that it deserves a page on its own. **NEVER**, **EVER** ask computer people whether . . . * familiar * cool * easy to use * easy to maintain * quick and dirty * available on many platforms . . .
5K - last updated 2009-07-12 09:13 UTC by host-87-74-84-72.dslgb.com
27 pages found.