diff options
Diffstat (limited to 'doc/gawk.info')
-rw-r--r-- | doc/gawk.info | 1279 |
1 files changed, 660 insertions, 619 deletions
diff --git a/doc/gawk.info b/doc/gawk.info index 8035803b..07c6abb9 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -2567,10 +2567,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' @@ -2954,11 +2952,6 @@ change. The variables are: supposed to be differences, but occasionally theory and practice don't coordinate with each other.) -`GAWK_NO_PP_RUN' - If this variable exists, then when invoked with the - `--pretty-print' option, `gawk' skips running the program. 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. @@ -10160,10 +10153,18 @@ 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. Some operating systems may not have environment variables. On such systems, the `ENVIRON' array is empty (except for @@ -11676,6 +11677,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 @@ -19635,8 +19651,8 @@ 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. File: gawk.info, Node: Advanced Features Summary, Prev: Profiling, Up: Advanced Features @@ -22081,6 +22097,29 @@ just use 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, i) + { + split("", result) + + numerator = int(numerator) + denominator = int(denominator) + result["quotient"] = int(numerator / denominator) + result["remainder"] = int(numerator % denominator) + + return 0.0 + } + ---------- Footnotes ---------- (1) Weisstein, Eric W. `Sylvester's Sequence'. From MathWorld--A @@ -27010,7 +27049,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 @@ -27052,11 +27093,10 @@ 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 @@ -30989,20 +31029,20 @@ Index * --include option: Options. (line 159) * --lint option <1>: Options. (line 185) * --lint option: Command Line. (line 20) -* --lint-old option: Options. (line 295) +* --lint-old option: Options. (line 293) * --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 36) -* --optimize option: Options. (line 237) -* --posix option: Options. (line 254) -* --posix option, --traditional option and: Options. (line 273) +* --optimize option: Options. (line 235) +* --posix option: Options. (line 252) +* --posix option, --traditional option and: Options. (line 271) * --pretty-print option: Options. (line 224) * --profile option <1>: Profiling. (line 12) -* --profile option: Options. (line 242) -* --re-interval option: Options. (line 279) -* --sandbox option: Options. (line 286) +* --profile option: Options. (line 240) +* --re-interval option: Options. (line 277) +* --sandbox option: Options. (line 284) * --sandbox option, disabling system() function: I/O Functions. (line 97) * --sandbox option, input redirection with getline: Getline. (line 19) @@ -31010,9 +31050,9 @@ Index (line 6) * --source option: Options. (line 117) * --traditional option: Options. (line 81) -* --traditional option, --posix option and: Options. (line 273) +* --traditional option, --posix option and: Options. (line 271) * --use-lc-numeric option: Options. (line 219) -* --version option: Options. (line 300) +* --version option: Options. (line 298) * --with-whiny-user-strftime configuration option: Additional Configuration Options. (line 35) * -b option: Options. (line 68) @@ -31025,26 +31065,26 @@ Index * -f option: Options. (line 25) * -F option: Options. (line 21) * -f option: Long. (line 12) -* -F option, -Ft sets FS to TAB: Options. (line 308) +* -F option, -Ft sets FS to TAB: Options. (line 306) * -F option, command line: Command Line Field Separator. (line 6) -* -f option, multiple uses: Options. (line 313) +* -f option, multiple uses: Options. (line 311) * -g option: Options. (line 147) * -h option: Options. (line 154) * -i option: Options. (line 159) -* -L option: Options. (line 295) +* -L option: Options. (line 293) * -l option: Options. (line 173) * -M option: Options. (line 205) * -N option: Options. (line 219) * -n option: Options. (line 211) -* -O option: Options. (line 237) +* -O option: Options. (line 235) * -o option: Options. (line 224) -* -P option: Options. (line 254) -* -p option: Options. (line 242) -* -r option: Options. (line 279) -* -S option: Options. (line 286) +* -P option: Options. (line 252) +* -p option: Options. (line 240) +* -r option: Options. (line 277) +* -S option: Options. (line 284) * -v option: Assignment Options. (line 12) -* -V option: Options. (line 300) +* -V option: Options. (line 298) * -v option: Options. (line 32) * -W option: Options. (line 46) * . (period), regexp operator: Regexp Operators. (line 44) @@ -31316,7 +31356,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 242) +* awk profiling, enabling: Options. (line 240) * awk programs <1>: Two Rules. (line 6) * awk programs <2>: Executable Scripts. (line 6) * awk programs: Getting Started. (line 12) @@ -31723,7 +31763,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 355) +* csh utility, POSIXLY_CORRECT environment variable: Options. (line 353) * csh utility, |& operator, comparison with: Two-way I/O. (line 44) * ctime() user-defined function: Function Example. (line 73) * currency symbols, localization: Explaining gettext. (line 104) @@ -31758,9 +31798,9 @@ Index * dark corner, exit statement: Exit Statement. (line 30) * dark corner, field separators: Field Splitting Summary. (line 46) -* dark corner, FILENAME variable <1>: Auto-set. (line 90) +* dark corner, FILENAME variable <1>: Auto-set. (line 98) * dark corner, FILENAME variable: Getline Notes. (line 19) -* dark corner, FNR/NR variables: Auto-set. (line 301) +* dark corner, FNR/NR variables: Auto-set. (line 309) * dark corner, format-control characters: Control Letters. (line 18) * dark corner, FS as null string: Single Character Fields. (line 20) @@ -31906,7 +31946,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 270) +* decimal point character, locale specific: Options. (line 268) * decrement operators: Increment Ops. (line 35) * default keyword: Switch Statement. (line 6) * Deifik, Scott <1>: Bugs. (line 71) @@ -31945,12 +31985,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 82) * differences in awk and gawk, error messages: Special FD. (line 16) * 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 115) +* differences in awk and gawk, FUNCTAB variable: Auto-set. (line 123) * differences in awk and gawk, function arguments (gawk): Calling Built-in. (line 16) * differences in awk and gawk, getline command: Getline. (line 19) @@ -31973,7 +32013,7 @@ Index (line 260) * differences in awk and gawk, print/printf statements: Format Modifiers. (line 13) -* differences in awk and gawk, PROCINFO array: Auto-set. (line 128) +* differences in awk and gawk, PROCINFO array: Auto-set. (line 136) * differences in awk and gawk, read timeouts: Read Timeout. (line 6) * differences in awk and gawk, record separators: awk split records. (line 124) @@ -31983,7 +32023,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 257) +* differences in awk and gawk, RT variable: Auto-set. (line 265) * differences in awk and gawk, single-character fields: Single Character Fields. (line 6) * differences in awk and gawk, split() function: String Functions. @@ -31991,7 +32031,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 261) +* differences in awk and gawk, SYMTAB variable: Auto-set. (line 269) * differences in awk and gawk, TEXTDOMAIN variable: User-modified. (line 152) * differences in awk and gawk, trunc-mod operation: Arithmetic Ops. @@ -32007,6 +32047,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) @@ -32031,8 +32072,8 @@ Index * 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 133) -* effective user ID of gawk user: Auto-set. (line 137) +* effective group ID of gawk user: Auto-set. (line 141) +* effective user ID of gawk user: Auto-set. (line 145) * egrep utility <1>: Egrep Program. (line 6) * egrep utility: Bracket Expressions. (line 24) * egrep.awk program: Egrep Program. (line 54) @@ -32088,13 +32129,13 @@ Index (line 11) * EREs (Extended Regular Expressions): Bracket Expressions. (line 24) * ERRNO variable <1>: TCP/IP Networking. (line 54) -* ERRNO variable: Auto-set. (line 74) +* ERRNO variable: Auto-set. (line 82) * ERRNO variable, with BEGINFILE pattern: BEGINFILE/ENDFILE. (line 26) * ERRNO variable, with close() function: Close Files And Pipes. (line 139) * ERRNO variable, with getline command: Getline. (line 19) * error handling: Special FD. (line 16) -* error handling, ERRNO variable and: Auto-set. (line 74) +* error handling, ERRNO variable and: Auto-set. (line 82) * error output: Special FD. (line 6) * escape processing, gsub()/gensub()/sub() functions: Gory Details. (line 6) @@ -32127,10 +32168,10 @@ Index * exit status, of VMS: VMS Running. (line 29) * exit the debugger: Miscellaneous Debugger Commands. (line 99) -* exp: Numeric Functions. (line 18) +* exp: Numeric Functions. (line 33) * expand utility: Very Simple. (line 69) * Expat XML parser library: gawkextlib. (line 35) -* 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) @@ -32148,7 +32189,7 @@ Index (line 6) * extension API version: Extension Versioning. (line 6) -* extension API, version number: Auto-set. (line 224) +* extension API, version number: Auto-set. (line 232) * extension example: Extension Example. (line 6) * extension registration: Registration Functions. (line 6) @@ -32227,7 +32268,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 46) -* FILENAME variable <1>: Auto-set. (line 90) +* FILENAME variable <1>: Auto-set. (line 98) * FILENAME variable: Reading Files. (line 6) * FILENAME variable, getline, setting with: Getline Notes. (line 19) * filenames, assignments as: Ignoring Assigns. (line 6) @@ -32295,9 +32336,9 @@ Index * flush buffered output: I/O Functions. (line 28) * fnmatch() extension function: Extension Sample Fnmatch. (line 12) -* FNR variable <1>: Auto-set. (line 99) +* FNR variable <1>: Auto-set. (line 107) * FNR variable: Records. (line 6) -* FNR variable, changing: Auto-set. (line 301) +* FNR variable, changing: Auto-set. (line 309) * for statement: For Statement. (line 6) * for statement, looping over arrays: Scanning an Array. (line 20) * fork() extension function: Extension Sample Fork. @@ -32334,7 +32375,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 266) +* FS variable, as TAB character: Options. (line 264) * FS variable, changing value of: Field Separators. (line 35) * FS variable, running awk programs and: Cut Program. (line 68) * FS variable, setting from command line: Command Line Field Separator. @@ -32347,7 +32388,7 @@ Index * FSF (Free Software Foundation): Manual History. (line 6) * fts() extension function: Extension Sample File Functions. (line 61) -* FUNCTAB array: Auto-set. (line 115) +* FUNCTAB array: Auto-set. (line 123) * function calls: Function Calls. (line 6) * function calls, indirect: Indirect Calls. (line 6) * function definition example: Function Example. (line 6) @@ -32397,7 +32438,7 @@ Index * G-d: Acknowledgments. (line 92) * Garfinkle, Scott: Contributors. (line 34) * gawk program, dynamic profiling: Profiling. (line 179) -* gawk version: Auto-set. (line 199) +* gawk version: Auto-set. (line 207) * gawk, ARGIND variable in: Other Arguments. (line 12) * gawk, awk and <1>: This Manual. (line 14) * gawk, awk and: Preface. (line 23) @@ -32418,13 +32459,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 82) * gawk, ERRNO variable in <3>: BEGINFILE/ENDFILE. (line 26) * gawk, ERRNO variable in <4>: Close Files And Pipes. (line 139) * gawk, ERRNO variable in: Getline. (line 19) * gawk, escape sequences: Escape Sequences. (line 124) -* gawk, extensions, disabling: Options. (line 254) +* gawk, extensions, disabling: Options. (line 252) * gawk, features, adding: Adding Code. (line 6) * gawk, features, advanced: Advanced Features. (line 6) * gawk, field separators and: User-modified. (line 71) @@ -32435,7 +32476,7 @@ Index * gawk, FPAT variable in <1>: User-modified. (line 43) * gawk, FPAT variable in: Splitting By Content. (line 27) -* gawk, FUNCTAB array in: Auto-set. (line 115) +* gawk, FUNCTAB array in: Auto-set. (line 123) * 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. @@ -32466,7 +32507,7 @@ Index * gawk, OS/2 version of: PC Using. (line 16) * gawk, PROCINFO array in <1>: Two-way I/O. (line 117) * gawk, PROCINFO array in <2>: Time Functions. (line 47) -* gawk, PROCINFO array in: Auto-set. (line 128) +* gawk, PROCINFO array in: Auto-set. (line 136) * gawk, regexp constants and: Using Constant Regexps. (line 28) * gawk, regular expressions, case sensitivity: Case-sensitivity. @@ -32474,18 +32515,18 @@ Index * gawk, regular expressions, operators: GNU Regexp Operators. (line 6) * gawk, regular expressions, precedence: Regexp Operators. (line 162) -* gawk, RT variable in <1>: Auto-set. (line 257) +* gawk, RT variable in <1>: Auto-set. (line 265) * gawk, RT variable in <2>: Multiple Line. (line 129) * gawk, RT variable in: awk split records. (line 124) * gawk, See Also awk: Preface. (line 36) * gawk, source code, obtaining: Getting. (line 6) * gawk, splitting fields and: Constant Size. (line 88) * gawk, string-translation functions: I18N Functions. (line 6) -* gawk, SYMTAB array in: Auto-set. (line 261) +* gawk, SYMTAB array in: Auto-set. (line 269) * gawk, TEXTDOMAIN variable in: User-modified. (line 152) * gawk, timestamps: Time Functions. (line 6) * gawk, uses for: Preface. (line 36) -* gawk, versions of, information about, printing: Options. (line 300) +* gawk, versions of, information about, printing: Options. (line 298) * gawk, VMS version of: VMS Installation. (line 6) * gawk, word-boundary operator: GNU Regexp Operators. (line 63) @@ -32567,7 +32608,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 172) +* group ID of gawk user: Auto-set. (line 180) * groups, information about: Group Functions. (line 6) * gsub <1>: String Functions. (line 139) * gsub: Using Constant Regexps. @@ -32666,7 +32707,7 @@ 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: Numeric Functions. (line 38) * INT signal (MS-Windows): Profiling. (line 214) * integer array indices: Numeric Array Subscripts. (line 31) @@ -32796,7 +32837,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 340) + (line 338) * lint checking, undefined functions: Pass By Value/Reference. (line 88) * LINT variable: User-modified. (line 88) @@ -32810,14 +32851,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 270) +* locale decimal point character: Options. (line 268) * 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 30) +* log: Numeric Functions. (line 45) * log files, timestamps in: Time Functions. (line 6) -* logarithm: Numeric Functions. (line 30) +* logarithm: Numeric Functions. (line 45) * logical false/true: Truth Values. (line 6) * logical operators, See Boolean expressions: Boolean Ops. (line 6) * login information: Passwd Functions. (line 16) @@ -32858,7 +32899,7 @@ Index * mawk utility <3>: Concatenation. (line 36) * mawk utility <4>: Getline/Pipe. (line 62) * mawk utility: Escape Sequences. (line 124) -* maximum precision supported by MPFR library: Auto-set. (line 213) +* maximum precision supported by MPFR library: Auto-set. (line 221) * McIlroy, Doug: Glossary. (line 149) * McPhee, Patrick: Contributors. (line 100) * message object files: Explaining gettext. (line 42) @@ -32871,7 +32912,7 @@ Index * messages from extensions: Printing Messages. (line 6) * metacharacters in regular expressions: Regexp Operators. (line 6) * metacharacters, escape sequences for: Escape Sequences. (line 130) -* minimum precision supported by MPFR library: Auto-set. (line 216) +* minimum precision supported by MPFR library: Auto-set. (line 224) * mktime: Time Functions. (line 25) * modifiers, in format specifiers: Format Modifiers. (line 6) * monetary information, localization: Explaining gettext. (line 104) @@ -32894,7 +32935,7 @@ Index * networks, programming: TCP/IP Networking. (line 6) * networks, support for: Special Network. (line 6) * newlines <1>: Boolean Ops. (line 67) -* newlines <2>: Options. (line 260) +* newlines <2>: Options. (line 258) * newlines: Statements/Lines. (line 6) * newlines, as field separators: Default Field Splitting. (line 6) @@ -32923,7 +32964,7 @@ Index (line 47) * nexti debugger command: Debugger Execution Control. (line 49) -* NF variable <1>: Auto-set. (line 104) +* NF variable <1>: Auto-set. (line 112) * NF variable: Fields. (line 33) * NF variable, decrementing: Changing Fields. (line 107) * ni debugger command (alias for nexti): Debugger Execution Control. @@ -32932,9 +32973,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 123) +* NR variable <1>: Auto-set. (line 131) * NR variable: Records. (line 6) -* NR variable, changing: Auto-set. (line 301) +* NR variable, changing: Auto-set. (line 309) * null strings <1>: Basic Data Typing. (line 26) * null strings <2>: Truth Values. (line 6) * null strings <3>: Regexp Field Splitting. @@ -33049,7 +33090,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 181) +* parent process ID of gawk process: Auto-set. (line 189) * parentheses (), in a profile: Profiling. (line 146) * parentheses (), regexp operator: Regexp Operators. (line 80) * password file: Passwd Functions. (line 16) @@ -33116,7 +33157,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 360) +* portability, POSIXLY_CORRECT environment variable: Options. (line 358) * portability, substr() function: String Functions. (line 510) * portable object files <1>: Translator i18n. (line 6) * portable object files: Explaining gettext. (line 37) @@ -33165,11 +33206,11 @@ Index * POSIX awk, regular expressions and: Regexp Operators. (line 162) * POSIX awk, timestamps and: Time Functions. (line 6) * POSIX awk, | I/O operator and: Getline/Pipe. (line 55) -* POSIX mode: Options. (line 254) +* POSIX mode: Options. (line 252) * POSIX, awk and: Preface. (line 23) * POSIX, gawk extensions not included in: POSIX/GNU. (line 6) * POSIX, programs, implementing in awk: Clones. (line 6) -* POSIXLY_CORRECT environment variable: Options. (line 340) +* POSIXLY_CORRECT environment variable: Options. (line 338) * PREC variable: User-modified. (line 124) * precedence <1>: Precedence. (line 6) * precedence: Increment Ops. (line 60) @@ -33212,24 +33253,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 175) -* process ID of gawk process: Auto-set. (line 178) +* process group idIDof gawk process: Auto-set. (line 183) +* process ID of gawk process: Auto-set. (line 186) * processes, two-way communications with: Two-way I/O. (line 23) * 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 128) +* PROCINFO array: Auto-set. (line 136) * PROCINFO array, and communications via ptys: Two-way I/O. (line 117) * 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 161) -* PROCINFO array, uses: Auto-set. (line 234) +* PROCINFO array, uses: Auto-set. (line 242) * 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 146) +* program identifiers: Auto-set. (line 154) * program, definition of: Getting Started. (line 21) * programmers, attractiveness of: Two-way I/O. (line 6) * programming conventions, --non-decimal-data option: Nondecimal Data. @@ -33274,12 +33315,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 35) +* rand: Numeric Functions. (line 50) * random numbers, Cliff: Cliff Random Function. (line 6) * random numbers, rand()/srand() functions: Numeric Functions. - (line 35) -* random numbers, seed of: Numeric Functions. (line 65) + (line 50) +* random numbers, seed of: Numeric Functions. (line 80) * range expressions (regexps): Bracket Expressions. (line 6) * range patterns: Ranges. (line 6) * range patterns, line continuation and: Ranges. (line 65) @@ -33349,7 +33390,7 @@ Index (line 59) * regular expressions, gawk, command-line options: GNU Regexp Operators. (line 70) -* regular expressions, interval expressions and: Options. (line 279) +* regular expressions, interval expressions and: Options. (line 277) * regular expressions, leftmost longest match: Leftmost Longest. (line 6) * regular expressions, operators <1>: Regexp Operators. (line 6) @@ -33389,7 +33430,7 @@ Index * right shift: Bitwise Functions. (line 52) * right shift, bitwise: Bitwise Functions. (line 32) * Ritchie, Dennis: Basic Data Typing. (line 54) -* RLENGTH variable: Auto-set. (line 244) +* RLENGTH variable: Auto-set. (line 252) * RLENGTH variable, match() function and: String Functions. (line 224) * Robbins, Arnold <1>: Future Extensions. (line 6) * Robbins, Arnold <2>: Bugs. (line 32) @@ -33407,7 +33448,7 @@ Index * Robbins, Miriam <2>: Getline/Pipe. (line 39) * Robbins, Miriam: Acknowledgments. (line 92) * 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 128) @@ -33415,9 +33456,9 @@ Index * RS variable: awk split records. (line 12) * RS variable, multiline records and: Multiple Line. (line 17) * rshift: Bitwise Functions. (line 52) -* RSTART variable: Auto-set. (line 250) +* RSTART variable: Auto-set. (line 258) * RSTART variable, match() function and: String Functions. (line 224) -* RT variable <1>: Auto-set. (line 257) +* RT variable <1>: Auto-set. (line 265) * RT variable <2>: Multiple Line. (line 129) * RT variable: awk split records. (line 124) * Rubin, Paul <1>: Contributors. (line 15) @@ -33430,14 +33471,14 @@ Index (line 68) * sample debugging session: Sample Debugging Session. (line 6) -* sandbox mode: Options. (line 286) +* sandbox mode: Options. (line 284) * 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 284) +* Schorr, Andrew <2>: Auto-set. (line 292) * Schorr, Andrew: Acknowledgments. (line 60) * Schreiber, Bert: Acknowledgments. (line 38) * Schreiber, Rita: Acknowledgments. (line 38) @@ -33457,7 +33498,7 @@ Index * sed utility <2>: Simple Sed. (line 6) * sed utility: Field Splitting Summary. (line 46) -* seeding random number generator: Numeric Functions. (line 65) +* seeding random number generator: Numeric Functions. (line 80) * semicolon (;), AWKPATH variable and: PC Using. (line 10) * semicolon (;), separating statements in actions <1>: Statements. (line 10) @@ -33522,7 +33563,7 @@ Index (line 110) * sidebar, Changing FS Does Not Affect the Fields: Field Splitting Summary. (line 38) -* sidebar, Changing NR and FNR: Auto-set. (line 299) +* sidebar, Changing NR and FNR: Auto-set. (line 307) * sidebar, Controlling Output Buffering with system(): I/O Functions. (line 138) * sidebar, Escape Sequences for Metacharacters: Escape Sequences. @@ -33559,8 +33600,8 @@ Index * SIGUSR1 signal, for dynamic profiling: Profiling. (line 188) * silent debugger command: Debugger Execution Control. (line 10) -* sin: Numeric Functions. (line 76) -* sine: Numeric Functions. (line 76) +* sin: Numeric Functions. (line 91) +* sine: Numeric Functions. (line 91) * single quote ('): One-shot. (line 15) * single quote (') in gawk command lines: Long. (line 33) * single quote ('), in shell commands: Quoting. (line 48) @@ -33610,10 +33651,10 @@ Index * sprintf() function, OFMT variable and: User-modified. (line 114) * sprintf() function, print/printf statements and: Round Function. (line 6) -* sqrt: Numeric Functions. (line 79) +* sqrt: Numeric Functions. (line 94) * square brackets ([]), regexp operator: Regexp Operators. (line 56) -* square root: Numeric Functions. (line 79) -* srand: Numeric Functions. (line 83) +* square root: Numeric Functions. (line 94) +* srand: Numeric Functions. (line 98) * stack frame: Debugging Terms. (line 10) * Stallman, Richard <1>: Glossary. (line 296) * Stallman, Richard <2>: Contributors. (line 23) @@ -33685,9 +33726,9 @@ Index * substr: String Functions. (line 479) * substring: String Functions. (line 479) * Sumner, Andrew: Other Versions. (line 64) -* supplementary groups of gawk process: Auto-set. (line 229) +* supplementary groups of gawk process: Auto-set. (line 237) * switch statement: Switch Statement. (line 6) -* SYMTAB array: Auto-set. (line 261) +* SYMTAB array: Auto-set. (line 269) * syntactic ambiguity: /= operator vs. /=.../ regexp constant: Assignment Ops. (line 148) * system: I/O Functions. (line 75) @@ -33865,10 +33906,10 @@ Index * variables, uninitialized, as array subscripts: Uninitialized Subscripts. (line 6) * variables, user-defined: Variables. (line 6) -* version of gawk: Auto-set. (line 199) -* version of gawk extension API: Auto-set. (line 224) -* version of GNU MP library: Auto-set. (line 210) -* version of GNU MPFR library: Auto-set. (line 206) +* 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) * vertical bar (|): Regexp Operators. (line 70) * vertical bar (|), | operator (I/O) <1>: Precedence. (line 65) * vertical bar (|), | operator (I/O): Getline/Pipe. (line 9) @@ -33902,7 +33943,7 @@ Index * whitespace, as field separators: Default Field Splitting. (line 6) * whitespace, functions, calling: Calling Built-in. (line 10) -* whitespace, newlines as: Options. (line 260) +* whitespace, newlines as: Options. (line 258) * Williams, Kent: Contributors. (line 34) * Woehlke, Matthew: Contributors. (line 79) * Woods, John: Contributors. (line 27) @@ -33996,510 +34037,510 @@ Node: Intro Summary110102 Node: Invoking Gawk110868 Node: Command Line112383 Node: Options113174 -Ref: Options-Footnote-1129003 -Node: Other Arguments129028 -Node: Naming Standard Input131690 -Node: Environment Variables132784 -Node: AWKPATH Variable133342 -Ref: AWKPATH Variable-Footnote-1136214 -Ref: AWKPATH Variable-Footnote-2136259 -Node: AWKLIBPATH Variable136519 -Node: Other Environment Variables137278 -Node: Exit Status140933 -Node: Include Files141608 -Node: Loading Shared Libraries145186 -Node: Obsolete146570 -Node: Undocumented147267 -Node: Invoking Summary147534 -Node: Regexp149114 -Node: Regexp Usage150564 -Node: Escape Sequences152597 -Node: Regexp Operators158264 -Ref: Regexp Operators-Footnote-1165744 -Ref: Regexp Operators-Footnote-2165891 -Node: Bracket Expressions165989 -Ref: table-char-classes167879 -Node: GNU Regexp Operators170819 -Node: Case-sensitivity174542 -Ref: Case-sensitivity-Footnote-1177434 -Ref: Case-sensitivity-Footnote-2177669 -Node: Leftmost Longest177777 -Node: Computed Regexps178978 -Node: Regexp Summary182350 -Node: Reading Files183821 -Node: Records185913 -Node: awk split records186656 -Node: gawk split records191514 -Ref: gawk split records-Footnote-1196035 -Node: Fields196072 -Ref: Fields-Footnote-1199036 -Node: Nonconstant Fields199122 -Ref: Nonconstant Fields-Footnote-1201352 -Node: Changing Fields201554 -Node: Field Separators207508 -Node: Default Field Splitting210210 -Node: Regexp Field Splitting211327 -Node: Single Character Fields214668 -Node: Command Line Field Separator215727 -Node: Full Line Fields219069 -Ref: Full Line Fields-Footnote-1219577 -Node: Field Splitting Summary219623 -Ref: Field Splitting Summary-Footnote-1222722 -Node: Constant Size222823 -Node: Splitting By Content227430 -Ref: Splitting By Content-Footnote-1231180 -Node: Multiple Line231220 -Ref: Multiple Line-Footnote-1237076 -Node: Getline237255 -Node: Plain Getline239471 -Node: Getline/Variable241566 -Node: Getline/File242713 -Node: Getline/Variable/File244097 -Ref: Getline/Variable/File-Footnote-1245696 -Node: Getline/Pipe245783 -Node: Getline/Variable/Pipe248482 -Node: Getline/Coprocess249589 -Node: Getline/Variable/Coprocess250841 -Node: Getline Notes251578 -Node: Getline Summary254382 -Ref: table-getline-variants254790 -Node: Read Timeout255702 -Ref: Read Timeout-Footnote-1259529 -Node: Command line directories259587 -Node: Input Summary260491 -Node: Input Exercises263628 -Node: Printing264361 -Node: Print266083 -Node: Print Examples267424 -Node: Output Separators270203 -Node: OFMT272219 -Node: Printf273577 -Node: Basic Printf274483 -Node: Control Letters276022 -Node: Format Modifiers280013 -Node: Printf Examples286040 -Node: Redirection288504 -Node: Special Files295476 -Node: Special FD296007 -Ref: Special FD-Footnote-1299604 -Node: Special Network299678 -Node: Special Caveats300528 -Node: Close Files And Pipes301324 -Ref: Close Files And Pipes-Footnote-1308485 -Ref: Close Files And Pipes-Footnote-2308633 -Node: Output Summary308783 -Node: Output exercises309780 -Node: Expressions310460 -Node: Values311645 -Node: Constants312321 -Node: Scalar Constants313001 -Ref: Scalar Constants-Footnote-1313860 -Node: Nondecimal-numbers314110 -Node: Regexp Constants317110 -Node: Using Constant Regexps317585 -Node: Variables320655 -Node: Using Variables321310 -Node: Assignment Options323034 -Node: Conversion324909 -Node: Strings And Numbers325433 -Ref: Strings And Numbers-Footnote-1328495 -Node: Locale influences conversions328604 -Ref: table-locale-affects331321 -Node: All Operators331909 -Node: Arithmetic Ops332539 -Node: Concatenation335044 -Ref: Concatenation-Footnote-1337863 -Node: Assignment Ops337983 -Ref: table-assign-ops342966 -Node: Increment Ops344283 -Node: Truth Values and Conditions347721 -Node: Truth Values348804 -Node: Typing and Comparison349853 -Node: Variable Typing350646 -Node: Comparison Operators354296 -Ref: table-relational-ops354706 -Node: POSIX String Comparison358256 -Ref: POSIX String Comparison-Footnote-1359340 -Node: Boolean Ops359478 -Ref: Boolean Ops-Footnote-1363548 -Node: Conditional Exp363639 -Node: Function Calls365366 -Node: Precedence369246 -Node: Locales372915 -Node: Expressions Summary374546 -Node: Patterns and Actions377087 -Node: Pattern Overview378203 -Node: Regexp Patterns379880 -Node: Expression Patterns380423 -Node: Ranges384204 -Node: BEGIN/END387310 -Node: Using BEGIN/END388072 -Ref: Using BEGIN/END-Footnote-1390808 -Node: I/O And BEGIN/END390914 -Node: BEGINFILE/ENDFILE393199 -Node: Empty396130 -Node: Using Shell Variables396447 -Node: Action Overview398730 -Node: Statements401057 -Node: If Statement402905 -Node: While Statement404403 -Node: Do Statement406447 -Node: For Statement407603 -Node: Switch Statement410755 -Node: Break Statement412858 -Node: Continue Statement414913 -Node: Next Statement416706 -Node: Nextfile Statement419096 -Node: Exit Statement421751 -Node: Built-in Variables424155 -Node: User-modified425282 -Ref: User-modified-Footnote-1432971 -Node: Auto-set433033 -Ref: Auto-set-Footnote-1445615 -Ref: Auto-set-Footnote-2445820 -Node: ARGC and ARGV445876 -Node: Pattern Action Summary449730 -Node: Arrays451953 -Node: Array Basics453502 -Node: Array Intro454328 -Ref: figure-array-elements456301 -Node: Reference to Elements458708 -Node: Assigning Elements460981 -Node: Array Example461472 -Node: Scanning an Array463204 -Node: Controlling Scanning466219 -Ref: Controlling Scanning-Footnote-1471392 -Node: Delete471708 -Ref: Delete-Footnote-1474473 -Node: Numeric Array Subscripts474530 -Node: Uninitialized Subscripts476713 -Node: Multidimensional478338 -Node: Multiscanning481431 -Node: Arrays of Arrays483020 -Node: Arrays Summary487683 -Node: Functions489788 -Node: Built-in490661 -Node: Calling Built-in491739 -Node: Numeric Functions493727 -Ref: Numeric Functions-Footnote-1497669 -Ref: Numeric Functions-Footnote-2498026 -Ref: Numeric Functions-Footnote-3498074 -Node: String Functions498343 -Ref: String Functions-Footnote-1521354 -Ref: String Functions-Footnote-2521483 -Ref: String Functions-Footnote-3521731 -Node: Gory Details521818 -Ref: table-sub-escapes523487 -Ref: table-sub-posix-92524841 -Ref: table-sub-proposed526192 -Ref: table-posix-sub527546 -Ref: table-gensub-escapes529091 -Ref: Gory Details-Footnote-1530267 -Ref: Gory Details-Footnote-2530318 -Node: I/O Functions530469 -Ref: I/O Functions-Footnote-1537592 -Node: Time Functions537739 -Ref: Time Functions-Footnote-1548203 -Ref: Time Functions-Footnote-2548271 -Ref: Time Functions-Footnote-3548429 -Ref: Time Functions-Footnote-4548540 -Ref: Time Functions-Footnote-5548652 -Ref: Time Functions-Footnote-6548879 -Node: Bitwise Functions549145 -Ref: table-bitwise-ops549707 -Ref: Bitwise Functions-Footnote-1553952 -Node: Type Functions554136 -Node: I18N Functions555278 -Node: User-defined556923 -Node: Definition Syntax557727 -Ref: Definition Syntax-Footnote-1562906 -Node: Function Example562975 -Ref: Function Example-Footnote-1565619 -Node: Function Caveats565641 -Node: Calling A Function566159 -Node: Variable Scope567114 -Node: Pass By Value/Reference570102 -Node: Return Statement573610 -Node: Dynamic Typing576594 -Node: Indirect Calls577523 -Node: Functions Summary587236 -Node: Library Functions589775 -Ref: Library Functions-Footnote-1593393 -Ref: Library Functions-Footnote-2593536 -Node: Library Names593707 -Ref: Library Names-Footnote-1597180 -Ref: Library Names-Footnote-2597400 -Node: General Functions597486 -Node: Strtonum Function598514 -Node: Assert Function601294 -Node: Round Function604620 -Node: Cliff Random Function606161 -Node: Ordinal Functions607177 -Ref: Ordinal Functions-Footnote-1610254 -Ref: Ordinal Functions-Footnote-2610506 -Node: Join Function610717 -Ref: Join Function-Footnote-1612488 -Node: Getlocaltime Function612688 -Node: Readfile Function616424 -Node: Data File Management618263 -Node: Filetrans Function618895 -Node: Rewind Function622964 -Node: File Checking624522 -Ref: File Checking-Footnote-1625654 -Node: Empty Files625855 -Node: Ignoring Assigns627834 -Node: Getopt Function629388 -Ref: Getopt Function-Footnote-1640691 -Node: Passwd Functions640894 -Ref: Passwd Functions-Footnote-1649873 -Node: Group Functions649961 -Ref: Group Functions-Footnote-1657902 -Node: Walking Arrays658115 -Node: Library Functions Summary659718 -Node: Library exercises661106 -Node: Sample Programs662386 -Node: Running Examples663156 -Node: Clones663884 -Node: Cut Program665108 -Node: Egrep Program674976 -Ref: Egrep Program-Footnote-1682947 -Node: Id Program683057 -Node: Split Program686721 -Ref: Split Program-Footnote-1690259 -Node: Tee Program690387 -Node: Uniq Program693194 -Node: Wc Program700624 -Ref: Wc Program-Footnote-1704889 -Node: Miscellaneous Programs704981 -Node: Dupword Program706194 -Node: Alarm Program708225 -Node: Translate Program713039 -Ref: Translate Program-Footnote-1717430 -Ref: Translate Program-Footnote-2717700 -Node: Labels Program717834 -Ref: Labels Program-Footnote-1721205 -Node: Word Sorting721289 -Node: History Sorting725332 -Node: Extract Program727168 -Node: Simple Sed734704 -Node: Igawk Program737766 -Ref: Igawk Program-Footnote-1752077 -Ref: Igawk Program-Footnote-2752278 -Node: Anagram Program752416 -Node: Signature Program755484 -Node: Programs Summary756731 -Node: Programs Exercises757946 -Node: Advanced Features761597 -Node: Nondecimal Data763545 -Node: Array Sorting765122 -Node: Controlling Array Traversal765819 -Node: Array Sorting Functions774099 -Ref: Array Sorting Functions-Footnote-1778006 -Node: Two-way I/O778200 -Ref: Two-way I/O-Footnote-1783716 -Node: TCP/IP Networking783798 -Node: Profiling786642 -Node: Advanced Features Summary794184 -Node: Internationalization796048 -Node: I18N and L10N797528 -Node: Explaining gettext798214 -Ref: Explaining gettext-Footnote-1803354 -Ref: Explaining gettext-Footnote-2803538 -Node: Programmer i18n803703 -Node: Translator i18n807928 -Node: String Extraction808722 -Ref: String Extraction-Footnote-1809683 -Node: Printf Ordering809769 -Ref: Printf Ordering-Footnote-1812551 -Node: I18N Portability812615 -Ref: I18N Portability-Footnote-1815064 -Node: I18N Example815127 -Ref: I18N Example-Footnote-1817849 -Node: Gawk I18N817921 -Node: I18N Summary818559 -Node: Debugger819898 -Node: Debugging820920 -Node: Debugging Concepts821361 -Node: Debugging Terms823217 -Node: Awk Debugging825814 -Node: Sample Debugging Session826706 -Node: Debugger Invocation827226 -Node: Finding The Bug828559 -Node: List of Debugger Commands835041 -Node: Breakpoint Control836373 -Node: Debugger Execution Control840037 -Node: Viewing And Changing Data843397 -Node: Execution Stack846755 -Node: Debugger Info848268 -Node: Miscellaneous Debugger Commands852262 -Node: Readline Support857446 -Node: Limitations858338 -Node: Debugging Summary860612 -Node: Arbitrary Precision Arithmetic861776 -Node: Computer Arithmetic863105 -Ref: Computer Arithmetic-Footnote-1867492 -Node: Math Definitions867549 -Ref: table-ieee-formats870433 -Node: MPFR features870937 -Node: FP Math Caution872579 -Ref: FP Math Caution-Footnote-1873620 -Node: Inexactness of computations873989 -Node: Inexact representation874937 -Node: Comparing FP Values876292 -Node: Errors accumulate877256 -Node: Getting Accuracy878689 -Node: Try To Round881348 -Node: Setting precision882247 -Ref: table-predefined-precision-strings882929 -Node: Setting the rounding mode884722 -Ref: table-gawk-rounding-modes885086 -Ref: Setting the rounding mode-Footnote-1888540 -Node: Arbitrary Precision Integers888719 -Ref: Arbitrary Precision Integers-Footnote-1891722 -Node: POSIX Floating Point Problems891871 -Ref: POSIX Floating Point Problems-Footnote-1895747 -Node: Floating point summary895785 -Node: Dynamic Extensions898002 -Node: Extension Intro899554 -Node: Plugin License900819 -Node: Extension Mechanism Outline901504 -Ref: figure-load-extension901928 -Ref: figure-load-new-function903413 -Ref: figure-call-new-function904415 -Node: Extension API Description906399 -Node: Extension API Functions Introduction907849 -Node: General Data Types912714 -Ref: General Data Types-Footnote-1918407 -Node: Requesting Values918706 -Ref: table-value-types-returned919443 -Node: Memory Allocation Functions920401 -Ref: Memory Allocation Functions-Footnote-1923148 -Node: Constructor Functions923244 -Node: Registration Functions925002 -Node: Extension Functions925687 -Node: Exit Callback Functions927989 -Node: Extension Version String929238 -Node: Input Parsers929888 -Node: Output Wrappers939702 -Node: Two-way processors944218 -Node: Printing Messages946422 -Ref: Printing Messages-Footnote-1947499 -Node: Updating `ERRNO'947651 -Node: Accessing Parameters948390 -Node: Symbol Table Access949620 -Node: Symbol table by name950134 -Node: Symbol table by cookie952110 -Ref: Symbol table by cookie-Footnote-1956243 -Node: Cached values956306 -Ref: Cached values-Footnote-1959810 -Node: Array Manipulation959901 -Ref: Array Manipulation-Footnote-1960999 -Node: Array Data Types961038 -Ref: Array Data Types-Footnote-1963741 -Node: Array Functions963833 -Node: Flattening Arrays967707 -Node: Creating Arrays974559 -Node: Extension API Variables979290 -Node: Extension Versioning979926 -Node: Extension API Informational Variables981827 -Node: Extension API Boilerplate982913 -Node: Finding Extensions986717 -Node: Extension Example987277 -Node: Internal File Description988007 -Node: Internal File Ops992098 -Ref: Internal File Ops-Footnote-11003530 -Node: Using Internal File Ops1003670 -Ref: Using Internal File Ops-Footnote-11006017 -Node: Extension Samples1006285 -Node: Extension Sample File Functions1007809 -Node: Extension Sample Fnmatch1015377 -Node: Extension Sample Fork1016859 -Node: Extension Sample Inplace1018072 -Node: Extension Sample Ord1019747 -Node: Extension Sample Readdir1020583 -Ref: table-readdir-file-types1021439 -Node: Extension Sample Revout1022238 -Node: Extension Sample Rev2way1022829 -Node: Extension Sample Read write array1023570 -Node: Extension Sample Readfile1025449 -Node: Extension Sample API Tests1026549 -Node: Extension Sample Time1027074 -Node: gawkextlib1028389 -Node: Extension summary1031202 -Node: Extension Exercises1034895 -Node: Language History1035617 -Node: V7/SVR3.11037260 -Node: SVR41039580 -Node: POSIX1041022 -Node: BTL1042408 -Node: POSIX/GNU1043142 -Node: Feature History1048885 -Node: Common Extensions1062015 -Node: Ranges and Locales1063327 -Ref: Ranges and Locales-Footnote-11067944 -Ref: Ranges and Locales-Footnote-21067971 -Ref: Ranges and Locales-Footnote-31068205 -Node: Contributors1068426 -Node: History summary1073851 -Node: Installation1075220 -Node: Gawk Distribution1076171 -Node: Getting1076655 -Node: Extracting1077479 -Node: Distribution contents1079121 -Node: Unix Installation1084838 -Node: Quick Installation1085455 -Node: Additional Configuration Options1087897 -Node: Configuration Philosophy1089635 -Node: Non-Unix Installation1091986 -Node: PC Installation1092444 -Node: PC Binary Installation1093755 -Node: PC Compiling1095603 -Ref: PC Compiling-Footnote-11098602 -Node: PC Testing1098707 -Node: PC Using1099883 -Node: Cygwin1104041 -Node: MSYS1104850 -Node: VMS Installation1105364 -Node: VMS Compilation1106160 -Ref: VMS Compilation-Footnote-11107382 -Node: VMS Dynamic Extensions1107440 -Node: VMS Installation Details1108813 -Node: VMS Running1111065 -Node: VMS GNV1113899 -Node: VMS Old Gawk1114622 -Node: Bugs1115092 -Node: Other Versions1119096 -Node: Installation summary1125351 -Node: Notes1126407 -Node: Compatibility Mode1127272 -Node: Additions1128054 -Node: Accessing The Source1128979 -Node: Adding Code1130415 -Node: New Ports1136593 -Node: Derived Files1141074 -Ref: Derived Files-Footnote-11146155 -Ref: Derived Files-Footnote-21146189 -Ref: Derived Files-Footnote-31146785 -Node: Future Extensions1146899 -Node: Implementation Limitations1147505 -Node: Extension Design1148753 -Node: Old Extension Problems1149907 -Ref: Old Extension Problems-Footnote-11151424 -Node: Extension New Mechanism Goals1151481 -Ref: Extension New Mechanism Goals-Footnote-11154841 -Node: Extension Other Design Decisions1155030 -Node: Extension Future Growth1157136 -Node: Old Extension Mechanism1157972 -Node: Notes summary1159734 -Node: Basic Concepts1160920 -Node: Basic High Level1161601 -Ref: figure-general-flow1161873 -Ref: figure-process-flow1162472 -Ref: Basic High Level-Footnote-11165701 -Node: Basic Data Typing1165886 -Node: Glossary1169214 -Node: Copying1194366 -Node: GNU Free Documentation License1231922 -Node: Index1257058 +Ref: Options-Footnote-1128874 +Node: Other Arguments128899 +Node: Naming Standard Input131561 +Node: Environment Variables132655 +Node: AWKPATH Variable133213 +Ref: AWKPATH Variable-Footnote-1136085 +Ref: AWKPATH Variable-Footnote-2136130 +Node: AWKLIBPATH Variable136390 +Node: Other Environment Variables137149 +Node: Exit Status140599 +Node: Include Files141274 +Node: Loading Shared Libraries144852 +Node: Obsolete146236 +Node: Undocumented146933 +Node: Invoking Summary147200 +Node: Regexp148780 +Node: Regexp Usage150230 +Node: Escape Sequences152263 +Node: Regexp Operators157930 +Ref: Regexp Operators-Footnote-1165410 +Ref: Regexp Operators-Footnote-2165557 +Node: Bracket Expressions165655 +Ref: table-char-classes167545 +Node: GNU Regexp Operators170485 +Node: Case-sensitivity174208 +Ref: Case-sensitivity-Footnote-1177100 +Ref: Case-sensitivity-Footnote-2177335 +Node: Leftmost Longest177443 +Node: Computed Regexps178644 +Node: Regexp Summary182016 +Node: Reading Files183487 +Node: Records185579 +Node: awk split records186322 +Node: gawk split records191180 +Ref: gawk split records-Footnote-1195701 +Node: Fields195738 +Ref: Fields-Footnote-1198702 +Node: Nonconstant Fields198788 +Ref: Nonconstant Fields-Footnote-1201018 +Node: Changing Fields201220 +Node: Field Separators207174 +Node: Default Field Splitting209876 +Node: Regexp Field Splitting210993 +Node: Single Character Fields214334 +Node: Command Line Field Separator215393 +Node: Full Line Fields218735 +Ref: Full Line Fields-Footnote-1219243 +Node: Field Splitting Summary219289 +Ref: Field Splitting Summary-Footnote-1222388 +Node: Constant Size222489 +Node: Splitting By Content227096 +Ref: Splitting By Content-Footnote-1230846 +Node: Multiple Line230886 +Ref: Multiple Line-Footnote-1236742 +Node: Getline236921 +Node: Plain Getline239137 +Node: Getline/Variable241232 +Node: Getline/File242379 +Node: Getline/Variable/File243763 +Ref: Getline/Variable/File-Footnote-1245362 +Node: Getline/Pipe245449 +Node: Getline/Variable/Pipe248148 +Node: Getline/Coprocess249255 +Node: Getline/Variable/Coprocess250507 +Node: Getline Notes251244 +Node: Getline Summary254048 +Ref: table-getline-variants254456 +Node: Read Timeout255368 +Ref: Read Timeout-Footnote-1259195 +Node: Command line directories259253 +Node: Input Summary260157 +Node: Input Exercises263294 +Node: Printing264027 +Node: Print265749 +Node: Print Examples267090 +Node: Output Separators269869 +Node: OFMT271885 +Node: Printf273243 +Node: Basic Printf274149 +Node: Control Letters275688 +Node: Format Modifiers279679 +Node: Printf Examples285706 +Node: Redirection288170 +Node: Special Files295142 +Node: Special FD295673 +Ref: Special FD-Footnote-1299270 +Node: Special Network299344 +Node: Special Caveats300194 +Node: Close Files And Pipes300990 +Ref: Close Files And Pipes-Footnote-1308151 +Ref: Close Files And Pipes-Footnote-2308299 +Node: Output Summary308449 +Node: Output exercises309446 +Node: Expressions310126 +Node: Values311311 +Node: Constants311987 +Node: Scalar Constants312667 +Ref: Scalar Constants-Footnote-1313526 +Node: Nondecimal-numbers313776 +Node: Regexp Constants316776 +Node: Using Constant Regexps317251 +Node: Variables320321 +Node: Using Variables320976 +Node: Assignment Options322700 +Node: Conversion324575 +Node: Strings And Numbers325099 +Ref: Strings And Numbers-Footnote-1328161 +Node: Locale influences conversions328270 +Ref: table-locale-affects330987 +Node: All Operators331575 +Node: Arithmetic Ops332205 +Node: Concatenation334710 +Ref: Concatenation-Footnote-1337529 +Node: Assignment Ops337649 +Ref: table-assign-ops342632 +Node: Increment Ops343949 +Node: Truth Values and Conditions347387 +Node: Truth Values348470 +Node: Typing and Comparison349519 +Node: Variable Typing350312 +Node: Comparison Operators353962 +Ref: table-relational-ops354372 +Node: POSIX String Comparison357922 +Ref: POSIX String Comparison-Footnote-1359006 +Node: Boolean Ops359144 +Ref: Boolean Ops-Footnote-1363214 +Node: Conditional Exp363305 +Node: Function Calls365032 +Node: Precedence368912 +Node: Locales372581 +Node: Expressions Summary374212 +Node: Patterns and Actions376753 +Node: Pattern Overview377869 +Node: Regexp Patterns379546 +Node: Expression Patterns380089 +Node: Ranges383870 +Node: BEGIN/END386976 +Node: Using BEGIN/END387738 +Ref: Using BEGIN/END-Footnote-1390474 +Node: I/O And BEGIN/END390580 +Node: BEGINFILE/ENDFILE392865 +Node: Empty395796 +Node: Using Shell Variables396113 +Node: Action Overview398396 +Node: Statements400723 +Node: If Statement402571 +Node: While Statement404069 +Node: Do Statement406113 +Node: For Statement407269 +Node: Switch Statement410421 +Node: Break Statement412524 +Node: Continue Statement414579 +Node: Next Statement416372 +Node: Nextfile Statement418762 +Node: Exit Statement421417 +Node: Built-in Variables423821 +Node: User-modified424948 +Ref: User-modified-Footnote-1432637 +Node: Auto-set432699 +Ref: Auto-set-Footnote-1445618 +Ref: Auto-set-Footnote-2445823 +Node: ARGC and ARGV445879 +Node: Pattern Action Summary449733 +Node: Arrays451956 +Node: Array Basics453505 +Node: Array Intro454331 +Ref: figure-array-elements456304 +Node: Reference to Elements458711 +Node: Assigning Elements460984 +Node: Array Example461475 +Node: Scanning an Array463207 +Node: Controlling Scanning466222 +Ref: Controlling Scanning-Footnote-1471395 +Node: Delete471711 +Ref: Delete-Footnote-1474476 +Node: Numeric Array Subscripts474533 +Node: Uninitialized Subscripts476716 +Node: Multidimensional478341 +Node: Multiscanning481434 +Node: Arrays of Arrays483023 +Node: Arrays Summary487686 +Node: Functions489791 +Node: Built-in490664 +Node: Calling Built-in491742 +Node: Numeric Functions493730 +Ref: Numeric Functions-Footnote-1498474 +Ref: Numeric Functions-Footnote-2498831 +Ref: Numeric Functions-Footnote-3498879 +Node: String Functions499148 +Ref: String Functions-Footnote-1522159 +Ref: String Functions-Footnote-2522288 +Ref: String Functions-Footnote-3522536 +Node: Gory Details522623 +Ref: table-sub-escapes524292 +Ref: table-sub-posix-92525646 +Ref: table-sub-proposed526997 +Ref: table-posix-sub528351 +Ref: table-gensub-escapes529896 +Ref: Gory Details-Footnote-1531072 +Ref: Gory Details-Footnote-2531123 +Node: I/O Functions531274 +Ref: I/O Functions-Footnote-1538397 +Node: Time Functions538544 +Ref: Time Functions-Footnote-1549008 +Ref: Time Functions-Footnote-2549076 +Ref: Time Functions-Footnote-3549234 +Ref: Time Functions-Footnote-4549345 +Ref: Time Functions-Footnote-5549457 +Ref: Time Functions-Footnote-6549684 +Node: Bitwise Functions549950 +Ref: table-bitwise-ops550512 +Ref: Bitwise Functions-Footnote-1554757 +Node: Type Functions554941 +Node: I18N Functions556083 +Node: User-defined557728 +Node: Definition Syntax558532 +Ref: Definition Syntax-Footnote-1563711 +Node: Function Example563780 +Ref: Function Example-Footnote-1566424 +Node: Function Caveats566446 +Node: Calling A Function566964 +Node: Variable Scope567919 +Node: Pass By Value/Reference570907 +Node: Return Statement574415 +Node: Dynamic Typing577399 +Node: Indirect Calls578328 +Node: Functions Summary588041 +Node: Library Functions590580 +Ref: Library Functions-Footnote-1594198 +Ref: Library Functions-Footnote-2594341 +Node: Library Names594512 +Ref: Library Names-Footnote-1597985 +Ref: Library Names-Footnote-2598205 +Node: General Functions598291 +Node: Strtonum Function599319 +Node: Assert Function602099 +Node: Round Function605425 +Node: Cliff Random Function606966 +Node: Ordinal Functions607982 +Ref: Ordinal Functions-Footnote-1611059 +Ref: Ordinal Functions-Footnote-2611311 +Node: Join Function611522 +Ref: Join Function-Footnote-1613293 +Node: Getlocaltime Function613493 +Node: Readfile Function617229 +Node: Data File Management619068 +Node: Filetrans Function619700 +Node: Rewind Function623769 +Node: File Checking625327 +Ref: File Checking-Footnote-1626459 +Node: Empty Files626660 +Node: Ignoring Assigns628639 +Node: Getopt Function630193 +Ref: Getopt Function-Footnote-1641496 +Node: Passwd Functions641699 +Ref: Passwd Functions-Footnote-1650678 +Node: Group Functions650766 +Ref: Group Functions-Footnote-1658707 +Node: Walking Arrays658920 +Node: Library Functions Summary660523 +Node: Library exercises661911 +Node: Sample Programs663191 +Node: Running Examples663961 +Node: Clones664689 +Node: Cut Program665913 +Node: Egrep Program675781 +Ref: Egrep Program-Footnote-1683752 +Node: Id Program683862 +Node: Split Program687526 +Ref: Split Program-Footnote-1691064 +Node: Tee Program691192 +Node: Uniq Program693999 +Node: Wc Program701429 +Ref: Wc Program-Footnote-1705694 +Node: Miscellaneous Programs705786 +Node: Dupword Program706999 +Node: Alarm Program709030 +Node: Translate Program713844 +Ref: Translate Program-Footnote-1718235 +Ref: Translate Program-Footnote-2718505 +Node: Labels Program718639 +Ref: Labels Program-Footnote-1722010 +Node: Word Sorting722094 +Node: History Sorting726137 +Node: Extract Program727973 +Node: Simple Sed735509 +Node: Igawk Program738571 +Ref: Igawk Program-Footnote-1752882 +Ref: Igawk Program-Footnote-2753083 +Node: Anagram Program753221 +Node: Signature Program756289 +Node: Programs Summary757536 +Node: Programs Exercises758751 +Node: Advanced Features762402 +Node: Nondecimal Data764350 +Node: Array Sorting765927 +Node: Controlling Array Traversal766624 +Node: Array Sorting Functions774904 +Ref: Array Sorting Functions-Footnote-1778811 +Node: Two-way I/O779005 +Ref: Two-way I/O-Footnote-1784521 +Node: TCP/IP Networking784603 +Node: Profiling787447 +Node: Advanced Features Summary794998 +Node: Internationalization796862 +Node: I18N and L10N798342 +Node: Explaining gettext799028 +Ref: Explaining gettext-Footnote-1804168 +Ref: Explaining gettext-Footnote-2804352 +Node: Programmer i18n804517 +Node: Translator i18n808742 +Node: String Extraction809536 +Ref: String Extraction-Footnote-1810497 +Node: Printf Ordering810583 +Ref: Printf Ordering-Footnote-1813365 +Node: I18N Portability813429 +Ref: I18N Portability-Footnote-1815878 +Node: I18N Example815941 +Ref: I18N Example-Footnote-1818663 +Node: Gawk I18N818735 +Node: I18N Summary819373 +Node: Debugger820712 +Node: Debugging821734 +Node: Debugging Concepts822175 +Node: Debugging Terms824031 +Node: Awk Debugging826628 +Node: Sample Debugging Session827520 +Node: Debugger Invocation828040 +Node: Finding The Bug829373 +Node: List of Debugger Commands835855 +Node: Breakpoint Control837187 +Node: Debugger Execution Control840851 +Node: Viewing And Changing Data844211 +Node: Execution Stack847569 +Node: Debugger Info849082 +Node: Miscellaneous Debugger Commands853076 +Node: Readline Support858260 +Node: Limitations859152 +Node: Debugging Summary861426 +Node: Arbitrary Precision Arithmetic862590 +Node: Computer Arithmetic863919 +Ref: Computer Arithmetic-Footnote-1868306 +Node: Math Definitions868363 +Ref: table-ieee-formats871247 +Node: MPFR features871751 +Node: FP Math Caution873393 +Ref: FP Math Caution-Footnote-1874434 +Node: Inexactness of computations874803 +Node: Inexact representation875751 +Node: Comparing FP Values877106 +Node: Errors accumulate878070 +Node: Getting Accuracy879503 +Node: Try To Round882162 +Node: Setting precision883061 +Ref: table-predefined-precision-strings883743 +Node: Setting the rounding mode885536 +Ref: table-gawk-rounding-modes885900 +Ref: Setting the rounding mode-Footnote-1889354 +Node: Arbitrary Precision Integers889533 +Ref: Arbitrary Precision Integers-Footnote-1893328 +Node: POSIX Floating Point Problems893477 +Ref: POSIX Floating Point Problems-Footnote-1897353 +Node: Floating point summary897391 +Node: Dynamic Extensions899608 +Node: Extension Intro901160 +Node: Plugin License902425 +Node: Extension Mechanism Outline903110 +Ref: figure-load-extension903534 +Ref: figure-load-new-function905019 +Ref: figure-call-new-function906021 +Node: Extension API Description908005 +Node: Extension API Functions Introduction909455 +Node: General Data Types914320 +Ref: General Data Types-Footnote-1920013 +Node: Requesting Values920312 +Ref: table-value-types-returned921049 +Node: Memory Allocation Functions922007 +Ref: Memory Allocation Functions-Footnote-1924754 +Node: Constructor Functions924850 +Node: Registration Functions926608 +Node: Extension Functions927293 +Node: Exit Callback Functions929595 +Node: Extension Version String930844 +Node: Input Parsers931494 +Node: Output Wrappers941308 +Node: Two-way processors945824 +Node: Printing Messages948028 +Ref: Printing Messages-Footnote-1949105 +Node: Updating `ERRNO'949257 +Node: Accessing Parameters949996 +Node: Symbol Table Access951226 +Node: Symbol table by name951740 +Node: Symbol table by cookie953716 +Ref: Symbol table by cookie-Footnote-1957849 +Node: Cached values957912 +Ref: Cached values-Footnote-1961416 +Node: Array Manipulation961507 +Ref: Array Manipulation-Footnote-1962605 +Node: Array Data Types962644 +Ref: Array Data Types-Footnote-1965347 +Node: Array Functions965439 +Node: Flattening Arrays969313 +Node: Creating Arrays976165 +Node: Extension API Variables980896 +Node: Extension Versioning981532 +Node: Extension API Informational Variables983433 +Node: Extension API Boilerplate984519 +Node: Finding Extensions988323 +Node: Extension Example988883 +Node: Internal File Description989613 +Node: Internal File Ops993704 +Ref: Internal File Ops-Footnote-11005136 +Node: Using Internal File Ops1005276 +Ref: Using Internal File Ops-Footnote-11007623 +Node: Extension Samples1007891 +Node: Extension Sample File Functions1009415 +Node: Extension Sample Fnmatch1016983 +Node: Extension Sample Fork1018465 +Node: Extension Sample Inplace1019678 +Node: Extension Sample Ord1021353 +Node: Extension Sample Readdir1022189 +Ref: table-readdir-file-types1023045 +Node: Extension Sample Revout1023844 +Node: Extension Sample Rev2way1024435 +Node: Extension Sample Read write array1025176 +Node: Extension Sample Readfile1027055 +Node: Extension Sample API Tests1028155 +Node: Extension Sample Time1028680 +Node: gawkextlib1029995 +Node: Extension summary1032808 +Node: Extension Exercises1036501 +Node: Language History1037223 +Node: V7/SVR3.11038866 +Node: SVR41041186 +Node: POSIX1042628 +Node: BTL1044014 +Node: POSIX/GNU1044748 +Node: Feature History1050491 +Node: Common Extensions1063621 +Node: Ranges and Locales1064933 +Ref: Ranges and Locales-Footnote-11069550 +Ref: Ranges and Locales-Footnote-21069577 +Ref: Ranges and Locales-Footnote-31069811 +Node: Contributors1070032 +Node: History summary1075457 +Node: Installation1076826 +Node: Gawk Distribution1077777 +Node: Getting1078261 +Node: Extracting1079085 +Node: Distribution contents1080727 +Node: Unix Installation1086497 +Node: Quick Installation1087114 +Node: Additional Configuration Options1089556 +Node: Configuration Philosophy1091294 +Node: Non-Unix Installation1093645 +Node: PC Installation1094103 +Node: PC Binary Installation1095414 +Node: PC Compiling1097262 +Ref: PC Compiling-Footnote-11100261 +Node: PC Testing1100366 +Node: PC Using1101542 +Node: Cygwin1105700 +Node: MSYS1106509 +Node: VMS Installation1107023 +Node: VMS Compilation1107819 +Ref: VMS Compilation-Footnote-11109041 +Node: VMS Dynamic Extensions1109099 +Node: VMS Installation Details1110472 +Node: VMS Running1112724 +Node: VMS GNV1115558 +Node: VMS Old Gawk1116281 +Node: Bugs1116751 +Node: Other Versions1120755 +Node: Installation summary1127010 +Node: Notes1128066 +Node: Compatibility Mode1128931 +Node: Additions1129713 +Node: Accessing The Source1130638 +Node: Adding Code1132074 +Node: New Ports1138252 +Node: Derived Files1142733 +Ref: Derived Files-Footnote-11147814 +Ref: Derived Files-Footnote-21147848 +Ref: Derived Files-Footnote-31148444 +Node: Future Extensions1148558 +Node: Implementation Limitations1149164 +Node: Extension Design1150412 +Node: Old Extension Problems1151566 +Ref: Old Extension Problems-Footnote-11153083 +Node: Extension New Mechanism Goals1153140 +Ref: Extension New Mechanism Goals-Footnote-11156500 +Node: Extension Other Design Decisions1156689 +Node: Extension Future Growth1158795 +Node: Old Extension Mechanism1159631 +Node: Notes summary1161393 +Node: Basic Concepts1162579 +Node: Basic High Level1163260 +Ref: figure-general-flow1163532 +Ref: figure-process-flow1164131 +Ref: Basic High Level-Footnote-11167360 +Node: Basic Data Typing1167545 +Node: Glossary1170873 +Node: Copying1196025 +Node: GNU Free Documentation License1233581 +Node: Index1258717 End Tag Table |