diff options
Diffstat (limited to 'doc/gawk.info')
-rw-r--r-- | doc/gawk.info | 1594 |
1 files changed, 874 insertions, 720 deletions
diff --git a/doc/gawk.info b/doc/gawk.info index b81c0700..fe51de53 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -615,6 +615,7 @@ entitled "GNU Free Documentation License". * Unix Installation:: Installing `gawk' under various versions of Unix. * Quick Installation:: Compiling `gawk' under Unix. +* Shell Startup Files:: Shell convenience functions. * Additional Configuration Options:: Other compile-time options. * Configuration Philosophy:: How it's all supposed to work. * Non-Unix Installation:: Installation on Other Operating @@ -2633,10 +2634,8 @@ The following list describes options mandated by the POSIX standard: different file name for the output. No space is allowed between the `-o' and FILE, if FILE is supplied. - NOTE: Due to the way `gawk' has evolved, with this option - your program is still executed. This will change in the next - major release such that `gawk' will only pretty-print the - program and not run it. + NOTE: In the past, this option would also execute your + program. This is no longer the case. `-O' `--optimize' @@ -2936,6 +2935,9 @@ Since `.' is included at the beginning, `gawk' searches first in the current directory and then in `/usr/local/share/awk'. In practice, this means that you will rarely need to change the value of `AWKPATH'. + *Note Shell Startup Files::, for information on functions that help +to manipulate the `AWKPATH' variable. + `gawk' places the value of the search path that it used into `ENVIRON["AWKPATH"]'. This provides access to the actual search path value from within an `awk' program. @@ -2975,6 +2977,9 @@ empty value, `gawk' uses a default path; this is typically `/usr/local/lib/gawk', although it can vary depending upon how `gawk' was built. + *Note Shell Startup Files::, for information on functions that help +to manipulate the `AWKLIBPATH' variable. + `gawk' places the value of the search path that it used into `ENVIRON["AWKLIBPATH"]'. This provides access to the actual search path value from within an `awk' program. @@ -3046,13 +3051,6 @@ change. The variables are: supposed to be differences, but occasionally theory and practice don't coordinate with each other.) -`GAWK_NO_PP_RUN' - When `gawk' is invoked with the `--pretty-print' option, it will - not run the program if this environment variable exists. - - CAUTION: This variable will not survive into the next major - release. - `GAWK_STACKSIZE' This specifies the amount by which `gawk' should grow its internal evaluation stack, when needed. @@ -3444,15 +3442,18 @@ sequences apply to both string constants and regexp constants: `\xHH...' The hexadecimal value HH, where HH stands for a sequence of - hexadecimal digits (`0'-`9', and either `A'-`F' or `a'-`f'). Like - the same construct in ISO C, the escape sequence continues until - the first nonhexadecimal digit is seen. (c.e.) However, using - more than two hexadecimal digits produces undefined results. (The - `\x' escape sequence is not allowed in POSIX `awk'.) - - CAUTION: The next major release of `gawk' will change, such - that a maximum of two hexadecimal digits following the `\x' - will be used. + hexadecimal digits (`0'-`9', and either `A'-`F' or `a'-`f'). A + maximum of two digts are allowed after the `\x'. Any further + hexadecimal digits are treated as simple letters or numbers. + (c.e.) (The `\x' escape sequence is not allowed in POSIX awk.) + + CAUTION: In ISO C, the escape sequence continues until the + first nonhexadecimal digit is seen. For many years, `gawk' + would continue incorporating hexadecimal digits into the + value until a non-hexadecimal digit or the end of the string + was encountered. However, using more than two hexadecimal + digits produced undefined results. As of version *FIXME:* + 4.3.0, only two digits are processed. `\/' A literal slash (necessary for regexp constants only). This @@ -10321,10 +10322,24 @@ Options::), they are not special: An associative array containing the values of the environment. The array indices are the environment variable names; the elements are the values of the particular environment variables. For - example, `ENVIRON["HOME"]' might be `"/home/arnold"'. Changing - this array does not affect the environment passed on to any - programs that `awk' may spawn via redirection or the `system()' - function. (In a future version of `gawk', it may do so.) + example, `ENVIRON["HOME"]' might be `/home/arnold'. + + For POSIX `awk', changing this array does not affect the + environment passed on to any programs that `awk' may spawn via + redirection or the `system()' function. + + However, beginning with version 4.2, if not in POSIX compatibility + mode, `gawk' does update its own environment when `ENVIRON' is + changed, thus changing the environment seen by programs that it + creates. You should therefore be especially careful if you modify + `ENVIRON["PATH"]"', which is the search path for finding + executable programs. + + This can also affect the running `gawk' program, since some of the + built-in functions may pay attention to certain environment + variables. The most notable instance of this is `mktime()' (*note + Time Functions::), which pays attention the value of the `TZ' + environment variable on many systems. Some operating systems may not have environment variables. On such systems, the `ENVIRON' array is empty (except for @@ -11876,6 +11891,21 @@ brackets ([ ]): `cos(X)' Return the cosine of X, with X in radians. +`div(NUMERATOR, DENOMINATOR, RESULT)' + Perform integer division, similar to the standard C function of the + same name. First, truncate `numerator' and `denominator' towards + zero, creating integer values. Clear the `result' array, and then + set `result["quotient"]' to the result of `numerator / + denominator', truncated towards zero to an integer, and set + `result["remainder"]' to the result of `numerator % denominator', + truncated towards zero to an integer. This function is primarily + intended for use with arbitrary length integers; it avoids + creating MPFR arbitrary precision floating-point values (*note + Arbitrary Precision Integers::). + + This function is a `gawk' extension. It is not available in + compatibility mode (*note Options::). + `exp(X)' Return the exponential of X (`e ^ X') or report an error if X is out of range. The range of values X can have depends on your @@ -19865,8 +19895,7 @@ output. They are as follows: you typed when you wrote it. This is because `gawk' creates the profiled version by "pretty printing" its internal representation of the program. The advantage to this is that `gawk' can produce a -standard representation. The disadvantage is that all source-code -comments are lost. Also, things such as: +standard representation. Also, things such as: /foo/ @@ -19925,8 +19954,24 @@ by the `Ctrl-<\>' key. called this way, `gawk' "pretty prints" the program into `awkprof.out', without any execution counts. - NOTE: The `--pretty-print' option still runs your program. This - will change in the next major release. + NOTE: Once upon a time, the `--pretty-print' option would also run + your program. This is is no longer the case. + + There is a significant difference between the output created when +profiling, and that created when pretty-printing. Pretty-printed output +preserves the original comments that were in the program, although their +placement may not correspond exactly to their original locations in the +source code. + + However, as a deliberate design decision, profiling output _omits_ +the original program's comments. This allows you to focus on the +execution count data and helps you avoid the temptation to use the +profiler for pretty-printing. + + Additionally, pretty-printed output does not have the leading +indentation that the profiling output does. This makes it easy to +pretty-print your code once development is completed, and then use the +result as the final version of your program. File: gawk.info, Node: Advanced Features Summary, Prev: Profiling, Up: Advanced Features @@ -22413,6 +22458,62 @@ the following: gawk -M 'BEGIN { n = 13; print n % 2 }' + When dividing two arbitrary precision integers with either `/' or +`%', the result is typically an arbitrary precision floating point +value (unless the denominator evenly divides into the numerator). In +order to do integer division or remainder with arbitrary precision +integers, use the built-in `div()' function (*note Numeric Functions::). + + You can simulate the `div()' function in standard `awk' using this +user-defined function: + + # div --- do integer division + + function div(numerator, denominator, result) + { + split("", result) + + numerator = int(numerator) + denominator = int(denominator) + result["quotient"] = int(numerator / denominator) + result["remainder"] = int(numerator % denominator) + + return 0.0 + } + + The following example program, contributed by Katie Wasserman, uses +`div()' to compute the digits of pi to as many places as you choose to +set: + + # pi.awk --- compute the digits of pi + + BEGIN { + digits = 100000 + two = 2 * 10 ^ digits + pi = two + for (m = digits * 4; m > 0; --m) { + d = m * 2 + 1 + x = pi * m + div(x, d, result) + pi = result["quotient"] + pi = pi + two + } + print pi + } + + When asked about the algorithm used, Katie replied: + + It's not that well known but it's not that obscure either. It's + Euler's modification to Newton's method for calculating pi. Take + a look at lines (23) - (25) here: + `http://mathworld.wolfram.com/PiFormulas.htm'. + + The algorithm I wrote simply expands the multiply by 2 and works + from the innermost expression outwards. I used this to program HP + calculators because it's quite easy to modify for tiny memory + devices with smallish word sizes. See + `http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/articles.cgi?read=899'. + ---------- Footnotes ---------- (1) Weisstein, Eric W. `Sylvester's Sequence'. From MathWorld--A @@ -26441,6 +26542,8 @@ the current version of `gawk'. - Ultrix + * Support for MirBSD was removed at `gawk' version 4.2. + File: gawk.info, Node: Feature History, Next: Common Extensions, Prev: POSIX/GNU, Up: Language History @@ -27343,7 +27446,9 @@ Various `.c', `.y', and `.h' files `doc/igawk.1' The `troff' source for a manual page describing the `igawk' - program presented in *note Igawk Program::. + program presented in *note Igawk Program::. (Since `gawk' can do + its own `@include' processing, neither `igawk' nor `igawk.1' are + installed.) `doc/Makefile.in' The input file used during the configuration process to generate @@ -27385,17 +27490,23 @@ Various `.c', `.y', and `.h' files contains a `Makefile.in' file, which `configure' uses to generate a `Makefile'. `Makefile.am' is used by GNU Automake to create `Makefile.in'. The library functions from *note Library - Functions::, and the `igawk' program from *note Igawk Program::, - are included as ready-to-use files in the `gawk' distribution. - They are installed as part of the installation process. The rest - of the programs in this Info file are available in appropriate - subdirectories of `awklib/eg'. + Functions::, are included as ready-to-use files in the `gawk' + distribution. They are installed as part of the installation + process. The rest of the programs in this Info file are available + in appropriate subdirectories of `awklib/eg'. `extension/*' The source code, manual pages, and infrastructure files for the sample extensions included with `gawk'. *Note Dynamic Extensions::, for more information. +`extras/*' + Additional non-essential files. Currently, this directory + contains some shell startup files to be installed in + `/etc/profile.d' to aid in manipulating the `AWKPATH' and + `AWKLIBPATH' environment variables. *Note Shell Startup Files::, + for more information. + `posix/*' Files needed for building `gawk' on POSIX-compliant systems. @@ -27426,11 +27537,12 @@ configure `gawk' for your system yourself. * Menu: * Quick Installation:: Compiling `gawk' under Unix. +* Shell Startup Files:: Shell convenience functions. * Additional Configuration Options:: Other compile-time options. * Configuration Philosophy:: How it's all supposed to work. -File: gawk.info, Node: Quick Installation, Next: Additional Configuration Options, Up: Unix Installation +File: gawk.info, Node: Quick Installation, Next: Shell Startup Files, Up: Unix Installation B.2.1 Compiling `gawk' for Unix-Like Systems -------------------------------------------- @@ -27486,9 +27598,43 @@ will be asked for your password, and you will have to have been set up previously as a user who is allowed to run the `sudo' command. -File: gawk.info, Node: Additional Configuration Options, Next: Configuration Philosophy, Prev: Quick Installation, Up: Unix Installation +File: gawk.info, Node: Shell Startup Files, Next: Additional Configuration Options, Prev: Quick Installation, Up: Unix Installation + +B.2.2 Shell Startup Files +------------------------- + +The distribution contains shell startup files `gawk.sh' and `gawk.csh' +containing functions to aid in manipulating the `AWKPATH' and +`AWKLIBPATH' environment variables. On a Fedora system, these files +should be installed in `/etc/profile.d'; on other platforms, the +appropriate location may be different. + +`gawkpath_default' + Reset the `AWKPATH' environment variable to its default value. + +`gawkpath_prepend' + Add the argument to the front of the `AWKPATH' environment + variable. + +`gawkpath_append' + Add the argument to the end of the `AWKPATH' environment variable. + +`gawklibpath_default' + Reset the `AWKLIBPATH' environment variable to its default value. + +`gawklibpath_prepend' + Add the argument to the front of the `AWKLIBPATH' environment + variable. + +`gawklibpath_append' + Add the argument to the end of the `AWKLIBPATH' environment + variable. + + + +File: gawk.info, Node: Additional Configuration Options, Next: Configuration Philosophy, Prev: Shell Startup Files, Up: Unix Installation -B.2.2 Additional Configuration Options +B.2.3 Additional Configuration Options -------------------------------------- There are several additional options you may use on the `configure' @@ -27530,7 +27676,7 @@ supplied by `configure'. File: gawk.info, Node: Configuration Philosophy, Prev: Additional Configuration Options, Up: Unix Installation -B.2.3 The Configuration Process +B.2.4 The Configuration Process ------------------------------- This minor node is of interest only if you know something about using @@ -31335,20 +31481,20 @@ Index * --include option: Options. (line 159) * --lint option <1>: Options. (line 185) * --lint option: Command Line. (line 20) -* --lint-old option: Options. (line 297) +* --lint-old option: Options. (line 295) * --load option: Options. (line 173) * --non-decimal-data option <1>: Nondecimal Data. (line 6) * --non-decimal-data option: Options. (line 211) * --non-decimal-data option, strtonum() function and: Nondecimal Data. (line 35) -* --optimize option: Options. (line 238) -* --posix option: Options. (line 256) -* --posix option, --traditional option and: Options. (line 275) +* --optimize option: Options. (line 236) +* --posix option: Options. (line 254) +* --posix option, --traditional option and: Options. (line 273) * --pretty-print option: Options. (line 225) * --profile option <1>: Profiling. (line 12) -* --profile option: Options. (line 244) -* --re-interval option: Options. (line 281) -* --sandbox option: Options. (line 288) +* --profile option: Options. (line 242) +* --re-interval option: Options. (line 279) +* --sandbox option: Options. (line 286) * --sandbox option, disabling system() function: I/O Functions. (line 128) * --sandbox option, input redirection with getline: Getline. (line 19) @@ -31356,9 +31502,9 @@ Index (line 6) * --source option: Options. (line 117) * --traditional option: Options. (line 81) -* --traditional option, --posix option and: Options. (line 275) +* --traditional option, --posix option and: Options. (line 273) * --use-lc-numeric option: Options. (line 220) -* --version option: Options. (line 302) +* --version option: Options. (line 300) * --with-whiny-user-strftime configuration option: Additional Configuration Options. (line 35) * -b option: Options. (line 68) @@ -31366,32 +31512,32 @@ Index * -c option: Options. (line 81) * -D option: Options. (line 108) * -d option: Options. (line 93) -* -e option: Options. (line 338) +* -e option: Options. (line 336) * -E option: Options. (line 125) * -e option: Options. (line 117) * -f option: Options. (line 25) * -F option: Options. (line 21) * -f option: Long. (line 12) -* -F option, -Ft sets FS to TAB: Options. (line 310) +* -F option, -Ft sets FS to TAB: Options. (line 308) * -F option, command-line: Command Line Field Separator. (line 6) -* -f option, multiple uses: Options. (line 315) +* -f option, multiple uses: Options. (line 313) * -g option: Options. (line 147) * -h option: Options. (line 154) * -i option: Options. (line 159) -* -L option: Options. (line 297) +* -L option: Options. (line 295) * -l option: Options. (line 173) * -M option: Options. (line 205) * -N option: Options. (line 220) * -n option: Options. (line 211) -* -O option: Options. (line 238) +* -O option: Options. (line 236) * -o option: Options. (line 225) -* -P option: Options. (line 256) -* -p option: Options. (line 244) -* -r option: Options. (line 281) -* -S option: Options. (line 288) +* -P option: Options. (line 254) +* -p option: Options. (line 242) +* -r option: Options. (line 279) +* -S option: Options. (line 286) * -v option: Assignment Options. (line 12) -* -V option: Options. (line 302) +* -V option: Options. (line 300) * -v option: Options. (line 32) * -W option: Options. (line 46) * . (period), regexp operator: Regexp Operators. (line 44) @@ -31453,10 +31599,10 @@ Index (line 8) * [] (square brackets), regexp operator: Regexp Operators. (line 56) * \ (backslash): Comments. (line 50) -* \ (backslash), \" escape sequence: Escape Sequences. (line 82) +* \ (backslash), \" escape sequence: Escape Sequences. (line 85) * \ (backslash), \' operator (gawk): GNU Regexp Operators. (line 56) -* \ (backslash), \/ escape sequence: Escape Sequences. (line 73) +* \ (backslash), \/ escape sequence: Escape Sequences. (line 76) * \ (backslash), \< operator (gawk): GNU Regexp Operators. (line 30) * \ (backslash), \> operator (gawk): GNU Regexp Operators. @@ -31496,7 +31642,7 @@ Index * \ (backslash), in bracket expressions: Bracket Expressions. (line 17) * \ (backslash), in escape sequences: Escape Sequences. (line 6) * \ (backslash), in escape sequences, POSIX and: Escape Sequences. - (line 105) + (line 108) * \ (backslash), in regexp constants: Computed Regexps. (line 29) * \ (backslash), in shell commands: Quoting. (line 48) * \ (backslash), regexp operator: Regexp Operators. (line 18) @@ -31664,7 +31810,7 @@ Index * awf (amazingly workable formatter) program: Glossary. (line 24) * awk debugging, enabling: Options. (line 108) * awk language, POSIX version: Assignment Ops. (line 137) -* awk profiling, enabling: Options. (line 244) +* awk profiling, enabling: Options. (line 242) * awk programs <1>: Two Rules. (line 6) * awk programs <2>: Executable Scripts. (line 6) * awk programs: Getting Started. (line 12) @@ -31722,10 +31868,10 @@ Index * awkvars.out file: Options. (line 93) * b debugger command (alias for break): Breakpoint Control. (line 11) * backslash (\): Comments. (line 50) -* backslash (\), \" escape sequence: Escape Sequences. (line 82) +* backslash (\), \" escape sequence: Escape Sequences. (line 85) * backslash (\), \' operator (gawk): GNU Regexp Operators. (line 56) -* backslash (\), \/ escape sequence: Escape Sequences. (line 73) +* backslash (\), \/ escape sequence: Escape Sequences. (line 76) * backslash (\), \< operator (gawk): GNU Regexp Operators. (line 30) * backslash (\), \> operator (gawk): GNU Regexp Operators. @@ -31765,7 +31911,7 @@ Index * backslash (\), in bracket expressions: Bracket Expressions. (line 17) * backslash (\), in escape sequences: Escape Sequences. (line 6) * backslash (\), in escape sequences, POSIX and: Escape Sequences. - (line 105) + (line 108) * backslash (\), in regexp constants: Computed Regexps. (line 29) * backslash (\), in shell commands: Quoting. (line 48) * backslash (\), regexp operator: Regexp Operators. (line 18) @@ -31871,7 +32017,7 @@ Index (line 67) * Brian Kernighan's awk <12>: GNU Regexp Operators. (line 82) -* Brian Kernighan's awk <13>: Escape Sequences. (line 109) +* Brian Kernighan's awk <13>: Escape Sequences. (line 112) * Brian Kernighan's awk: When. (line 21) * Brian Kernighan's awk, extensions: BTL. (line 6) * Brian Kernighan's awk, source code: Other Versions. (line 13) @@ -32065,7 +32211,7 @@ Index * cosine: Numeric Functions. (line 15) * counting: Wc Program. (line 6) * csh utility: Statements/Lines. (line 44) -* csh utility, POSIXLY_CORRECT environment variable: Options. (line 356) +* csh utility, POSIXLY_CORRECT environment variable: Options. (line 354) * csh utility, |& operator, comparison with: Two-way I/O. (line 25) * ctime() user-defined function: Function Example. (line 74) * currency symbols, localization: Explaining gettext. (line 104) @@ -32096,12 +32242,12 @@ Index * dark corner, CONVFMT variable: Strings And Numbers. (line 40) * dark corner, escape sequences: Other Arguments. (line 38) * dark corner, escape sequences, for metacharacters: Escape Sequences. - (line 140) + (line 143) * dark corner, exit statement: Exit Statement. (line 30) * dark corner, field separators: Full Line Fields. (line 22) -* dark corner, FILENAME variable <1>: Auto-set. (line 90) +* dark corner, FILENAME variable <1>: Auto-set. (line 104) * dark corner, FILENAME variable: Getline Notes. (line 19) -* dark corner, FNR/NR variables: Auto-set. (line 314) +* dark corner, FNR/NR variables: Auto-set. (line 328) * dark corner, format-control characters: Control Letters. (line 18) * dark corner, FS as null string: Single Character Fields. (line 20) @@ -32251,7 +32397,7 @@ Index * debugger, read commands from a file: Debugger Info. (line 96) * debugging awk programs: Debugger. (line 6) * debugging gawk, bug reports: Bugs. (line 9) -* decimal point character, locale specific: Options. (line 272) +* decimal point character, locale specific: Options. (line 270) * decrement operators: Increment Ops. (line 35) * default keyword: Switch Statement. (line 6) * Deifik, Scott <1>: Bugs. (line 70) @@ -32290,12 +32436,12 @@ Index (line 81) * differences in awk and gawk, command-line directories: Command-line directories. (line 6) -* differences in awk and gawk, ERRNO variable: Auto-set. (line 74) +* differences in awk and gawk, ERRNO variable: Auto-set. (line 88) * differences in awk and gawk, error messages: Special FD. (line 19) * differences in awk and gawk, FIELDWIDTHS variable: User-modified. (line 37) * differences in awk and gawk, FPAT variable: User-modified. (line 43) -* differences in awk and gawk, FUNCTAB variable: Auto-set. (line 116) +* differences in awk and gawk, FUNCTAB variable: Auto-set. (line 130) * differences in awk and gawk, function arguments (gawk): Calling Built-in. (line 16) * differences in awk and gawk, getline command: Getline. (line 19) @@ -32318,7 +32464,7 @@ Index (line 263) * differences in awk and gawk, print/printf statements: Format Modifiers. (line 13) -* differences in awk and gawk, PROCINFO array: Auto-set. (line 130) +* differences in awk and gawk, PROCINFO array: Auto-set. (line 144) * differences in awk and gawk, read timeouts: Read Timeout. (line 6) * differences in awk and gawk, record separators: awk split records. (line 125) @@ -32328,7 +32474,7 @@ Index (line 26) * differences in awk and gawk, RS/RT variables: gawk split records. (line 58) -* differences in awk and gawk, RT variable: Auto-set. (line 265) +* differences in awk and gawk, RT variable: Auto-set. (line 279) * differences in awk and gawk, single-character fields: Single Character Fields. (line 6) * differences in awk and gawk, split() function: String Functions. @@ -32336,7 +32482,7 @@ Index * differences in awk and gawk, strings: Scalar Constants. (line 20) * differences in awk and gawk, strings, storing: gawk split records. (line 77) -* differences in awk and gawk, SYMTAB variable: Auto-set. (line 269) +* differences in awk and gawk, SYMTAB variable: Auto-set. (line 283) * differences in awk and gawk, TEXTDOMAIN variable: User-modified. (line 151) * differences in awk and gawk, trunc-mod operation: Arithmetic Ops. @@ -32352,6 +32498,7 @@ Index * display debugger command: Viewing And Changing Data. (line 8) * display debugger options: Debugger Info. (line 57) +* div: Numeric Functions. (line 18) * division: Arithmetic Ops. (line 44) * do-while statement: Do Statement. (line 6) * do-while statement, use of regexps in: Regexp Usage. (line 19) @@ -32372,12 +32519,12 @@ Index * dump debugger command: Miscellaneous Debugger Commands. (line 9) * dupword.awk program: Dupword Program. (line 31) -* dynamic profiling: Profiling. (line 179) +* dynamic profiling: Profiling. (line 178) * dynamically loaded extensions: Dynamic Extensions. (line 6) * e debugger command (alias for enable): Breakpoint Control. (line 73) * EBCDIC: Ordinal Functions. (line 45) -* effective group ID of gawk user: Auto-set. (line 135) -* effective user ID of gawk user: Auto-set. (line 139) +* effective group ID of gawk user: Auto-set. (line 149) +* effective user ID of gawk user: Auto-set. (line 153) * egrep utility <1>: Egrep Program. (line 6) * egrep utility: Bracket Expressions. (line 26) * egrep.awk program: Egrep Program. (line 54) @@ -32432,13 +32579,13 @@ Index (line 11) * EREs (Extended Regular Expressions): Bracket Expressions. (line 26) * ERRNO variable <1>: TCP/IP Networking. (line 54) -* ERRNO variable: Auto-set. (line 74) +* ERRNO variable: Auto-set. (line 88) * ERRNO variable, with BEGINFILE pattern: BEGINFILE/ENDFILE. (line 26) * ERRNO variable, with close() function: Close Files And Pipes. (line 141) * ERRNO variable, with getline command: Getline. (line 19) * error handling: Special FD. (line 19) -* error handling, ERRNO variable and: Auto-set. (line 74) +* error handling, ERRNO variable and: Auto-set. (line 88) * error output: Special FD. (line 6) * escape processing, gsub()/gensub()/sub() functions: Gory Details. (line 6) @@ -32471,10 +32618,10 @@ Index * exit status, of VMS: VMS Running. (line 28) * exit the debugger: Miscellaneous Debugger Commands. (line 99) -* exp: Numeric Functions. (line 18) +* exp: Numeric Functions. (line 33) * expand utility: Very Simple. (line 73) * Expat XML parser library: gawkextlib. (line 33) -* exponent: Numeric Functions. (line 18) +* exponent: Numeric Functions. (line 33) * expressions: Expressions. (line 6) * expressions, as patterns: Expression Patterns. (line 6) * expressions, assignment: Assignment Ops. (line 6) @@ -32492,7 +32639,7 @@ Index (line 6) * extension API version: Extension Versioning. (line 6) -* extension API, version number: Auto-set. (line 232) +* extension API, version number: Auto-set. (line 246) * extension example: Extension Example. (line 6) * extension registration: Registration Functions. (line 6) @@ -32573,7 +32720,7 @@ Index * file names, distinguishing: Auto-set. (line 56) * file names, in compatibility mode: Special Caveats. (line 9) * file names, standard streams in gawk: Special FD. (line 48) -* FILENAME variable <1>: Auto-set. (line 90) +* FILENAME variable <1>: Auto-set. (line 104) * FILENAME variable: Reading Files. (line 6) * FILENAME variable, getline, setting with: Getline Notes. (line 19) * filenames, assignments as: Ignoring Assigns. (line 6) @@ -32641,9 +32788,9 @@ Index * flush buffered output: I/O Functions. (line 28) * fnmatch() extension function: Extension Sample Fnmatch. (line 12) -* FNR variable <1>: Auto-set. (line 100) +* FNR variable <1>: Auto-set. (line 114) * FNR variable: Records. (line 6) -* FNR variable, changing: Auto-set. (line 314) +* FNR variable, changing: Auto-set. (line 328) * for statement: For Statement. (line 6) * for statement, looping over arrays: Scanning an Array. (line 20) * fork() extension function: Extension Sample Fork. @@ -32680,7 +32827,7 @@ Index * FS variable, --field-separator option and: Options. (line 21) * FS variable, as null string: Single Character Fields. (line 20) -* FS variable, as TAB character: Options. (line 268) +* FS variable, as TAB character: Options. (line 266) * FS variable, changing value of: Field Separators. (line 35) * FS variable, running awk programs and: Cut Program. (line 63) * FS variable, setting from command line: Command Line Field Separator. @@ -32693,7 +32840,7 @@ Index * FSF (Free Software Foundation): Manual History. (line 6) * fts() extension function: Extension Sample File Functions. (line 61) -* FUNCTAB array: Auto-set. (line 116) +* FUNCTAB array: Auto-set. (line 130) * function calls: Function Calls. (line 6) * function calls, indirect: Indirect Calls. (line 6) * function calls, indirect, @-notation for: Indirect Calls. (line 47) @@ -32742,8 +32889,8 @@ Index (line 44) * G-d: Acknowledgments. (line 94) * Garfinkle, Scott: Contributors. (line 34) -* gawk program, dynamic profiling: Profiling. (line 179) -* gawk version: Auto-set. (line 207) +* gawk program, dynamic profiling: Profiling. (line 178) +* gawk version: Auto-set. (line 221) * gawk, ARGIND variable in: Other Arguments. (line 15) * gawk, awk and <1>: This Manual. (line 14) * gawk, awk and: Preface. (line 21) @@ -32761,13 +32908,13 @@ Index * gawk, distribution: Distribution contents. (line 6) * gawk, ERRNO variable in <1>: TCP/IP Networking. (line 54) -* gawk, ERRNO variable in <2>: Auto-set. (line 74) +* gawk, ERRNO variable in <2>: Auto-set. (line 88) * gawk, ERRNO variable in <3>: BEGINFILE/ENDFILE. (line 26) * gawk, ERRNO variable in <4>: Close Files And Pipes. (line 141) * gawk, ERRNO variable in: Getline. (line 19) -* gawk, escape sequences: Escape Sequences. (line 117) -* gawk, extensions, disabling: Options. (line 256) +* gawk, escape sequences: Escape Sequences. (line 120) +* gawk, extensions, disabling: Options. (line 254) * gawk, features, adding: Adding Code. (line 6) * gawk, features, advanced: Advanced Features. (line 6) * gawk, field separators and: User-modified. (line 71) @@ -32778,7 +32925,7 @@ Index * gawk, FPAT variable in <1>: User-modified. (line 43) * gawk, FPAT variable in: Splitting By Content. (line 25) -* gawk, FUNCTAB array in: Auto-set. (line 116) +* gawk, FUNCTAB array in: Auto-set. (line 130) * gawk, function arguments and: Calling Built-in. (line 16) * gawk, hexadecimal numbers and: Nondecimal-numbers. (line 42) * gawk, IGNORECASE variable in <1>: Array Sorting Functions. @@ -32810,7 +32957,7 @@ Index * gawk, predefined variables and: Built-in Variables. (line 14) * gawk, PROCINFO array in <1>: Two-way I/O. (line 99) * gawk, PROCINFO array in <2>: Time Functions. (line 47) -* gawk, PROCINFO array in: Auto-set. (line 130) +* gawk, PROCINFO array in: Auto-set. (line 144) * gawk, regexp constants and: Using Constant Regexps. (line 28) * gawk, regular expressions, case sensitivity: Case-sensitivity. @@ -32818,23 +32965,29 @@ Index * gawk, regular expressions, operators: GNU Regexp Operators. (line 6) * gawk, regular expressions, precedence: Regexp Operators. (line 161) -* gawk, RT variable in <1>: Auto-set. (line 265) +* gawk, RT variable in <1>: Auto-set. (line 279) * gawk, RT variable in <2>: Multiple Line. (line 129) * gawk, RT variable in: awk split records. (line 125) * gawk, See Also awk: Preface. (line 34) * gawk, source code, obtaining: Getting. (line 6) * gawk, splitting fields and: Constant Size. (line 87) * gawk, string-translation functions: I18N Functions. (line 6) -* gawk, SYMTAB array in: Auto-set. (line 269) +* gawk, SYMTAB array in: Auto-set. (line 283) * gawk, TEXTDOMAIN variable in: User-modified. (line 151) * gawk, timestamps: Time Functions. (line 6) * gawk, uses for: Preface. (line 34) -* gawk, versions of, information about, printing: Options. (line 302) +* gawk, versions of, information about, printing: Options. (line 300) * gawk, VMS version of: VMS Installation. (line 6) * gawk, word-boundary operator: GNU Regexp Operators. (line 63) * gawkextlib: gawkextlib. (line 6) * gawkextlib project: gawkextlib. (line 6) +* gawklibpath_append shell function: Shell Startup Files. (line 29) +* gawklibpath_default shell function: Shell Startup Files. (line 22) +* gawklibpath_prepend shell function: Shell Startup Files. (line 25) +* gawkpath_append shell function: Shell Startup Files. (line 19) +* gawkpath_default shell function: Shell Startup Files. (line 12) +* gawkpath_prepend shell function: Shell Startup Files. (line 15) * General Public License (GPL): Glossary. (line 305) * General Public License, See GPL: Manual History. (line 11) * generate time values: Time Functions. (line 25) @@ -32911,7 +33064,7 @@ Index * Grigera, Juan: Contributors. (line 57) * group database, reading: Group Functions. (line 6) * group file: Group Functions. (line 6) -* group ID of gawk user: Auto-set. (line 180) +* group ID of gawk user: Auto-set. (line 194) * groups, information about: Group Functions. (line 6) * gsub <1>: String Functions. (line 140) * gsub: Using Constant Regexps. @@ -32933,7 +33086,7 @@ Index * history expansion, in debugger: Readline Support. (line 6) * histsort.awk program: History Sorting. (line 25) * Hughes, Phil: Acknowledgments. (line 43) -* HUP signal, for dynamic profiling: Profiling. (line 211) +* HUP signal, for dynamic profiling: Profiling. (line 210) * hyphen (-), - operator: Precedence. (line 52) * hyphen (-), -- operator <1>: Precedence. (line 46) * hyphen (-), -- operator: Increment Ops. (line 48) @@ -33012,8 +33165,8 @@ Index * installation, VMS: VMS Installation. (line 6) * installing gawk: Installation. (line 6) * instruction tracing, in debugger: Debugger Info. (line 89) -* int: Numeric Functions. (line 23) -* INT signal (MS-Windows): Profiling. (line 214) +* int: Numeric Functions. (line 38) +* INT signal (MS-Windows): Profiling. (line 213) * integer array indices: Numeric Array Subscripts. (line 31) * integers, arbitrary precision: Arbitrary Precision Integers. @@ -33069,7 +33222,7 @@ Index * Kernighan, Brian <9>: Acknowledgments. (line 78) * Kernighan, Brian <10>: Conventions. (line 38) * Kernighan, Brian: History. (line 17) -* kill command, dynamic profiling: Profiling. (line 188) +* kill command, dynamic profiling: Profiling. (line 187) * Knights, jedi: Undocumented. (line 6) * Kwok, Conrad: Contributors. (line 34) * l debugger command (alias for list): Miscellaneous Debugger Commands. @@ -33141,7 +33294,7 @@ Index * lint checking, empty programs: Command Line. (line 16) * lint checking, issuing warnings: Options. (line 185) * lint checking, POSIXLY_CORRECT environment variable: Options. - (line 341) + (line 339) * lint checking, undefined functions: Pass By Value/Reference. (line 85) * LINT variable: User-modified. (line 88) @@ -33157,14 +33310,14 @@ Index * loading, extensions: Options. (line 173) * local variables, in a function: Variable Scope. (line 6) * locale categories: Explaining gettext. (line 81) -* locale decimal point character: Options. (line 272) +* locale decimal point character: Options. (line 270) * locale, definition of: Locales. (line 6) * localization: I18N and L10N. (line 6) * localization, See internationalization, localization: I18N and L10N. (line 6) -* log: Numeric Functions. (line 28) +* log: Numeric Functions. (line 43) * log files, timestamps in: Time Functions. (line 6) -* logarithm: Numeric Functions. (line 28) +* logarithm: Numeric Functions. (line 43) * logical false/true: Truth Values. (line 6) * logical operators, See Boolean expressions: Boolean Ops. (line 6) * login information: Passwd Functions. (line 16) @@ -33205,8 +33358,8 @@ Index * mawk utility <2>: Nextfile Statement. (line 47) * mawk utility <3>: Concatenation. (line 36) * mawk utility <4>: Getline/Pipe. (line 62) -* mawk utility: Escape Sequences. (line 117) -* maximum precision supported by MPFR library: Auto-set. (line 221) +* mawk utility: Escape Sequences. (line 120) +* maximum precision supported by MPFR library: Auto-set. (line 235) * McIlroy, Doug: Glossary. (line 177) * McPhee, Patrick: Contributors. (line 100) * message object files: Explaining gettext. (line 42) @@ -33218,8 +33371,8 @@ Index (line 54) * messages from extensions: Printing Messages. (line 6) * metacharacters in regular expressions: Regexp Operators. (line 6) -* metacharacters, escape sequences for: Escape Sequences. (line 136) -* minimum precision supported by MPFR library: Auto-set. (line 224) +* metacharacters, escape sequences for: Escape Sequences. (line 139) +* minimum precision supported by MPFR library: Auto-set. (line 238) * mktime: Time Functions. (line 25) * modifiers, in format specifiers: Format Modifiers. (line 6) * monetary information, localization: Explaining gettext. (line 104) @@ -33239,7 +33392,7 @@ Index * networks, programming: TCP/IP Networking. (line 6) * networks, support for: Special Network. (line 6) * newlines <1>: Boolean Ops. (line 69) -* newlines <2>: Options. (line 262) +* newlines <2>: Options. (line 260) * newlines: Statements/Lines. (line 6) * newlines, as field separators: Default Field Splitting. (line 6) @@ -33268,7 +33421,7 @@ Index (line 47) * nexti debugger command: Debugger Execution Control. (line 49) -* NF variable <1>: Auto-set. (line 105) +* NF variable <1>: Auto-set. (line 119) * NF variable: Fields. (line 33) * NF variable, decrementing: Changing Fields. (line 107) * ni debugger command (alias for nexti): Debugger Execution Control. @@ -33277,9 +33430,9 @@ Index * non-existent array elements: Reference to Elements. (line 23) * not Boolean-logic operator: Boolean Ops. (line 6) -* NR variable <1>: Auto-set. (line 125) +* NR variable <1>: Auto-set. (line 139) * NR variable: Records. (line 6) -* NR variable, changing: Auto-set. (line 314) +* NR variable, changing: Auto-set. (line 328) * null strings <1>: Basic Data Typing. (line 26) * null strings <2>: Truth Values. (line 6) * null strings <3>: Regexp Field Splitting. @@ -33393,7 +33546,7 @@ Index * p debugger command (alias for print): Viewing And Changing Data. (line 36) * Papadopoulos, Panos: Contributors. (line 128) -* parent process ID of gawk process: Auto-set. (line 189) +* parent process ID of gawk process: Auto-set. (line 203) * parentheses (), in a profile: Profiling. (line 146) * parentheses (), regexp operator: Regexp Operators. (line 81) * password file: Passwd Functions. (line 16) @@ -33435,14 +33588,14 @@ Index * plus sign (+), += operator: Assignment Ops. (line 82) * plus sign (+), regexp operator: Regexp Operators. (line 105) * pointers to functions: Indirect Calls. (line 6) -* portability: Escape Sequences. (line 100) +* portability: Escape Sequences. (line 103) * portability, #! (executable scripts): Executable Scripts. (line 33) * portability, ** operator and: Arithmetic Ops. (line 81) * portability, **= operator and: Assignment Ops. (line 143) * portability, ARGV variable: Executable Scripts. (line 59) * portability, backslash continuation and: Statements/Lines. (line 30) * portability, backslash in escape sequences: Escape Sequences. - (line 105) + (line 108) * portability, close() function and: Close Files And Pipes. (line 81) * portability, data files as single record: gawk split records. @@ -33460,7 +33613,7 @@ Index * portability, NF variable, decrementing: Changing Fields. (line 115) * portability, operators: Increment Ops. (line 60) * portability, operators, not in POSIX awk: Precedence. (line 98) -* portability, POSIXLY_CORRECT environment variable: Options. (line 361) +* portability, POSIXLY_CORRECT environment variable: Options. (line 359) * portability, substr() function: String Functions. (line 512) * portable object files <1>: Translator i18n. (line 6) * portable object files: Explaining gettext. (line 37) @@ -33481,7 +33634,7 @@ Index * POSIX awk, < operator and: Getline/File. (line 26) * POSIX awk, arithmetic operators and: Arithmetic Ops. (line 30) * POSIX awk, backslashes in string constants: Escape Sequences. - (line 105) + (line 108) * POSIX awk, BEGIN/END patterns: I/O And BEGIN/END. (line 16) * POSIX awk, bracket expressions and: Bracket Expressions. (line 26) * POSIX awk, bracket expressions and, character classes: Bracket Expressions. @@ -33508,11 +33661,11 @@ Index * POSIX awk, regular expressions and: Regexp Operators. (line 161) * POSIX awk, timestamps and: Time Functions. (line 6) * POSIX awk, | I/O operator and: Getline/Pipe. (line 55) -* POSIX mode: Options. (line 256) +* POSIX mode: Options. (line 254) * POSIX, awk and: Preface. (line 21) * POSIX, gawk extensions not included in: POSIX/GNU. (line 6) * POSIX, programs, implementing in awk: Clones. (line 6) -* POSIXLY_CORRECT environment variable: Options. (line 341) +* POSIXLY_CORRECT environment variable: Options. (line 339) * PREC variable: User-modified. (line 123) * precedence <1>: Precedence. (line 6) * precedence: Increment Ops. (line 60) @@ -33559,24 +33712,24 @@ Index * printing, unduplicated lines of text: Uniq Program. (line 6) * printing, user information: Id Program. (line 6) * private variables: Library Names. (line 11) -* process group idIDof gawk process: Auto-set. (line 183) -* process ID of gawk process: Auto-set. (line 186) +* process group idIDof gawk process: Auto-set. (line 197) +* process ID of gawk process: Auto-set. (line 200) * processes, two-way communications with: Two-way I/O. (line 6) * processing data: Basic High Level. (line 6) * PROCINFO array <1>: Passwd Functions. (line 6) * PROCINFO array <2>: Time Functions. (line 47) -* PROCINFO array: Auto-set. (line 130) +* PROCINFO array: Auto-set. (line 144) * PROCINFO array, and communications via ptys: Two-way I/O. (line 99) * PROCINFO array, and group membership: Group Functions. (line 6) * PROCINFO array, and user and group ID numbers: Id Program. (line 15) * PROCINFO array, testing the field splitting: Passwd Functions. (line 154) -* PROCINFO array, uses: Auto-set. (line 242) +* PROCINFO array, uses: Auto-set. (line 256) * PROCINFO, values of sorted_in: Controlling Scanning. (line 26) * profiling awk programs: Profiling. (line 6) -* profiling awk programs, dynamically: Profiling. (line 179) -* program identifiers: Auto-set. (line 148) +* profiling awk programs, dynamically: Profiling. (line 178) +* program identifiers: Auto-set. (line 162) * program, definition of: Getting Started. (line 21) * programming conventions, --non-decimal-data option: Nondecimal Data. (line 35) @@ -33611,7 +33764,7 @@ Index * QuikTrim Awk: Other Versions. (line 139) * quit debugger command: Miscellaneous Debugger Commands. (line 99) -* QUIT signal (MS-Windows): Profiling. (line 214) +* QUIT signal (MS-Windows): Profiling. (line 213) * quoting in gawk command lines: Long. (line 26) * quoting in gawk command lines, tricks for: Quoting. (line 91) * quoting, for small awk programs: Comments. (line 27) @@ -33620,12 +33773,12 @@ Index * Rakitzis, Byron: History Sorting. (line 25) * Ramey, Chet <1>: General Data Types. (line 6) * Ramey, Chet: Acknowledgments. (line 60) -* rand: Numeric Functions. (line 33) +* rand: Numeric Functions. (line 48) * random numbers, Cliff: Cliff Random Function. (line 6) * random numbers, rand()/srand() functions: Numeric Functions. - (line 33) -* random numbers, seed of: Numeric Functions. (line 63) + (line 48) +* random numbers, seed of: Numeric Functions. (line 78) * range expressions (regexps): Bracket Expressions. (line 6) * range patterns: Ranges. (line 6) * range patterns, line continuation and: Ranges. (line 65) @@ -33694,7 +33847,7 @@ Index (line 59) * regular expressions, gawk, command-line options: GNU Regexp Operators. (line 70) -* regular expressions, interval expressions and: Options. (line 281) +* regular expressions, interval expressions and: Options. (line 279) * regular expressions, leftmost longest match: Leftmost Longest. (line 6) * regular expressions, operators <1>: Regexp Operators. (line 6) @@ -33734,7 +33887,7 @@ Index * right shift: Bitwise Functions. (line 53) * right shift, bitwise: Bitwise Functions. (line 32) * Ritchie, Dennis: Basic Data Typing. (line 54) -* RLENGTH variable: Auto-set. (line 252) +* RLENGTH variable: Auto-set. (line 266) * RLENGTH variable, match() function and: String Functions. (line 228) * Robbins, Arnold <1>: Future Extensions. (line 6) * Robbins, Arnold <2>: Bugs. (line 70) @@ -33752,7 +33905,7 @@ Index * Robbins, Miriam <2>: Getline/Pipe. (line 39) * Robbins, Miriam: Acknowledgments. (line 94) * Rommel, Kai Uwe: Contributors. (line 42) -* round to nearest integer: Numeric Functions. (line 23) +* round to nearest integer: Numeric Functions. (line 38) * round() user-defined function: Round Function. (line 16) * rounding numbers: Round Function. (line 6) * ROUNDMODE variable: User-modified. (line 127) @@ -33760,9 +33913,9 @@ Index * RS variable: awk split records. (line 12) * RS variable, multiline records and: Multiple Line. (line 17) * rshift: Bitwise Functions. (line 53) -* RSTART variable: Auto-set. (line 258) +* RSTART variable: Auto-set. (line 272) * RSTART variable, match() function and: String Functions. (line 228) -* RT variable <1>: Auto-set. (line 265) +* RT variable <1>: Auto-set. (line 279) * RT variable <2>: Multiple Line. (line 129) * RT variable: awk split records. (line 125) * Rubin, Paul <1>: Contributors. (line 15) @@ -33775,14 +33928,14 @@ Index (line 68) * sample debugging session: Sample Debugging Session. (line 6) -* sandbox mode: Options. (line 288) +* sandbox mode: Options. (line 286) * save debugger options: Debugger Info. (line 84) * scalar or array: Type Functions. (line 11) * scalar values: Basic Data Typing. (line 13) * scanning arrays: Scanning an Array. (line 6) * scanning multidimensional arrays: Multiscanning. (line 11) * Schorr, Andrew <1>: Contributors. (line 133) -* Schorr, Andrew <2>: Auto-set. (line 297) +* Schorr, Andrew <2>: Auto-set. (line 311) * Schorr, Andrew: Acknowledgments. (line 60) * Schreiber, Bert: Acknowledgments. (line 38) * Schreiber, Rita: Acknowledgments. (line 38) @@ -33801,7 +33954,7 @@ Index * sed utility <1>: Glossary. (line 16) * sed utility <2>: Simple Sed. (line 6) * sed utility: Full Line Fields. (line 22) -* seeding random number generator: Numeric Functions. (line 63) +* seeding random number generator: Numeric Functions. (line 78) * semicolon (;), AWKPATH variable and: PC Using. (line 10) * semicolon (;), separating statements in actions <1>: Statements. (line 10) @@ -33862,14 +34015,14 @@ Index * sidebar, A Constant's Base Does Not Affect Its Value: Nondecimal-numbers. (line 64) * sidebar, Backslash Before Regular Characters: Escape Sequences. - (line 103) + (line 106) * sidebar, Changing FS Does Not Affect the Fields: Full Line Fields. (line 14) -* sidebar, Changing NR and FNR: Auto-set. (line 312) +* sidebar, Changing NR and FNR: Auto-set. (line 326) * sidebar, Controlling Output Buffering with system(): I/O Functions. (line 138) * sidebar, Escape Sequences for Metacharacters: Escape Sequences. - (line 134) + (line 137) * sidebar, FS and IGNORECASE: Field Splitting Summary. (line 38) * sidebar, Interactive Versus Noninteractive Buffering: I/O Functions. @@ -33891,19 +34044,19 @@ Index (line 57) * sidebar, Using close()'s Return Value: Close Files And Pipes. (line 131) -* SIGHUP signal, for dynamic profiling: Profiling. (line 211) -* SIGINT signal (MS-Windows): Profiling. (line 214) -* signals, HUP/SIGHUP, for profiling: Profiling. (line 211) -* signals, INT/SIGINT (MS-Windows): Profiling. (line 214) -* signals, QUIT/SIGQUIT (MS-Windows): Profiling. (line 214) -* signals, USR1/SIGUSR1, for profiling: Profiling. (line 188) +* SIGHUP signal, for dynamic profiling: Profiling. (line 210) +* SIGINT signal (MS-Windows): Profiling. (line 213) +* signals, HUP/SIGHUP, for profiling: Profiling. (line 210) +* signals, INT/SIGINT (MS-Windows): Profiling. (line 213) +* signals, QUIT/SIGQUIT (MS-Windows): Profiling. (line 213) +* signals, USR1/SIGUSR1, for profiling: Profiling. (line 187) * signature program: Signature Program. (line 6) -* SIGQUIT signal (MS-Windows): Profiling. (line 214) -* SIGUSR1 signal, for dynamic profiling: Profiling. (line 188) +* SIGQUIT signal (MS-Windows): Profiling. (line 213) +* SIGUSR1 signal, for dynamic profiling: Profiling. (line 187) * silent debugger command: Debugger Execution Control. (line 10) -* sin: Numeric Functions. (line 74) -* sine: Numeric Functions. (line 74) +* sin: Numeric Functions. (line 89) +* sine: Numeric Functions. (line 89) * single quote ('): One-shot. (line 15) * single quote (') in gawk command lines: Long. (line 35) * single quote ('), in shell commands: Quoting. (line 48) @@ -33953,10 +34106,10 @@ Index * sprintf() function, OFMT variable and: User-modified. (line 113) * sprintf() function, print/printf statements and: Round Function. (line 6) -* sqrt: Numeric Functions. (line 77) +* sqrt: Numeric Functions. (line 92) * square brackets ([]), regexp operator: Regexp Operators. (line 56) -* square root: Numeric Functions. (line 77) -* srand: Numeric Functions. (line 81) +* square root: Numeric Functions. (line 92) +* srand: Numeric Functions. (line 96) * stack frame: Debugging Terms. (line 10) * Stallman, Richard <1>: Glossary. (line 288) * Stallman, Richard <2>: Contributors. (line 23) @@ -34027,9 +34180,9 @@ Index * substr: String Functions. (line 481) * substring: String Functions. (line 481) * Sumner, Andrew: Other Versions. (line 68) -* supplementary groups of gawk process: Auto-set. (line 237) +* supplementary groups of gawk process: Auto-set. (line 251) * switch statement: Switch Statement. (line 6) -* SYMTAB array: Auto-set. (line 269) +* SYMTAB array: Auto-set. (line 283) * syntactic ambiguity: /= operator vs. /=.../ regexp constant: Assignment Ops. (line 148) * system: I/O Functions. (line 106) @@ -34096,7 +34249,7 @@ Index (line 37) * troubleshooting, awk uses FS not IFS: Field Separators. (line 30) * troubleshooting, backslash before nonspecial character: Escape Sequences. - (line 105) + (line 108) * troubleshooting, division: Arithmetic Ops. (line 44) * troubleshooting, fatal errors, field widths, specifying: Constant Size. (line 22) @@ -34152,7 +34305,7 @@ Index * uniq.awk program: Uniq Program. (line 65) * Unix: Glossary. (line 611) * Unix awk, backslashes in escape sequences: Escape Sequences. - (line 117) + (line 120) * Unix awk, close() function and: Close Files And Pipes. (line 133) * Unix awk, password files, field separators and: Command Line Field Separator. @@ -34172,7 +34325,7 @@ Index * user-modifiable variables: User-modified. (line 6) * users, information about, printing: Id Program. (line 6) * users, information about, retrieving: Passwd Functions. (line 16) -* USR1 signal, for dynamic profiling: Profiling. (line 188) +* USR1 signal, for dynamic profiling: Profiling. (line 187) * values, numeric: Basic Data Typing. (line 13) * values, string: Basic Data Typing. (line 13) * variable assignments and input files: Other Arguments. (line 26) @@ -34206,10 +34359,10 @@ Index * variables, uninitialized, as array subscripts: Uninitialized Subscripts. (line 6) * variables, user-defined: Variables. (line 6) -* version of gawk: Auto-set. (line 207) -* version of gawk extension API: Auto-set. (line 232) -* version of GNU MP library: Auto-set. (line 218) -* version of GNU MPFR library: Auto-set. (line 214) +* version of gawk: Auto-set. (line 221) +* version of gawk extension API: Auto-set. (line 246) +* version of GNU MP library: Auto-set. (line 232) +* version of GNU MPFR library: Auto-set. (line 228) * vertical bar (|): Regexp Operators. (line 70) * vertical bar (|), | operator (I/O) <1>: Precedence. (line 65) * vertical bar (|), | operator (I/O): Getline/Pipe. (line 9) @@ -34246,7 +34399,7 @@ Index * whitespace, as field separators: Default Field Splitting. (line 6) * whitespace, functions, calling: Calling Built-in. (line 10) -* whitespace, newlines as: Options. (line 262) +* whitespace, newlines as: Options. (line 260) * Williams, Kent: Contributors. (line 34) * Woehlke, Matthew: Contributors. (line 79) * Woods, John: Contributors. (line 27) @@ -34299,559 +34452,560 @@ Index Tag Table: Node: Top1204 -Node: Foreword342156 -Node: Foreword446600 -Node: Preface48131 -Ref: Preface-Footnote-151002 -Ref: Preface-Footnote-251109 -Ref: Preface-Footnote-351342 -Node: History51484 -Node: Names53835 -Ref: Names-Footnote-154928 -Node: This Manual55074 -Ref: This Manual-Footnote-161574 -Node: Conventions61674 -Node: Manual History64011 -Ref: Manual History-Footnote-167004 -Ref: Manual History-Footnote-267045 -Node: How To Contribute67119 -Node: Acknowledgments68248 -Node: Getting Started73065 -Node: Running gawk75504 -Node: One-shot76694 -Node: Read Terminal77958 -Node: Long79989 -Node: Executable Scripts81502 -Ref: Executable Scripts-Footnote-184291 -Node: Comments84394 -Node: Quoting86876 -Node: DOS Quoting92394 -Node: Sample Data Files93069 -Node: Very Simple95664 -Node: Two Rules100563 -Node: More Complex102449 -Node: Statements/Lines105311 -Ref: Statements/Lines-Footnote-1109766 -Node: Other Features110031 -Node: When110962 -Ref: When-Footnote-1112716 -Node: Intro Summary112781 -Node: Invoking Gawk113664 -Node: Command Line115178 -Node: Options115976 -Ref: Options-Footnote-1131909 -Ref: Options-Footnote-2132138 -Node: Other Arguments132163 -Node: Naming Standard Input135111 -Node: Environment Variables136204 -Node: AWKPATH Variable136762 -Ref: AWKPATH Variable-Footnote-1140065 -Ref: AWKPATH Variable-Footnote-2140110 -Node: AWKLIBPATH Variable140370 -Node: Other Environment Variables141513 -Node: Exit Status145241 -Node: Include Files145917 -Node: Loading Shared Libraries149514 -Node: Obsolete150941 -Node: Undocumented151638 -Node: Invoking Summary151905 -Node: Regexp153569 -Node: Regexp Usage155023 -Node: Escape Sequences157060 -Node: Regexp Operators163071 -Ref: Regexp Operators-Footnote-1170497 -Ref: Regexp Operators-Footnote-2170644 -Node: Bracket Expressions170742 -Ref: table-char-classes172757 -Node: Leftmost Longest175681 -Node: Computed Regexps176983 -Node: GNU Regexp Operators180380 -Node: Case-sensitivity184053 -Ref: Case-sensitivity-Footnote-1186938 -Ref: Case-sensitivity-Footnote-2187173 -Node: Regexp Summary187281 -Node: Reading Files188748 -Node: Records190842 -Node: awk split records191575 -Node: gawk split records196490 -Ref: gawk split records-Footnote-1201034 -Node: Fields201071 -Ref: Fields-Footnote-1203847 -Node: Nonconstant Fields203933 -Ref: Nonconstant Fields-Footnote-1206176 -Node: Changing Fields206380 -Node: Field Separators212309 -Node: Default Field Splitting215014 -Node: Regexp Field Splitting216131 -Node: Single Character Fields219481 -Node: Command Line Field Separator220540 -Node: Full Line Fields223752 -Ref: Full Line Fields-Footnote-1225269 -Ref: Full Line Fields-Footnote-2225315 -Node: Field Splitting Summary225416 -Node: Constant Size227490 -Node: Splitting By Content232079 -Ref: Splitting By Content-Footnote-1236073 -Node: Multiple Line236236 -Ref: Multiple Line-Footnote-1242122 -Node: Getline242301 -Node: Plain Getline244513 -Node: Getline/Variable247153 -Node: Getline/File248301 -Node: Getline/Variable/File249685 -Ref: Getline/Variable/File-Footnote-1251288 -Node: Getline/Pipe251375 -Node: Getline/Variable/Pipe254058 -Node: Getline/Coprocess255189 -Node: Getline/Variable/Coprocess256441 -Node: Getline Notes257180 -Node: Getline Summary259972 -Ref: table-getline-variants260384 -Node: Read Timeout261213 -Ref: Read Timeout-Footnote-1265037 -Node: Command-line directories265095 -Node: Input Summary266000 -Node: Input Exercises269301 -Node: Printing270029 -Node: Print271806 -Node: Print Examples273263 -Node: Output Separators276042 -Node: OFMT278060 -Node: Printf279414 -Node: Basic Printf280199 -Node: Control Letters281769 -Node: Format Modifiers285752 -Node: Printf Examples291761 -Node: Redirection294247 -Node: Special FD301088 -Ref: Special FD-Footnote-1304248 -Node: Special Files304322 -Node: Other Inherited Files304939 -Node: Special Network305939 -Node: Special Caveats306801 -Node: Close Files And Pipes307752 -Ref: Close Files And Pipes-Footnote-1314934 -Ref: Close Files And Pipes-Footnote-2315082 -Node: Output Summary315232 -Node: Output Exercises316230 -Node: Expressions316910 -Node: Values318095 -Node: Constants318773 -Node: Scalar Constants319464 -Ref: Scalar Constants-Footnote-1320323 -Node: Nondecimal-numbers320573 -Node: Regexp Constants323591 -Node: Using Constant Regexps324116 -Node: Variables327259 -Node: Using Variables327914 -Node: Assignment Options329825 -Node: Conversion331700 -Node: Strings And Numbers332224 -Ref: Strings And Numbers-Footnote-1335289 -Node: Locale influences conversions335398 -Ref: table-locale-affects338145 -Node: All Operators338733 -Node: Arithmetic Ops339363 -Node: Concatenation341868 -Ref: Concatenation-Footnote-1344687 -Node: Assignment Ops344793 -Ref: table-assign-ops349772 -Node: Increment Ops351044 -Node: Truth Values and Conditions354482 -Node: Truth Values355567 -Node: Typing and Comparison356616 -Node: Variable Typing357426 -Node: Comparison Operators361079 -Ref: table-relational-ops361489 -Node: POSIX String Comparison364984 -Ref: POSIX String Comparison-Footnote-1366056 -Node: Boolean Ops366194 -Ref: Boolean Ops-Footnote-1370673 -Node: Conditional Exp370764 -Node: Function Calls372491 -Node: Precedence376371 -Node: Locales380032 -Node: Expressions Summary381664 -Node: Patterns and Actions384224 -Node: Pattern Overview385344 -Node: Regexp Patterns387023 -Node: Expression Patterns387566 -Node: Ranges391276 -Node: BEGIN/END394382 -Node: Using BEGIN/END395143 -Ref: Using BEGIN/END-Footnote-1397877 -Node: I/O And BEGIN/END397983 -Node: BEGINFILE/ENDFILE400297 -Node: Empty403198 -Node: Using Shell Variables403515 -Node: Action Overview405788 -Node: Statements408114 -Node: If Statement409962 -Node: While Statement411457 -Node: Do Statement413486 -Node: For Statement414630 -Node: Switch Statement417787 -Node: Break Statement420169 -Node: Continue Statement422210 -Node: Next Statement424037 -Node: Nextfile Statement426418 -Node: Exit Statement429048 -Node: Built-in Variables431451 -Node: User-modified432584 -Ref: User-modified-Footnote-1440265 -Node: Auto-set440327 -Ref: Auto-set-Footnote-1453362 -Ref: Auto-set-Footnote-2453567 -Node: ARGC and ARGV453623 -Node: Pattern Action Summary457841 -Node: Arrays460268 -Node: Array Basics461597 -Node: Array Intro462441 -Ref: figure-array-elements464405 -Ref: Array Intro-Footnote-1466931 -Node: Reference to Elements467059 -Node: Assigning Elements469511 -Node: Array Example470002 -Node: Scanning an Array471760 -Node: Controlling Scanning474776 -Ref: Controlling Scanning-Footnote-1479972 -Node: Numeric Array Subscripts480288 -Node: Uninitialized Subscripts482473 -Node: Delete484090 -Ref: Delete-Footnote-1486833 -Node: Multidimensional486890 -Node: Multiscanning489987 -Node: Arrays of Arrays491576 -Node: Arrays Summary496335 -Node: Functions498427 -Node: Built-in499326 -Node: Calling Built-in500404 -Node: Numeric Functions502395 -Ref: Numeric Functions-Footnote-1506412 -Ref: Numeric Functions-Footnote-2506769 -Ref: Numeric Functions-Footnote-3506817 -Node: String Functions507089 -Ref: String Functions-Footnote-1530564 -Ref: String Functions-Footnote-2530693 -Ref: String Functions-Footnote-3530941 -Node: Gory Details531028 -Ref: table-sub-escapes532809 -Ref: table-sub-proposed534329 -Ref: table-posix-sub535693 -Ref: table-gensub-escapes537229 -Ref: Gory Details-Footnote-1538061 -Node: I/O Functions538212 -Ref: I/O Functions-Footnote-1545430 -Node: Time Functions545577 -Ref: Time Functions-Footnote-1556065 -Ref: Time Functions-Footnote-2556133 -Ref: Time Functions-Footnote-3556291 -Ref: Time Functions-Footnote-4556402 -Ref: Time Functions-Footnote-5556514 -Ref: Time Functions-Footnote-6556741 -Node: Bitwise Functions557007 -Ref: table-bitwise-ops557569 -Ref: Bitwise Functions-Footnote-1561878 -Node: Type Functions562047 -Node: I18N Functions563198 -Node: User-defined564843 -Node: Definition Syntax565648 -Ref: Definition Syntax-Footnote-1571055 -Node: Function Example571126 -Ref: Function Example-Footnote-1574045 -Node: Function Caveats574067 -Node: Calling A Function574585 -Node: Variable Scope575543 -Node: Pass By Value/Reference578531 -Node: Return Statement582026 -Node: Dynamic Typing585007 -Node: Indirect Calls585936 -Ref: Indirect Calls-Footnote-1597238 -Node: Functions Summary597366 -Node: Library Functions600068 -Ref: Library Functions-Footnote-1603677 -Ref: Library Functions-Footnote-2603820 -Node: Library Names603991 -Ref: Library Names-Footnote-1607445 -Ref: Library Names-Footnote-2607668 -Node: General Functions607754 -Node: Strtonum Function608857 -Node: Assert Function611879 -Node: Round Function615203 -Node: Cliff Random Function616744 -Node: Ordinal Functions617760 -Ref: Ordinal Functions-Footnote-1620823 -Ref: Ordinal Functions-Footnote-2621075 -Node: Join Function621286 -Ref: Join Function-Footnote-1623055 -Node: Getlocaltime Function623255 -Node: Readfile Function626999 -Node: Shell Quoting628969 -Node: Data File Management630370 -Node: Filetrans Function631002 -Node: Rewind Function635058 -Node: File Checking636445 -Ref: File Checking-Footnote-1637777 -Node: Empty Files637978 -Node: Ignoring Assigns639957 -Node: Getopt Function641508 -Ref: Getopt Function-Footnote-1652970 -Node: Passwd Functions653170 -Ref: Passwd Functions-Footnote-1662007 -Node: Group Functions662095 -Ref: Group Functions-Footnote-1669989 -Node: Walking Arrays670202 -Node: Library Functions Summary671805 -Node: Library Exercises673206 -Node: Sample Programs674486 -Node: Running Examples675256 -Node: Clones675984 -Node: Cut Program677208 -Node: Egrep Program686927 -Ref: Egrep Program-Footnote-1694425 -Node: Id Program694535 -Node: Split Program698180 -Ref: Split Program-Footnote-1701628 -Node: Tee Program701756 -Node: Uniq Program704545 -Node: Wc Program711964 -Ref: Wc Program-Footnote-1716214 -Node: Miscellaneous Programs716308 -Node: Dupword Program717521 -Node: Alarm Program719552 -Node: Translate Program724356 -Ref: Translate Program-Footnote-1728921 -Node: Labels Program729191 -Ref: Labels Program-Footnote-1732542 -Node: Word Sorting732626 -Node: History Sorting736697 -Node: Extract Program738533 -Node: Simple Sed746058 -Node: Igawk Program749126 -Ref: Igawk Program-Footnote-1763450 -Ref: Igawk Program-Footnote-2763651 -Ref: Igawk Program-Footnote-3763773 -Node: Anagram Program763888 -Node: Signature Program766945 -Node: Programs Summary768192 -Node: Programs Exercises769385 -Ref: Programs Exercises-Footnote-1773516 -Node: Advanced Features773607 -Node: Nondecimal Data775555 -Node: Array Sorting777145 -Node: Controlling Array Traversal777842 -Ref: Controlling Array Traversal-Footnote-1786175 -Node: Array Sorting Functions786293 -Ref: Array Sorting Functions-Footnote-1790182 -Node: Two-way I/O790378 -Ref: Two-way I/O-Footnote-1795323 -Ref: Two-way I/O-Footnote-2795509 -Node: TCP/IP Networking795591 -Node: Profiling798464 -Node: Advanced Features Summary806011 -Node: Internationalization807944 -Node: I18N and L10N809424 -Node: Explaining gettext810110 -Ref: Explaining gettext-Footnote-1815135 -Ref: Explaining gettext-Footnote-2815319 -Node: Programmer i18n815484 -Ref: Programmer i18n-Footnote-1820350 -Node: Translator i18n820399 -Node: String Extraction821193 -Ref: String Extraction-Footnote-1822324 -Node: Printf Ordering822410 -Ref: Printf Ordering-Footnote-1825196 -Node: I18N Portability825260 -Ref: I18N Portability-Footnote-1827715 -Node: I18N Example827778 -Ref: I18N Example-Footnote-1830581 -Node: Gawk I18N830653 -Node: I18N Summary831291 -Node: Debugger832630 -Node: Debugging833652 -Node: Debugging Concepts834093 -Node: Debugging Terms835946 -Node: Awk Debugging838518 -Node: Sample Debugging Session839412 -Node: Debugger Invocation839932 -Node: Finding The Bug841316 -Node: List of Debugger Commands847791 -Node: Breakpoint Control849124 -Node: Debugger Execution Control852820 -Node: Viewing And Changing Data856184 -Node: Execution Stack859562 -Node: Debugger Info861199 -Node: Miscellaneous Debugger Commands865216 -Node: Readline Support870245 -Node: Limitations871137 -Node: Debugging Summary873251 -Node: Arbitrary Precision Arithmetic874419 -Node: Computer Arithmetic875835 -Ref: table-numeric-ranges879433 -Ref: Computer Arithmetic-Footnote-1880292 -Node: Math Definitions880349 -Ref: table-ieee-formats883637 -Ref: Math Definitions-Footnote-1884241 -Node: MPFR features884346 -Node: FP Math Caution886017 -Ref: FP Math Caution-Footnote-1887067 -Node: Inexactness of computations887436 -Node: Inexact representation888395 -Node: Comparing FP Values889752 -Node: Errors accumulate890834 -Node: Getting Accuracy892267 -Node: Try To Round894929 -Node: Setting precision895828 -Ref: table-predefined-precision-strings896512 -Node: Setting the rounding mode898301 -Ref: table-gawk-rounding-modes898665 -Ref: Setting the rounding mode-Footnote-1902120 -Node: Arbitrary Precision Integers902299 -Ref: Arbitrary Precision Integers-Footnote-1905285 -Node: POSIX Floating Point Problems905434 -Ref: POSIX Floating Point Problems-Footnote-1909307 -Node: Floating point summary909345 -Node: Dynamic Extensions911539 -Node: Extension Intro913091 -Node: Plugin License914357 -Node: Extension Mechanism Outline915154 -Ref: figure-load-extension915582 -Ref: figure-register-new-function917062 -Ref: figure-call-new-function918066 -Node: Extension API Description920052 -Node: Extension API Functions Introduction921502 -Node: General Data Types926326 -Ref: General Data Types-Footnote-1932065 -Node: Memory Allocation Functions932364 -Ref: Memory Allocation Functions-Footnote-1935203 -Node: Constructor Functions935299 -Node: Registration Functions937033 -Node: Extension Functions937718 -Node: Exit Callback Functions940015 -Node: Extension Version String941263 -Node: Input Parsers941928 -Node: Output Wrappers951807 -Node: Two-way processors956322 -Node: Printing Messages958526 -Ref: Printing Messages-Footnote-1959602 -Node: Updating `ERRNO'959754 -Node: Requesting Values960494 -Ref: table-value-types-returned961222 -Node: Accessing Parameters962179 -Node: Symbol Table Access963410 -Node: Symbol table by name963924 -Node: Symbol table by cookie965905 -Ref: Symbol table by cookie-Footnote-1970049 -Node: Cached values970112 -Ref: Cached values-Footnote-1973611 -Node: Array Manipulation973702 -Ref: Array Manipulation-Footnote-1974800 -Node: Array Data Types974837 -Ref: Array Data Types-Footnote-1977492 -Node: Array Functions977584 -Node: Flattening Arrays981438 -Node: Creating Arrays988330 -Node: Extension API Variables993101 -Node: Extension Versioning993737 -Node: Extension API Informational Variables995638 -Node: Extension API Boilerplate996703 -Node: Finding Extensions1000512 -Node: Extension Example1001072 -Node: Internal File Description1001844 -Node: Internal File Ops1005911 -Ref: Internal File Ops-Footnote-11017581 -Node: Using Internal File Ops1017721 -Ref: Using Internal File Ops-Footnote-11020104 -Node: Extension Samples1020377 -Node: Extension Sample File Functions1021903 -Node: Extension Sample Fnmatch1029541 -Node: Extension Sample Fork1031032 -Node: Extension Sample Inplace1032247 -Node: Extension Sample Ord1033922 -Node: Extension Sample Readdir1034758 -Ref: table-readdir-file-types1035634 -Node: Extension Sample Revout1036445 -Node: Extension Sample Rev2way1037035 -Node: Extension Sample Read write array1037775 -Node: Extension Sample Readfile1039715 -Node: Extension Sample Time1040810 -Node: Extension Sample API Tests1042159 -Node: gawkextlib1042650 -Node: Extension summary1045308 -Node: Extension Exercises1048997 -Node: Language History1049719 -Node: V7/SVR3.11051375 -Node: SVR41053556 -Node: POSIX1055001 -Node: BTL1056390 -Node: POSIX/GNU1057124 -Node: Feature History1062688 -Node: Common Extensions1075786 -Node: Ranges and Locales1077110 -Ref: Ranges and Locales-Footnote-11081728 -Ref: Ranges and Locales-Footnote-21081755 -Ref: Ranges and Locales-Footnote-31081989 -Node: Contributors1082210 -Node: History summary1087751 -Node: Installation1089121 -Node: Gawk Distribution1090067 -Node: Getting1090551 -Node: Extracting1091374 -Node: Distribution contents1093009 -Node: Unix Installation1098726 -Node: Quick Installation1099343 -Node: Additional Configuration Options1101767 -Node: Configuration Philosophy1103505 -Node: Non-Unix Installation1105874 -Node: PC Installation1106332 -Node: PC Binary Installation1107651 -Node: PC Compiling1109499 -Ref: PC Compiling-Footnote-11112520 -Node: PC Testing1112629 -Node: PC Using1113805 -Node: Cygwin1117920 -Node: MSYS1118743 -Node: VMS Installation1119243 -Node: VMS Compilation1120035 -Ref: VMS Compilation-Footnote-11121257 -Node: VMS Dynamic Extensions1121315 -Node: VMS Installation Details1122999 -Node: VMS Running1125251 -Node: VMS GNV1128087 -Node: VMS Old Gawk1128821 -Node: Bugs1129291 -Node: Other Versions1133174 -Node: Installation summary1139602 -Node: Notes1140658 -Node: Compatibility Mode1141523 -Node: Additions1142305 -Node: Accessing The Source1143230 -Node: Adding Code1144666 -Node: New Ports1150831 -Node: Derived Files1155313 -Ref: Derived Files-Footnote-11160788 -Ref: Derived Files-Footnote-21160822 -Ref: Derived Files-Footnote-31161418 -Node: Future Extensions1161532 -Node: Implementation Limitations1162138 -Node: Extension Design1163386 -Node: Old Extension Problems1164540 -Ref: Old Extension Problems-Footnote-11166057 -Node: Extension New Mechanism Goals1166114 -Ref: Extension New Mechanism Goals-Footnote-11169474 -Node: Extension Other Design Decisions1169663 -Node: Extension Future Growth1171771 -Node: Old Extension Mechanism1172607 -Node: Notes summary1174369 -Node: Basic Concepts1175555 -Node: Basic High Level1176236 -Ref: figure-general-flow1176508 -Ref: figure-process-flow1177107 -Ref: Basic High Level-Footnote-11180336 -Node: Basic Data Typing1180521 -Node: Glossary1183849 -Node: Copying1209007 -Node: GNU Free Documentation License1246563 -Node: Index1271699 +Node: Foreword342225 +Node: Foreword446669 +Node: Preface48200 +Ref: Preface-Footnote-151071 +Ref: Preface-Footnote-251178 +Ref: Preface-Footnote-351411 +Node: History51553 +Node: Names53904 +Ref: Names-Footnote-154997 +Node: This Manual55143 +Ref: This Manual-Footnote-161643 +Node: Conventions61743 +Node: Manual History64080 +Ref: Manual History-Footnote-167073 +Ref: Manual History-Footnote-267114 +Node: How To Contribute67188 +Node: Acknowledgments68317 +Node: Getting Started73134 +Node: Running gawk75573 +Node: One-shot76763 +Node: Read Terminal78027 +Node: Long80058 +Node: Executable Scripts81571 +Ref: Executable Scripts-Footnote-184360 +Node: Comments84463 +Node: Quoting86945 +Node: DOS Quoting92463 +Node: Sample Data Files93138 +Node: Very Simple95733 +Node: Two Rules100632 +Node: More Complex102518 +Node: Statements/Lines105380 +Ref: Statements/Lines-Footnote-1109835 +Node: Other Features110100 +Node: When111031 +Ref: When-Footnote-1112785 +Node: Intro Summary112850 +Node: Invoking Gawk113733 +Node: Command Line115247 +Node: Options116045 +Ref: Options-Footnote-1131849 +Ref: Options-Footnote-2132078 +Node: Other Arguments132103 +Node: Naming Standard Input135051 +Node: Environment Variables136144 +Node: AWKPATH Variable136702 +Ref: AWKPATH Variable-Footnote-1140115 +Ref: AWKPATH Variable-Footnote-2140160 +Node: AWKLIBPATH Variable140420 +Node: Other Environment Variables141676 +Node: Exit Status145164 +Node: Include Files145840 +Node: Loading Shared Libraries149437 +Node: Obsolete150864 +Node: Undocumented151561 +Node: Invoking Summary151828 +Node: Regexp153492 +Node: Regexp Usage154946 +Node: Escape Sequences156983 +Node: Regexp Operators163224 +Ref: Regexp Operators-Footnote-1170650 +Ref: Regexp Operators-Footnote-2170797 +Node: Bracket Expressions170895 +Ref: table-char-classes172910 +Node: Leftmost Longest175834 +Node: Computed Regexps177136 +Node: GNU Regexp Operators180533 +Node: Case-sensitivity184206 +Ref: Case-sensitivity-Footnote-1187091 +Ref: Case-sensitivity-Footnote-2187326 +Node: Regexp Summary187434 +Node: Reading Files188901 +Node: Records190995 +Node: awk split records191728 +Node: gawk split records196643 +Ref: gawk split records-Footnote-1201187 +Node: Fields201224 +Ref: Fields-Footnote-1204000 +Node: Nonconstant Fields204086 +Ref: Nonconstant Fields-Footnote-1206329 +Node: Changing Fields206533 +Node: Field Separators212462 +Node: Default Field Splitting215167 +Node: Regexp Field Splitting216284 +Node: Single Character Fields219634 +Node: Command Line Field Separator220693 +Node: Full Line Fields223905 +Ref: Full Line Fields-Footnote-1225422 +Ref: Full Line Fields-Footnote-2225468 +Node: Field Splitting Summary225569 +Node: Constant Size227643 +Node: Splitting By Content232232 +Ref: Splitting By Content-Footnote-1236226 +Node: Multiple Line236389 +Ref: Multiple Line-Footnote-1242275 +Node: Getline242454 +Node: Plain Getline244666 +Node: Getline/Variable247306 +Node: Getline/File248454 +Node: Getline/Variable/File249838 +Ref: Getline/Variable/File-Footnote-1251441 +Node: Getline/Pipe251528 +Node: Getline/Variable/Pipe254211 +Node: Getline/Coprocess255342 +Node: Getline/Variable/Coprocess256594 +Node: Getline Notes257333 +Node: Getline Summary260125 +Ref: table-getline-variants260537 +Node: Read Timeout261366 +Ref: Read Timeout-Footnote-1265190 +Node: Command-line directories265248 +Node: Input Summary266153 +Node: Input Exercises269454 +Node: Printing270182 +Node: Print271959 +Node: Print Examples273416 +Node: Output Separators276195 +Node: OFMT278213 +Node: Printf279567 +Node: Basic Printf280352 +Node: Control Letters281922 +Node: Format Modifiers285905 +Node: Printf Examples291914 +Node: Redirection294400 +Node: Special FD301241 +Ref: Special FD-Footnote-1304401 +Node: Special Files304475 +Node: Other Inherited Files305092 +Node: Special Network306092 +Node: Special Caveats306954 +Node: Close Files And Pipes307905 +Ref: Close Files And Pipes-Footnote-1315087 +Ref: Close Files And Pipes-Footnote-2315235 +Node: Output Summary315385 +Node: Output Exercises316383 +Node: Expressions317063 +Node: Values318248 +Node: Constants318926 +Node: Scalar Constants319617 +Ref: Scalar Constants-Footnote-1320476 +Node: Nondecimal-numbers320726 +Node: Regexp Constants323744 +Node: Using Constant Regexps324269 +Node: Variables327412 +Node: Using Variables328067 +Node: Assignment Options329978 +Node: Conversion331853 +Node: Strings And Numbers332377 +Ref: Strings And Numbers-Footnote-1335442 +Node: Locale influences conversions335551 +Ref: table-locale-affects338298 +Node: All Operators338886 +Node: Arithmetic Ops339516 +Node: Concatenation342021 +Ref: Concatenation-Footnote-1344840 +Node: Assignment Ops344946 +Ref: table-assign-ops349925 +Node: Increment Ops351197 +Node: Truth Values and Conditions354635 +Node: Truth Values355720 +Node: Typing and Comparison356769 +Node: Variable Typing357579 +Node: Comparison Operators361232 +Ref: table-relational-ops361642 +Node: POSIX String Comparison365137 +Ref: POSIX String Comparison-Footnote-1366209 +Node: Boolean Ops366347 +Ref: Boolean Ops-Footnote-1370826 +Node: Conditional Exp370917 +Node: Function Calls372644 +Node: Precedence376524 +Node: Locales380185 +Node: Expressions Summary381817 +Node: Patterns and Actions384377 +Node: Pattern Overview385497 +Node: Regexp Patterns387176 +Node: Expression Patterns387719 +Node: Ranges391429 +Node: BEGIN/END394535 +Node: Using BEGIN/END395296 +Ref: Using BEGIN/END-Footnote-1398030 +Node: I/O And BEGIN/END398136 +Node: BEGINFILE/ENDFILE400450 +Node: Empty403351 +Node: Using Shell Variables403668 +Node: Action Overview405941 +Node: Statements408267 +Node: If Statement410115 +Node: While Statement411610 +Node: Do Statement413639 +Node: For Statement414783 +Node: Switch Statement417940 +Node: Break Statement420322 +Node: Continue Statement422363 +Node: Next Statement424190 +Node: Nextfile Statement426571 +Node: Exit Statement429201 +Node: Built-in Variables431604 +Node: User-modified432737 +Ref: User-modified-Footnote-1440418 +Node: Auto-set440480 +Ref: Auto-set-Footnote-1454172 +Ref: Auto-set-Footnote-2454377 +Node: ARGC and ARGV454433 +Node: Pattern Action Summary458651 +Node: Arrays461078 +Node: Array Basics462407 +Node: Array Intro463251 +Ref: figure-array-elements465215 +Ref: Array Intro-Footnote-1467741 +Node: Reference to Elements467869 +Node: Assigning Elements470321 +Node: Array Example470812 +Node: Scanning an Array472570 +Node: Controlling Scanning475586 +Ref: Controlling Scanning-Footnote-1480782 +Node: Numeric Array Subscripts481098 +Node: Uninitialized Subscripts483283 +Node: Delete484900 +Ref: Delete-Footnote-1487643 +Node: Multidimensional487700 +Node: Multiscanning490797 +Node: Arrays of Arrays492386 +Node: Arrays Summary497145 +Node: Functions499237 +Node: Built-in500136 +Node: Calling Built-in501214 +Node: Numeric Functions503205 +Ref: Numeric Functions-Footnote-1508024 +Ref: Numeric Functions-Footnote-2508381 +Ref: Numeric Functions-Footnote-3508429 +Node: String Functions508701 +Ref: String Functions-Footnote-1532176 +Ref: String Functions-Footnote-2532305 +Ref: String Functions-Footnote-3532553 +Node: Gory Details532640 +Ref: table-sub-escapes534421 +Ref: table-sub-proposed535941 +Ref: table-posix-sub537305 +Ref: table-gensub-escapes538841 +Ref: Gory Details-Footnote-1539673 +Node: I/O Functions539824 +Ref: I/O Functions-Footnote-1547042 +Node: Time Functions547189 +Ref: Time Functions-Footnote-1557677 +Ref: Time Functions-Footnote-2557745 +Ref: Time Functions-Footnote-3557903 +Ref: Time Functions-Footnote-4558014 +Ref: Time Functions-Footnote-5558126 +Ref: Time Functions-Footnote-6558353 +Node: Bitwise Functions558619 +Ref: table-bitwise-ops559181 +Ref: Bitwise Functions-Footnote-1563490 +Node: Type Functions563659 +Node: I18N Functions564810 +Node: User-defined566455 +Node: Definition Syntax567260 +Ref: Definition Syntax-Footnote-1572667 +Node: Function Example572738 +Ref: Function Example-Footnote-1575657 +Node: Function Caveats575679 +Node: Calling A Function576197 +Node: Variable Scope577155 +Node: Pass By Value/Reference580143 +Node: Return Statement583638 +Node: Dynamic Typing586619 +Node: Indirect Calls587548 +Ref: Indirect Calls-Footnote-1598850 +Node: Functions Summary598978 +Node: Library Functions601680 +Ref: Library Functions-Footnote-1605289 +Ref: Library Functions-Footnote-2605432 +Node: Library Names605603 +Ref: Library Names-Footnote-1609057 +Ref: Library Names-Footnote-2609280 +Node: General Functions609366 +Node: Strtonum Function610469 +Node: Assert Function613491 +Node: Round Function616815 +Node: Cliff Random Function618356 +Node: Ordinal Functions619372 +Ref: Ordinal Functions-Footnote-1622435 +Ref: Ordinal Functions-Footnote-2622687 +Node: Join Function622898 +Ref: Join Function-Footnote-1624667 +Node: Getlocaltime Function624867 +Node: Readfile Function628611 +Node: Shell Quoting630581 +Node: Data File Management631982 +Node: Filetrans Function632614 +Node: Rewind Function636670 +Node: File Checking638057 +Ref: File Checking-Footnote-1639389 +Node: Empty Files639590 +Node: Ignoring Assigns641569 +Node: Getopt Function643120 +Ref: Getopt Function-Footnote-1654582 +Node: Passwd Functions654782 +Ref: Passwd Functions-Footnote-1663619 +Node: Group Functions663707 +Ref: Group Functions-Footnote-1671601 +Node: Walking Arrays671814 +Node: Library Functions Summary673417 +Node: Library Exercises674818 +Node: Sample Programs676098 +Node: Running Examples676868 +Node: Clones677596 +Node: Cut Program678820 +Node: Egrep Program688539 +Ref: Egrep Program-Footnote-1696037 +Node: Id Program696147 +Node: Split Program699792 +Ref: Split Program-Footnote-1703240 +Node: Tee Program703368 +Node: Uniq Program706157 +Node: Wc Program713576 +Ref: Wc Program-Footnote-1717826 +Node: Miscellaneous Programs717920 +Node: Dupword Program719133 +Node: Alarm Program721164 +Node: Translate Program725968 +Ref: Translate Program-Footnote-1730533 +Node: Labels Program730803 +Ref: Labels Program-Footnote-1734154 +Node: Word Sorting734238 +Node: History Sorting738309 +Node: Extract Program740145 +Node: Simple Sed747670 +Node: Igawk Program750738 +Ref: Igawk Program-Footnote-1765062 +Ref: Igawk Program-Footnote-2765263 +Ref: Igawk Program-Footnote-3765385 +Node: Anagram Program765500 +Node: Signature Program768557 +Node: Programs Summary769804 +Node: Programs Exercises770997 +Ref: Programs Exercises-Footnote-1775128 +Node: Advanced Features775219 +Node: Nondecimal Data777167 +Node: Array Sorting778757 +Node: Controlling Array Traversal779454 +Ref: Controlling Array Traversal-Footnote-1787787 +Node: Array Sorting Functions787905 +Ref: Array Sorting Functions-Footnote-1791794 +Node: Two-way I/O791990 +Ref: Two-way I/O-Footnote-1796935 +Ref: Two-way I/O-Footnote-2797121 +Node: TCP/IP Networking797203 +Node: Profiling800076 +Node: Advanced Features Summary808353 +Node: Internationalization810286 +Node: I18N and L10N811766 +Node: Explaining gettext812452 +Ref: Explaining gettext-Footnote-1817477 +Ref: Explaining gettext-Footnote-2817661 +Node: Programmer i18n817826 +Ref: Programmer i18n-Footnote-1822692 +Node: Translator i18n822741 +Node: String Extraction823535 +Ref: String Extraction-Footnote-1824666 +Node: Printf Ordering824752 +Ref: Printf Ordering-Footnote-1827538 +Node: I18N Portability827602 +Ref: I18N Portability-Footnote-1830057 +Node: I18N Example830120 +Ref: I18N Example-Footnote-1832923 +Node: Gawk I18N832995 +Node: I18N Summary833633 +Node: Debugger834972 +Node: Debugging835994 +Node: Debugging Concepts836435 +Node: Debugging Terms838288 +Node: Awk Debugging840860 +Node: Sample Debugging Session841754 +Node: Debugger Invocation842274 +Node: Finding The Bug843658 +Node: List of Debugger Commands850133 +Node: Breakpoint Control851466 +Node: Debugger Execution Control855162 +Node: Viewing And Changing Data858526 +Node: Execution Stack861904 +Node: Debugger Info863541 +Node: Miscellaneous Debugger Commands867558 +Node: Readline Support872587 +Node: Limitations873479 +Node: Debugging Summary875593 +Node: Arbitrary Precision Arithmetic876761 +Node: Computer Arithmetic878177 +Ref: table-numeric-ranges881775 +Ref: Computer Arithmetic-Footnote-1882634 +Node: Math Definitions882691 +Ref: table-ieee-formats885979 +Ref: Math Definitions-Footnote-1886583 +Node: MPFR features886688 +Node: FP Math Caution888359 +Ref: FP Math Caution-Footnote-1889409 +Node: Inexactness of computations889778 +Node: Inexact representation890737 +Node: Comparing FP Values892094 +Node: Errors accumulate893176 +Node: Getting Accuracy894609 +Node: Try To Round897271 +Node: Setting precision898170 +Ref: table-predefined-precision-strings898854 +Node: Setting the rounding mode900643 +Ref: table-gawk-rounding-modes901007 +Ref: Setting the rounding mode-Footnote-1904462 +Node: Arbitrary Precision Integers904641 +Ref: Arbitrary Precision Integers-Footnote-1909540 +Node: POSIX Floating Point Problems909689 +Ref: POSIX Floating Point Problems-Footnote-1913562 +Node: Floating point summary913600 +Node: Dynamic Extensions915794 +Node: Extension Intro917346 +Node: Plugin License918612 +Node: Extension Mechanism Outline919409 +Ref: figure-load-extension919837 +Ref: figure-register-new-function921317 +Ref: figure-call-new-function922321 +Node: Extension API Description924307 +Node: Extension API Functions Introduction925757 +Node: General Data Types930581 +Ref: General Data Types-Footnote-1936320 +Node: Memory Allocation Functions936619 +Ref: Memory Allocation Functions-Footnote-1939458 +Node: Constructor Functions939554 +Node: Registration Functions941288 +Node: Extension Functions941973 +Node: Exit Callback Functions944270 +Node: Extension Version String945518 +Node: Input Parsers946183 +Node: Output Wrappers956062 +Node: Two-way processors960577 +Node: Printing Messages962781 +Ref: Printing Messages-Footnote-1963857 +Node: Updating `ERRNO'964009 +Node: Requesting Values964749 +Ref: table-value-types-returned965477 +Node: Accessing Parameters966434 +Node: Symbol Table Access967665 +Node: Symbol table by name968179 +Node: Symbol table by cookie970160 +Ref: Symbol table by cookie-Footnote-1974304 +Node: Cached values974367 +Ref: Cached values-Footnote-1977866 +Node: Array Manipulation977957 +Ref: Array Manipulation-Footnote-1979055 +Node: Array Data Types979092 +Ref: Array Data Types-Footnote-1981747 +Node: Array Functions981839 +Node: Flattening Arrays985693 +Node: Creating Arrays992585 +Node: Extension API Variables997356 +Node: Extension Versioning997992 +Node: Extension API Informational Variables999893 +Node: Extension API Boilerplate1000958 +Node: Finding Extensions1004767 +Node: Extension Example1005327 +Node: Internal File Description1006099 +Node: Internal File Ops1010166 +Ref: Internal File Ops-Footnote-11021836 +Node: Using Internal File Ops1021976 +Ref: Using Internal File Ops-Footnote-11024359 +Node: Extension Samples1024632 +Node: Extension Sample File Functions1026158 +Node: Extension Sample Fnmatch1033796 +Node: Extension Sample Fork1035287 +Node: Extension Sample Inplace1036502 +Node: Extension Sample Ord1038177 +Node: Extension Sample Readdir1039013 +Ref: table-readdir-file-types1039889 +Node: Extension Sample Revout1040700 +Node: Extension Sample Rev2way1041290 +Node: Extension Sample Read write array1042030 +Node: Extension Sample Readfile1043970 +Node: Extension Sample Time1045065 +Node: Extension Sample API Tests1046414 +Node: gawkextlib1046905 +Node: Extension summary1049563 +Node: Extension Exercises1053252 +Node: Language History1053974 +Node: V7/SVR3.11055630 +Node: SVR41057811 +Node: POSIX1059256 +Node: BTL1060645 +Node: POSIX/GNU1061379 +Node: Feature History1067003 +Node: Common Extensions1080101 +Node: Ranges and Locales1081425 +Ref: Ranges and Locales-Footnote-11086043 +Ref: Ranges and Locales-Footnote-21086070 +Ref: Ranges and Locales-Footnote-31086304 +Node: Contributors1086525 +Node: History summary1092066 +Node: Installation1093436 +Node: Gawk Distribution1094382 +Node: Getting1094866 +Node: Extracting1095689 +Node: Distribution contents1097324 +Node: Unix Installation1103389 +Node: Quick Installation1104072 +Node: Shell Startup Files1106483 +Node: Additional Configuration Options1107562 +Node: Configuration Philosophy1109301 +Node: Non-Unix Installation1111670 +Node: PC Installation1112128 +Node: PC Binary Installation1113447 +Node: PC Compiling1115295 +Ref: PC Compiling-Footnote-11118316 +Node: PC Testing1118425 +Node: PC Using1119601 +Node: Cygwin1123716 +Node: MSYS1124539 +Node: VMS Installation1125039 +Node: VMS Compilation1125831 +Ref: VMS Compilation-Footnote-11127053 +Node: VMS Dynamic Extensions1127111 +Node: VMS Installation Details1128795 +Node: VMS Running1131047 +Node: VMS GNV1133883 +Node: VMS Old Gawk1134617 +Node: Bugs1135087 +Node: Other Versions1138970 +Node: Installation summary1145398 +Node: Notes1146454 +Node: Compatibility Mode1147319 +Node: Additions1148101 +Node: Accessing The Source1149026 +Node: Adding Code1150462 +Node: New Ports1156627 +Node: Derived Files1161109 +Ref: Derived Files-Footnote-11166584 +Ref: Derived Files-Footnote-21166618 +Ref: Derived Files-Footnote-31167214 +Node: Future Extensions1167328 +Node: Implementation Limitations1167934 +Node: Extension Design1169182 +Node: Old Extension Problems1170336 +Ref: Old Extension Problems-Footnote-11171853 +Node: Extension New Mechanism Goals1171910 +Ref: Extension New Mechanism Goals-Footnote-11175270 +Node: Extension Other Design Decisions1175459 +Node: Extension Future Growth1177567 +Node: Old Extension Mechanism1178403 +Node: Notes summary1180165 +Node: Basic Concepts1181351 +Node: Basic High Level1182032 +Ref: figure-general-flow1182304 +Ref: figure-process-flow1182903 +Ref: Basic High Level-Footnote-11186132 +Node: Basic Data Typing1186317 +Node: Glossary1189645 +Node: Copying1214803 +Node: GNU Free Documentation License1252359 +Node: Index1277495 End Tag Table |