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 8f91f3c0..878b1584 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -2568,10 +2568,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' @@ -2955,11 +2953,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. @@ -10161,10 +10154,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 @@ -11677,6 +11678,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 @@ -19599,8 +19615,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 @@ -22063,6 +22079,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 @@ -26992,7 +27031,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 @@ -27034,11 +27075,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 @@ -30971,20 +31011,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) @@ -30992,9 +31032,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) @@ -31007,26 +31047,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) @@ -31298,7 +31338,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) @@ -31704,7 +31744,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 25) * ctime() user-defined function: Function Example. (line 73) * currency symbols, localization: Explaining gettext. (line 104) @@ -31739,9 +31779,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) @@ -31887,7 +31927,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) @@ -31926,12 +31966,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) @@ -31954,7 +31994,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) @@ -31964,7 +32004,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. @@ -31972,7 +32012,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. @@ -31988,6 +32028,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) @@ -32012,8 +32053,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) @@ -32069,13 +32110,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) @@ -32108,10 +32149,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) @@ -32129,7 +32170,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) @@ -32208,7 +32249,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) @@ -32276,9 +32317,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. @@ -32315,7 +32356,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. @@ -32328,7 +32369,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) @@ -32378,7 +32419,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) @@ -32399,13 +32440,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) @@ -32416,7 +32457,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. @@ -32447,7 +32488,7 @@ Index * gawk, OS/2 version of: PC Using. (line 16) * 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 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. @@ -32455,18 +32496,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) @@ -32548,7 +32589,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. @@ -32647,7 +32688,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) @@ -32777,7 +32818,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) @@ -32791,14 +32832,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) @@ -32839,7 +32880,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) @@ -32852,7 +32893,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) @@ -32875,7 +32916,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) @@ -32904,7 +32945,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. @@ -32913,9 +32954,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. @@ -33030,7 +33071,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) @@ -33097,7 +33138,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) @@ -33146,11 +33187,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) @@ -33193,24 +33234,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 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 128) +* PROCINFO array: Auto-set. (line 136) * 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 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) * programming conventions, --non-decimal-data option: Nondecimal Data. (line 36) @@ -33254,12 +33295,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) @@ -33329,7 +33370,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) @@ -33369,7 +33410,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) @@ -33387,7 +33428,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) @@ -33395,9 +33436,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) @@ -33410,14 +33451,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) @@ -33437,7 +33478,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) @@ -33502,7 +33543,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. @@ -33539,8 +33580,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) @@ -33590,10 +33631,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) @@ -33665,9 +33706,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) @@ -33845,10 +33886,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) @@ -33882,7 +33923,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) @@ -33975,510 +34016,510 @@ Node: Intro Summary110175 Node: Invoking Gawk110941 Node: Command Line112456 Node: Options113247 -Ref: Options-Footnote-1129076 -Node: Other Arguments129101 -Node: Naming Standard Input131763 -Node: Environment Variables132856 -Node: AWKPATH Variable133414 -Ref: AWKPATH Variable-Footnote-1136286 -Ref: AWKPATH Variable-Footnote-2136331 -Node: AWKLIBPATH Variable136591 -Node: Other Environment Variables137350 -Node: Exit Status141007 -Node: Include Files141682 -Node: Loading Shared Libraries145260 -Node: Obsolete146644 -Node: Undocumented147341 -Node: Invoking Summary147608 -Node: Regexp149208 -Node: Regexp Usage150658 -Node: Escape Sequences152691 -Node: Regexp Operators158358 -Ref: Regexp Operators-Footnote-1165838 -Ref: Regexp Operators-Footnote-2165985 -Node: Bracket Expressions166083 -Ref: table-char-classes167973 -Node: GNU Regexp Operators170913 -Node: Case-sensitivity174636 -Ref: Case-sensitivity-Footnote-1177528 -Ref: Case-sensitivity-Footnote-2177763 -Node: Leftmost Longest177871 -Node: Computed Regexps179072 -Node: Regexp Summary182444 -Node: Reading Files183913 -Node: Records186005 -Node: awk split records186748 -Node: gawk split records191606 -Ref: gawk split records-Footnote-1196127 -Node: Fields196164 -Ref: Fields-Footnote-1199128 -Node: Nonconstant Fields199214 -Ref: Nonconstant Fields-Footnote-1201444 -Node: Changing Fields201646 -Node: Field Separators207600 -Node: Default Field Splitting210302 -Node: Regexp Field Splitting211419 -Node: Single Character Fields214760 -Node: Command Line Field Separator215819 -Node: Full Line Fields219161 -Ref: Full Line Fields-Footnote-1219669 -Node: Field Splitting Summary219715 -Ref: Field Splitting Summary-Footnote-1222814 -Node: Constant Size222915 -Node: Splitting By Content227522 -Ref: Splitting By Content-Footnote-1231272 -Node: Multiple Line231312 -Ref: Multiple Line-Footnote-1237168 -Node: Getline237347 -Node: Plain Getline239563 -Node: Getline/Variable241658 -Node: Getline/File242805 -Node: Getline/Variable/File244189 -Ref: Getline/Variable/File-Footnote-1245788 -Node: Getline/Pipe245875 -Node: Getline/Variable/Pipe248574 -Node: Getline/Coprocess249681 -Node: Getline/Variable/Coprocess250933 -Node: Getline Notes251670 -Node: Getline Summary254474 -Ref: table-getline-variants254882 -Node: Read Timeout255794 -Ref: Read Timeout-Footnote-1259621 -Node: Command-line directories259679 -Node: Input Summary260583 -Node: Input Exercises263720 -Node: Printing264453 -Node: Print266175 -Node: Print Examples267516 -Node: Output Separators270295 -Node: OFMT272311 -Node: Printf273669 -Node: Basic Printf274575 -Node: Control Letters276114 -Node: Format Modifiers280105 -Node: Printf Examples286132 -Node: Redirection288596 -Node: Special Files295568 -Node: Special FD296099 -Ref: Special FD-Footnote-1299696 -Node: Special Network299770 -Node: Special Caveats300620 -Node: Close Files And Pipes301416 -Ref: Close Files And Pipes-Footnote-1308577 -Ref: Close Files And Pipes-Footnote-2308725 -Node: Output Summary308875 -Node: Output exercises309872 -Node: Expressions310552 -Node: Values311737 -Node: Constants312413 -Node: Scalar Constants313093 -Ref: Scalar Constants-Footnote-1313952 -Node: Nondecimal-numbers314202 -Node: Regexp Constants317202 -Node: Using Constant Regexps317677 -Node: Variables320749 -Node: Using Variables321404 -Node: Assignment Options323128 -Node: Conversion325003 -Node: Strings And Numbers325527 -Ref: Strings And Numbers-Footnote-1328589 -Node: Locale influences conversions328698 -Ref: table-locale-affects331415 -Node: All Operators332003 -Node: Arithmetic Ops332633 -Node: Concatenation335138 -Ref: Concatenation-Footnote-1337957 -Node: Assignment Ops338077 -Ref: table-assign-ops343060 -Node: Increment Ops344377 -Node: Truth Values and Conditions347815 -Node: Truth Values348898 -Node: Typing and Comparison349947 -Node: Variable Typing350740 -Node: Comparison Operators354390 -Ref: table-relational-ops354800 -Node: POSIX String Comparison358350 -Ref: POSIX String Comparison-Footnote-1359434 -Node: Boolean Ops359572 -Ref: Boolean Ops-Footnote-1363642 -Node: Conditional Exp363733 -Node: Function Calls365460 -Node: Precedence369340 -Node: Locales373009 -Node: Expressions Summary374640 -Node: Patterns and Actions377181 -Node: Pattern Overview378297 -Node: Regexp Patterns379974 -Node: Expression Patterns380517 -Node: Ranges384298 -Node: BEGIN/END387404 -Node: Using BEGIN/END388166 -Ref: Using BEGIN/END-Footnote-1390902 -Node: I/O And BEGIN/END391008 -Node: BEGINFILE/ENDFILE393293 -Node: Empty396224 -Node: Using Shell Variables396541 -Node: Action Overview398824 -Node: Statements401151 -Node: If Statement402999 -Node: While Statement404497 -Node: Do Statement406541 -Node: For Statement407697 -Node: Switch Statement410849 -Node: Break Statement412952 -Node: Continue Statement415007 -Node: Next Statement416800 -Node: Nextfile Statement419190 -Node: Exit Statement421845 -Node: Built-in Variables424249 -Node: User-modified425376 -Ref: User-modified-Footnote-1433065 -Node: Auto-set433127 -Ref: Auto-set-Footnote-1445709 -Ref: Auto-set-Footnote-2445914 -Node: ARGC and ARGV445970 -Node: Pattern Action Summary449824 -Node: Arrays452047 -Node: Array Basics453596 -Node: Array Intro454422 -Ref: figure-array-elements456395 -Node: Reference to Elements458802 -Node: Assigning Elements461075 -Node: Array Example461566 -Node: Scanning an Array463298 -Node: Controlling Scanning466313 -Ref: Controlling Scanning-Footnote-1471486 -Node: Delete471802 -Ref: Delete-Footnote-1474567 -Node: Numeric Array Subscripts474624 -Node: Uninitialized Subscripts476807 -Node: Multidimensional478432 -Node: Multiscanning481525 -Node: Arrays of Arrays483114 -Node: Arrays Summary487777 -Node: Functions489882 -Node: Built-in490755 -Node: Calling Built-in491833 -Node: Numeric Functions493821 -Ref: Numeric Functions-Footnote-1497763 -Ref: Numeric Functions-Footnote-2498120 -Ref: Numeric Functions-Footnote-3498168 -Node: String Functions498437 -Ref: String Functions-Footnote-1521448 -Ref: String Functions-Footnote-2521577 -Ref: String Functions-Footnote-3521825 -Node: Gory Details521912 -Ref: table-sub-escapes523699 -Ref: table-sub-proposed525219 -Ref: table-posix-sub526583 -Ref: table-gensub-escapes528123 -Ref: Gory Details-Footnote-1529299 -Node: I/O Functions529450 -Ref: I/O Functions-Footnote-1536573 -Node: Time Functions536720 -Ref: Time Functions-Footnote-1547184 -Ref: Time Functions-Footnote-2547252 -Ref: Time Functions-Footnote-3547410 -Ref: Time Functions-Footnote-4547521 -Ref: Time Functions-Footnote-5547633 -Ref: Time Functions-Footnote-6547860 -Node: Bitwise Functions548126 -Ref: table-bitwise-ops548688 -Ref: Bitwise Functions-Footnote-1552933 -Node: Type Functions553117 -Node: I18N Functions554259 -Node: User-defined555904 -Node: Definition Syntax556708 -Ref: Definition Syntax-Footnote-1561887 -Node: Function Example561956 -Ref: Function Example-Footnote-1564520 -Node: Function Caveats564542 -Node: Calling A Function565060 -Node: Variable Scope566015 -Node: Pass By Value/Reference569003 -Node: Return Statement572513 -Node: Dynamic Typing575497 -Node: Indirect Calls576426 -Node: Functions Summary586139 -Node: Library Functions588678 -Ref: Library Functions-Footnote-1592296 -Ref: Library Functions-Footnote-2592439 -Node: Library Names592610 -Ref: Library Names-Footnote-1596083 -Ref: Library Names-Footnote-2596303 -Node: General Functions596389 -Node: Strtonum Function597417 -Node: Assert Function600197 -Node: Round Function603523 -Node: Cliff Random Function605064 -Node: Ordinal Functions606080 -Ref: Ordinal Functions-Footnote-1609157 -Ref: Ordinal Functions-Footnote-2609409 -Node: Join Function609620 -Ref: Join Function-Footnote-1611391 -Node: Getlocaltime Function611591 -Node: Readfile Function615327 -Node: Data File Management617166 -Node: Filetrans Function617798 -Node: Rewind Function621867 -Node: File Checking623425 -Ref: File Checking-Footnote-1624557 -Node: Empty Files624758 -Node: Ignoring Assigns626737 -Node: Getopt Function628291 -Ref: Getopt Function-Footnote-1639594 -Node: Passwd Functions639797 -Ref: Passwd Functions-Footnote-1648776 -Node: Group Functions648864 -Ref: Group Functions-Footnote-1656805 -Node: Walking Arrays657018 -Node: Library Functions Summary658621 -Node: Library exercises660009 -Node: Sample Programs661289 -Node: Running Examples662059 -Node: Clones662787 -Node: Cut Program664011 -Node: Egrep Program673879 -Ref: Egrep Program-Footnote-1681850 -Node: Id Program681960 -Node: Split Program685624 -Ref: Split Program-Footnote-1689162 -Node: Tee Program689290 -Node: Uniq Program692097 -Node: Wc Program699527 -Ref: Wc Program-Footnote-1703792 -Node: Miscellaneous Programs703884 -Node: Dupword Program705097 -Node: Alarm Program707128 -Node: Translate Program711942 -Ref: Translate Program-Footnote-1716333 -Ref: Translate Program-Footnote-2716603 -Node: Labels Program716737 -Ref: Labels Program-Footnote-1720108 -Node: Word Sorting720192 -Node: History Sorting724235 -Node: Extract Program726071 -Node: Simple Sed733607 -Node: Igawk Program736669 -Ref: Igawk Program-Footnote-1750980 -Ref: Igawk Program-Footnote-2751181 -Node: Anagram Program751319 -Node: Signature Program754387 -Node: Programs Summary755634 -Node: Programs Exercises756849 -Node: Advanced Features760500 -Node: Nondecimal Data762448 -Node: Array Sorting764025 -Node: Controlling Array Traversal764722 -Node: Array Sorting Functions773002 -Ref: Array Sorting Functions-Footnote-1776909 -Node: Two-way I/O777103 -Ref: Two-way I/O-Footnote-1782047 -Ref: Two-way I/O-Footnote-2782226 -Node: TCP/IP Networking782308 -Node: Profiling785153 -Node: Advanced Features Summary792695 -Node: Internationalization794559 -Node: I18N and L10N796039 -Node: Explaining gettext796725 -Ref: Explaining gettext-Footnote-1801865 -Ref: Explaining gettext-Footnote-2802049 -Node: Programmer i18n802214 -Node: Translator i18n806439 -Node: String Extraction807233 -Ref: String Extraction-Footnote-1808194 -Node: Printf Ordering808280 -Ref: Printf Ordering-Footnote-1811062 -Node: I18N Portability811126 -Ref: I18N Portability-Footnote-1813575 -Node: I18N Example813638 -Ref: I18N Example-Footnote-1816360 -Node: Gawk I18N816432 -Node: I18N Summary817070 -Node: Debugger818409 -Node: Debugging819431 -Node: Debugging Concepts819872 -Node: Debugging Terms821728 -Node: Awk Debugging824325 -Node: Sample Debugging Session825217 -Node: Debugger Invocation825737 -Node: Finding The Bug827070 -Node: List of Debugger Commands833552 -Node: Breakpoint Control834884 -Node: Debugger Execution Control838548 -Node: Viewing And Changing Data841908 -Node: Execution Stack845266 -Node: Debugger Info846779 -Node: Miscellaneous Debugger Commands850773 -Node: Readline Support855957 -Node: Limitations856849 -Node: Debugging Summary859123 -Node: Arbitrary Precision Arithmetic860287 -Node: Computer Arithmetic861774 -Ref: Computer Arithmetic-Footnote-1866161 -Node: Math Definitions866218 -Ref: table-ieee-formats869507 -Ref: Math Definitions-Footnote-1870047 -Node: MPFR features870150 -Node: FP Math Caution871792 -Ref: FP Math Caution-Footnote-1872833 -Node: Inexactness of computations873202 -Node: Inexact representation874150 -Node: Comparing FP Values875505 -Node: Errors accumulate876469 -Node: Getting Accuracy877902 -Node: Try To Round880561 -Node: Setting precision881460 -Ref: table-predefined-precision-strings882142 -Node: Setting the rounding mode883935 -Ref: table-gawk-rounding-modes884299 -Ref: Setting the rounding mode-Footnote-1887753 -Node: Arbitrary Precision Integers887932 -Ref: Arbitrary Precision Integers-Footnote-1890935 -Node: POSIX Floating Point Problems891084 -Ref: POSIX Floating Point Problems-Footnote-1894960 -Node: Floating point summary894998 -Node: Dynamic Extensions897215 -Node: Extension Intro898767 -Node: Plugin License900032 -Node: Extension Mechanism Outline900717 -Ref: figure-load-extension901141 -Ref: figure-load-new-function902626 -Ref: figure-call-new-function903628 -Node: Extension API Description905612 -Node: Extension API Functions Introduction907062 -Node: General Data Types911927 -Ref: General Data Types-Footnote-1917620 -Node: Requesting Values917919 -Ref: table-value-types-returned918656 -Node: Memory Allocation Functions919614 -Ref: Memory Allocation Functions-Footnote-1922361 -Node: Constructor Functions922457 -Node: Registration Functions924215 -Node: Extension Functions924900 -Node: Exit Callback Functions927202 -Node: Extension Version String928451 -Node: Input Parsers929101 -Node: Output Wrappers938915 -Node: Two-way processors943431 -Node: Printing Messages945635 -Ref: Printing Messages-Footnote-1946712 -Node: Updating `ERRNO'946864 -Node: Accessing Parameters947603 -Node: Symbol Table Access948833 -Node: Symbol table by name949347 -Node: Symbol table by cookie951323 -Ref: Symbol table by cookie-Footnote-1955456 -Node: Cached values955519 -Ref: Cached values-Footnote-1959023 -Node: Array Manipulation959114 -Ref: Array Manipulation-Footnote-1960212 -Node: Array Data Types960251 -Ref: Array Data Types-Footnote-1962954 -Node: Array Functions963046 -Node: Flattening Arrays966920 -Node: Creating Arrays973772 -Node: Extension API Variables978503 -Node: Extension Versioning979139 -Node: Extension API Informational Variables981040 -Node: Extension API Boilerplate982126 -Node: Finding Extensions985930 -Node: Extension Example986490 -Node: Internal File Description987220 -Node: Internal File Ops991311 -Ref: Internal File Ops-Footnote-11002743 -Node: Using Internal File Ops1002883 -Ref: Using Internal File Ops-Footnote-11005230 -Node: Extension Samples1005498 -Node: Extension Sample File Functions1007022 -Node: Extension Sample Fnmatch1014590 -Node: Extension Sample Fork1016072 -Node: Extension Sample Inplace1017285 -Node: Extension Sample Ord1018960 -Node: Extension Sample Readdir1019796 -Ref: table-readdir-file-types1020652 -Node: Extension Sample Revout1021451 -Node: Extension Sample Rev2way1022042 -Node: Extension Sample Read write array1022783 -Node: Extension Sample Readfile1024662 -Node: Extension Sample API Tests1025762 -Node: Extension Sample Time1026287 -Node: gawkextlib1027602 -Node: Extension summary1030415 -Node: Extension Exercises1034108 -Node: Language History1034830 -Node: V7/SVR3.11036473 -Node: SVR41038793 -Node: POSIX1040235 -Node: BTL1041621 -Node: POSIX/GNU1042355 -Node: Feature History1048098 -Node: Common Extensions1061228 -Node: Ranges and Locales1062540 -Ref: Ranges and Locales-Footnote-11067157 -Ref: Ranges and Locales-Footnote-21067184 -Ref: Ranges and Locales-Footnote-31067418 -Node: Contributors1067639 -Node: History summary1073064 -Node: Installation1074433 -Node: Gawk Distribution1075384 -Node: Getting1075868 -Node: Extracting1076692 -Node: Distribution contents1078334 -Node: Unix Installation1084051 -Node: Quick Installation1084668 -Node: Additional Configuration Options1087110 -Node: Configuration Philosophy1088848 -Node: Non-Unix Installation1091199 -Node: PC Installation1091657 -Node: PC Binary Installation1092968 -Node: PC Compiling1094816 -Ref: PC Compiling-Footnote-11097815 -Node: PC Testing1097920 -Node: PC Using1099096 -Node: Cygwin1103254 -Node: MSYS1104063 -Node: VMS Installation1104577 -Node: VMS Compilation1105373 -Ref: VMS Compilation-Footnote-11106595 -Node: VMS Dynamic Extensions1106653 -Node: VMS Installation Details1108026 -Node: VMS Running1110278 -Node: VMS GNV1113112 -Node: VMS Old Gawk1113835 -Node: Bugs1114305 -Node: Other Versions1118309 -Node: Installation summary1124564 -Node: Notes1125620 -Node: Compatibility Mode1126485 -Node: Additions1127267 -Node: Accessing The Source1128192 -Node: Adding Code1129628 -Node: New Ports1135806 -Node: Derived Files1140287 -Ref: Derived Files-Footnote-11145368 -Ref: Derived Files-Footnote-21145402 -Ref: Derived Files-Footnote-31145998 -Node: Future Extensions1146112 -Node: Implementation Limitations1146718 -Node: Extension Design1147966 -Node: Old Extension Problems1149120 -Ref: Old Extension Problems-Footnote-11150637 -Node: Extension New Mechanism Goals1150694 -Ref: Extension New Mechanism Goals-Footnote-11154054 -Node: Extension Other Design Decisions1154243 -Node: Extension Future Growth1156349 -Node: Old Extension Mechanism1157185 -Node: Notes summary1158947 -Node: Basic Concepts1160133 -Node: Basic High Level1160814 -Ref: figure-general-flow1161086 -Ref: figure-process-flow1161685 -Ref: Basic High Level-Footnote-11164914 -Node: Basic Data Typing1165099 -Node: Glossary1168427 -Node: Copying1193579 -Node: GNU Free Documentation License1231135 -Node: Index1256271 +Ref: Options-Footnote-1128947 +Node: Other Arguments128972 +Node: Naming Standard Input131634 +Node: Environment Variables132727 +Node: AWKPATH Variable133285 +Ref: AWKPATH Variable-Footnote-1136157 +Ref: AWKPATH Variable-Footnote-2136202 +Node: AWKLIBPATH Variable136462 +Node: Other Environment Variables137221 +Node: Exit Status140673 +Node: Include Files141348 +Node: Loading Shared Libraries144926 +Node: Obsolete146310 +Node: Undocumented147007 +Node: Invoking Summary147274 +Node: Regexp148874 +Node: Regexp Usage150324 +Node: Escape Sequences152357 +Node: Regexp Operators158024 +Ref: Regexp Operators-Footnote-1165504 +Ref: Regexp Operators-Footnote-2165651 +Node: Bracket Expressions165749 +Ref: table-char-classes167639 +Node: GNU Regexp Operators170579 +Node: Case-sensitivity174302 +Ref: Case-sensitivity-Footnote-1177194 +Ref: Case-sensitivity-Footnote-2177429 +Node: Leftmost Longest177537 +Node: Computed Regexps178738 +Node: Regexp Summary182110 +Node: Reading Files183579 +Node: Records185671 +Node: awk split records186414 +Node: gawk split records191272 +Ref: gawk split records-Footnote-1195793 +Node: Fields195830 +Ref: Fields-Footnote-1198794 +Node: Nonconstant Fields198880 +Ref: Nonconstant Fields-Footnote-1201110 +Node: Changing Fields201312 +Node: Field Separators207266 +Node: Default Field Splitting209968 +Node: Regexp Field Splitting211085 +Node: Single Character Fields214426 +Node: Command Line Field Separator215485 +Node: Full Line Fields218827 +Ref: Full Line Fields-Footnote-1219335 +Node: Field Splitting Summary219381 +Ref: Field Splitting Summary-Footnote-1222480 +Node: Constant Size222581 +Node: Splitting By Content227188 +Ref: Splitting By Content-Footnote-1230938 +Node: Multiple Line230978 +Ref: Multiple Line-Footnote-1236834 +Node: Getline237013 +Node: Plain Getline239229 +Node: Getline/Variable241324 +Node: Getline/File242471 +Node: Getline/Variable/File243855 +Ref: Getline/Variable/File-Footnote-1245454 +Node: Getline/Pipe245541 +Node: Getline/Variable/Pipe248240 +Node: Getline/Coprocess249347 +Node: Getline/Variable/Coprocess250599 +Node: Getline Notes251336 +Node: Getline Summary254140 +Ref: table-getline-variants254548 +Node: Read Timeout255460 +Ref: Read Timeout-Footnote-1259287 +Node: Command-line directories259345 +Node: Input Summary260249 +Node: Input Exercises263386 +Node: Printing264119 +Node: Print265841 +Node: Print Examples267182 +Node: Output Separators269961 +Node: OFMT271977 +Node: Printf273335 +Node: Basic Printf274241 +Node: Control Letters275780 +Node: Format Modifiers279771 +Node: Printf Examples285798 +Node: Redirection288262 +Node: Special Files295234 +Node: Special FD295765 +Ref: Special FD-Footnote-1299362 +Node: Special Network299436 +Node: Special Caveats300286 +Node: Close Files And Pipes301082 +Ref: Close Files And Pipes-Footnote-1308243 +Ref: Close Files And Pipes-Footnote-2308391 +Node: Output Summary308541 +Node: Output exercises309538 +Node: Expressions310218 +Node: Values311403 +Node: Constants312079 +Node: Scalar Constants312759 +Ref: Scalar Constants-Footnote-1313618 +Node: Nondecimal-numbers313868 +Node: Regexp Constants316868 +Node: Using Constant Regexps317343 +Node: Variables320415 +Node: Using Variables321070 +Node: Assignment Options322794 +Node: Conversion324669 +Node: Strings And Numbers325193 +Ref: Strings And Numbers-Footnote-1328255 +Node: Locale influences conversions328364 +Ref: table-locale-affects331081 +Node: All Operators331669 +Node: Arithmetic Ops332299 +Node: Concatenation334804 +Ref: Concatenation-Footnote-1337623 +Node: Assignment Ops337743 +Ref: table-assign-ops342726 +Node: Increment Ops344043 +Node: Truth Values and Conditions347481 +Node: Truth Values348564 +Node: Typing and Comparison349613 +Node: Variable Typing350406 +Node: Comparison Operators354056 +Ref: table-relational-ops354466 +Node: POSIX String Comparison358016 +Ref: POSIX String Comparison-Footnote-1359100 +Node: Boolean Ops359238 +Ref: Boolean Ops-Footnote-1363308 +Node: Conditional Exp363399 +Node: Function Calls365126 +Node: Precedence369006 +Node: Locales372675 +Node: Expressions Summary374306 +Node: Patterns and Actions376847 +Node: Pattern Overview377963 +Node: Regexp Patterns379640 +Node: Expression Patterns380183 +Node: Ranges383964 +Node: BEGIN/END387070 +Node: Using BEGIN/END387832 +Ref: Using BEGIN/END-Footnote-1390568 +Node: I/O And BEGIN/END390674 +Node: BEGINFILE/ENDFILE392959 +Node: Empty395890 +Node: Using Shell Variables396207 +Node: Action Overview398490 +Node: Statements400817 +Node: If Statement402665 +Node: While Statement404163 +Node: Do Statement406207 +Node: For Statement407363 +Node: Switch Statement410515 +Node: Break Statement412618 +Node: Continue Statement414673 +Node: Next Statement416466 +Node: Nextfile Statement418856 +Node: Exit Statement421511 +Node: Built-in Variables423915 +Node: User-modified425042 +Ref: User-modified-Footnote-1432731 +Node: Auto-set432793 +Ref: Auto-set-Footnote-1445712 +Ref: Auto-set-Footnote-2445917 +Node: ARGC and ARGV445973 +Node: Pattern Action Summary449827 +Node: Arrays452050 +Node: Array Basics453599 +Node: Array Intro454425 +Ref: figure-array-elements456398 +Node: Reference to Elements458805 +Node: Assigning Elements461078 +Node: Array Example461569 +Node: Scanning an Array463301 +Node: Controlling Scanning466316 +Ref: Controlling Scanning-Footnote-1471489 +Node: Delete471805 +Ref: Delete-Footnote-1474570 +Node: Numeric Array Subscripts474627 +Node: Uninitialized Subscripts476810 +Node: Multidimensional478435 +Node: Multiscanning481528 +Node: Arrays of Arrays483117 +Node: Arrays Summary487780 +Node: Functions489885 +Node: Built-in490758 +Node: Calling Built-in491836 +Node: Numeric Functions493824 +Ref: Numeric Functions-Footnote-1498568 +Ref: Numeric Functions-Footnote-2498925 +Ref: Numeric Functions-Footnote-3498973 +Node: String Functions499242 +Ref: String Functions-Footnote-1522253 +Ref: String Functions-Footnote-2522382 +Ref: String Functions-Footnote-3522630 +Node: Gory Details522717 +Ref: table-sub-escapes524504 +Ref: table-sub-proposed526024 +Ref: table-posix-sub527388 +Ref: table-gensub-escapes528928 +Ref: Gory Details-Footnote-1530104 +Node: I/O Functions530255 +Ref: I/O Functions-Footnote-1537378 +Node: Time Functions537525 +Ref: Time Functions-Footnote-1547989 +Ref: Time Functions-Footnote-2548057 +Ref: Time Functions-Footnote-3548215 +Ref: Time Functions-Footnote-4548326 +Ref: Time Functions-Footnote-5548438 +Ref: Time Functions-Footnote-6548665 +Node: Bitwise Functions548931 +Ref: table-bitwise-ops549493 +Ref: Bitwise Functions-Footnote-1553738 +Node: Type Functions553922 +Node: I18N Functions555064 +Node: User-defined556709 +Node: Definition Syntax557513 +Ref: Definition Syntax-Footnote-1562692 +Node: Function Example562761 +Ref: Function Example-Footnote-1565325 +Node: Function Caveats565347 +Node: Calling A Function565865 +Node: Variable Scope566820 +Node: Pass By Value/Reference569808 +Node: Return Statement573318 +Node: Dynamic Typing576302 +Node: Indirect Calls577231 +Node: Functions Summary586944 +Node: Library Functions589483 +Ref: Library Functions-Footnote-1593101 +Ref: Library Functions-Footnote-2593244 +Node: Library Names593415 +Ref: Library Names-Footnote-1596888 +Ref: Library Names-Footnote-2597108 +Node: General Functions597194 +Node: Strtonum Function598222 +Node: Assert Function601002 +Node: Round Function604328 +Node: Cliff Random Function605869 +Node: Ordinal Functions606885 +Ref: Ordinal Functions-Footnote-1609962 +Ref: Ordinal Functions-Footnote-2610214 +Node: Join Function610425 +Ref: Join Function-Footnote-1612196 +Node: Getlocaltime Function612396 +Node: Readfile Function616132 +Node: Data File Management617971 +Node: Filetrans Function618603 +Node: Rewind Function622672 +Node: File Checking624230 +Ref: File Checking-Footnote-1625362 +Node: Empty Files625563 +Node: Ignoring Assigns627542 +Node: Getopt Function629096 +Ref: Getopt Function-Footnote-1640399 +Node: Passwd Functions640602 +Ref: Passwd Functions-Footnote-1649581 +Node: Group Functions649669 +Ref: Group Functions-Footnote-1657610 +Node: Walking Arrays657823 +Node: Library Functions Summary659426 +Node: Library exercises660814 +Node: Sample Programs662094 +Node: Running Examples662864 +Node: Clones663592 +Node: Cut Program664816 +Node: Egrep Program674684 +Ref: Egrep Program-Footnote-1682655 +Node: Id Program682765 +Node: Split Program686429 +Ref: Split Program-Footnote-1689967 +Node: Tee Program690095 +Node: Uniq Program692902 +Node: Wc Program700332 +Ref: Wc Program-Footnote-1704597 +Node: Miscellaneous Programs704689 +Node: Dupword Program705902 +Node: Alarm Program707933 +Node: Translate Program712747 +Ref: Translate Program-Footnote-1717138 +Ref: Translate Program-Footnote-2717408 +Node: Labels Program717542 +Ref: Labels Program-Footnote-1720913 +Node: Word Sorting720997 +Node: History Sorting725040 +Node: Extract Program726876 +Node: Simple Sed734412 +Node: Igawk Program737474 +Ref: Igawk Program-Footnote-1751785 +Ref: Igawk Program-Footnote-2751986 +Node: Anagram Program752124 +Node: Signature Program755192 +Node: Programs Summary756439 +Node: Programs Exercises757654 +Node: Advanced Features761305 +Node: Nondecimal Data763253 +Node: Array Sorting764830 +Node: Controlling Array Traversal765527 +Node: Array Sorting Functions773807 +Ref: Array Sorting Functions-Footnote-1777714 +Node: Two-way I/O777908 +Ref: Two-way I/O-Footnote-1782852 +Ref: Two-way I/O-Footnote-2783031 +Node: TCP/IP Networking783113 +Node: Profiling785958 +Node: Advanced Features Summary793509 +Node: Internationalization795373 +Node: I18N and L10N796853 +Node: Explaining gettext797539 +Ref: Explaining gettext-Footnote-1802679 +Ref: Explaining gettext-Footnote-2802863 +Node: Programmer i18n803028 +Node: Translator i18n807253 +Node: String Extraction808047 +Ref: String Extraction-Footnote-1809008 +Node: Printf Ordering809094 +Ref: Printf Ordering-Footnote-1811876 +Node: I18N Portability811940 +Ref: I18N Portability-Footnote-1814389 +Node: I18N Example814452 +Ref: I18N Example-Footnote-1817174 +Node: Gawk I18N817246 +Node: I18N Summary817884 +Node: Debugger819223 +Node: Debugging820245 +Node: Debugging Concepts820686 +Node: Debugging Terms822542 +Node: Awk Debugging825139 +Node: Sample Debugging Session826031 +Node: Debugger Invocation826551 +Node: Finding The Bug827884 +Node: List of Debugger Commands834366 +Node: Breakpoint Control835698 +Node: Debugger Execution Control839362 +Node: Viewing And Changing Data842722 +Node: Execution Stack846080 +Node: Debugger Info847593 +Node: Miscellaneous Debugger Commands851587 +Node: Readline Support856771 +Node: Limitations857663 +Node: Debugging Summary859937 +Node: Arbitrary Precision Arithmetic861101 +Node: Computer Arithmetic862588 +Ref: Computer Arithmetic-Footnote-1866975 +Node: Math Definitions867032 +Ref: table-ieee-formats870321 +Ref: Math Definitions-Footnote-1870861 +Node: MPFR features870964 +Node: FP Math Caution872606 +Ref: FP Math Caution-Footnote-1873647 +Node: Inexactness of computations874016 +Node: Inexact representation874964 +Node: Comparing FP Values876319 +Node: Errors accumulate877283 +Node: Getting Accuracy878716 +Node: Try To Round881375 +Node: Setting precision882274 +Ref: table-predefined-precision-strings882956 +Node: Setting the rounding mode884749 +Ref: table-gawk-rounding-modes885113 +Ref: Setting the rounding mode-Footnote-1888567 +Node: Arbitrary Precision Integers888746 +Ref: Arbitrary Precision Integers-Footnote-1892541 +Node: POSIX Floating Point Problems892690 +Ref: POSIX Floating Point Problems-Footnote-1896566 +Node: Floating point summary896604 +Node: Dynamic Extensions898821 +Node: Extension Intro900373 +Node: Plugin License901638 +Node: Extension Mechanism Outline902323 +Ref: figure-load-extension902747 +Ref: figure-load-new-function904232 +Ref: figure-call-new-function905234 +Node: Extension API Description907218 +Node: Extension API Functions Introduction908668 +Node: General Data Types913533 +Ref: General Data Types-Footnote-1919226 +Node: Requesting Values919525 +Ref: table-value-types-returned920262 +Node: Memory Allocation Functions921220 +Ref: Memory Allocation Functions-Footnote-1923967 +Node: Constructor Functions924063 +Node: Registration Functions925821 +Node: Extension Functions926506 +Node: Exit Callback Functions928808 +Node: Extension Version String930057 +Node: Input Parsers930707 +Node: Output Wrappers940521 +Node: Two-way processors945037 +Node: Printing Messages947241 +Ref: Printing Messages-Footnote-1948318 +Node: Updating `ERRNO'948470 +Node: Accessing Parameters949209 +Node: Symbol Table Access950439 +Node: Symbol table by name950953 +Node: Symbol table by cookie952929 +Ref: Symbol table by cookie-Footnote-1957062 +Node: Cached values957125 +Ref: Cached values-Footnote-1960629 +Node: Array Manipulation960720 +Ref: Array Manipulation-Footnote-1961818 +Node: Array Data Types961857 +Ref: Array Data Types-Footnote-1964560 +Node: Array Functions964652 +Node: Flattening Arrays968526 +Node: Creating Arrays975378 +Node: Extension API Variables980109 +Node: Extension Versioning980745 +Node: Extension API Informational Variables982646 +Node: Extension API Boilerplate983732 +Node: Finding Extensions987536 +Node: Extension Example988096 +Node: Internal File Description988826 +Node: Internal File Ops992917 +Ref: Internal File Ops-Footnote-11004349 +Node: Using Internal File Ops1004489 +Ref: Using Internal File Ops-Footnote-11006836 +Node: Extension Samples1007104 +Node: Extension Sample File Functions1008628 +Node: Extension Sample Fnmatch1016196 +Node: Extension Sample Fork1017678 +Node: Extension Sample Inplace1018891 +Node: Extension Sample Ord1020566 +Node: Extension Sample Readdir1021402 +Ref: table-readdir-file-types1022258 +Node: Extension Sample Revout1023057 +Node: Extension Sample Rev2way1023648 +Node: Extension Sample Read write array1024389 +Node: Extension Sample Readfile1026268 +Node: Extension Sample API Tests1027368 +Node: Extension Sample Time1027893 +Node: gawkextlib1029208 +Node: Extension summary1032021 +Node: Extension Exercises1035714 +Node: Language History1036436 +Node: V7/SVR3.11038079 +Node: SVR41040399 +Node: POSIX1041841 +Node: BTL1043227 +Node: POSIX/GNU1043961 +Node: Feature History1049704 +Node: Common Extensions1062834 +Node: Ranges and Locales1064146 +Ref: Ranges and Locales-Footnote-11068763 +Ref: Ranges and Locales-Footnote-21068790 +Ref: Ranges and Locales-Footnote-31069024 +Node: Contributors1069245 +Node: History summary1074670 +Node: Installation1076039 +Node: Gawk Distribution1076990 +Node: Getting1077474 +Node: Extracting1078298 +Node: Distribution contents1079940 +Node: Unix Installation1085710 +Node: Quick Installation1086327 +Node: Additional Configuration Options1088769 +Node: Configuration Philosophy1090507 +Node: Non-Unix Installation1092858 +Node: PC Installation1093316 +Node: PC Binary Installation1094627 +Node: PC Compiling1096475 +Ref: PC Compiling-Footnote-11099474 +Node: PC Testing1099579 +Node: PC Using1100755 +Node: Cygwin1104913 +Node: MSYS1105722 +Node: VMS Installation1106236 +Node: VMS Compilation1107032 +Ref: VMS Compilation-Footnote-11108254 +Node: VMS Dynamic Extensions1108312 +Node: VMS Installation Details1109685 +Node: VMS Running1111937 +Node: VMS GNV1114771 +Node: VMS Old Gawk1115494 +Node: Bugs1115964 +Node: Other Versions1119968 +Node: Installation summary1126223 +Node: Notes1127279 +Node: Compatibility Mode1128144 +Node: Additions1128926 +Node: Accessing The Source1129851 +Node: Adding Code1131287 +Node: New Ports1137465 +Node: Derived Files1141946 +Ref: Derived Files-Footnote-11147027 +Ref: Derived Files-Footnote-21147061 +Ref: Derived Files-Footnote-31147657 +Node: Future Extensions1147771 +Node: Implementation Limitations1148377 +Node: Extension Design1149625 +Node: Old Extension Problems1150779 +Ref: Old Extension Problems-Footnote-11152296 +Node: Extension New Mechanism Goals1152353 +Ref: Extension New Mechanism Goals-Footnote-11155713 +Node: Extension Other Design Decisions1155902 +Node: Extension Future Growth1158008 +Node: Old Extension Mechanism1158844 +Node: Notes summary1160606 +Node: Basic Concepts1161792 +Node: Basic High Level1162473 +Ref: figure-general-flow1162745 +Ref: figure-process-flow1163344 +Ref: Basic High Level-Footnote-11166573 +Node: Basic Data Typing1166758 +Node: Glossary1170086 +Node: Copying1195238 +Node: GNU Free Documentation License1232794 +Node: Index1257930 End Tag Table |