diff options
Diffstat (limited to 'doc/gawk.info')
-rw-r--r-- | doc/gawk.info | 1281 |
1 files changed, 661 insertions, 620 deletions
diff --git a/doc/gawk.info b/doc/gawk.info index 5a07d84d..076a2f34 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -2563,10 +2563,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' @@ -2950,11 +2948,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. @@ -10165,10 +10158,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 @@ -11681,6 +11682,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 @@ -19639,8 +19655,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 @@ -22085,6 +22101,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 @@ -27014,7 +27053,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 @@ -27056,11 +27097,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 @@ -30993,20 +31033,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) @@ -31014,9 +31054,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) @@ -31029,26 +31069,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) @@ -31321,7 +31361,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) @@ -31728,7 +31768,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) @@ -31763,9 +31803,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) @@ -31911,7 +31951,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) @@ -31950,12 +31990,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) @@ -31978,7 +32018,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) @@ -31988,7 +32028,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. @@ -31996,7 +32036,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. @@ -32012,6 +32052,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) @@ -32036,8 +32077,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) @@ -32093,13 +32134,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) @@ -32132,10 +32173,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) @@ -32153,7 +32194,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) @@ -32232,7 +32273,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) @@ -32300,9 +32341,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. @@ -32339,7 +32380,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. @@ -32352,7 +32393,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) @@ -32402,7 +32443,7 @@ Index * G-d: Acknowledgments. (line 82) * 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) @@ -32423,13 +32464,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) @@ -32440,7 +32481,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. @@ -32471,7 +32512,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. @@ -32479,18 +32520,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) @@ -32572,7 +32613,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. @@ -32671,7 +32712,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) @@ -32801,7 +32842,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) @@ -32815,14 +32856,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) @@ -32863,7 +32904,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) @@ -32876,7 +32917,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) @@ -32899,7 +32940,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) @@ -32928,7 +32969,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. @@ -32937,9 +32978,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. @@ -33054,7 +33095,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) @@ -33121,7 +33162,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) @@ -33170,11 +33211,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) @@ -33217,24 +33258,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. @@ -33279,12 +33320,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 34) +* rand: Numeric Functions. (line 49) * random numbers, Cliff: Cliff Random Function. (line 6) * random numbers, rand()/srand() functions: Numeric Functions. - (line 34) -* random numbers, seed of: Numeric Functions. (line 64) + (line 49) +* random numbers, seed of: Numeric Functions. (line 79) * range expressions (regexps): Bracket Expressions. (line 6) * range patterns: Ranges. (line 6) * range patterns, line continuation and: Ranges. (line 65) @@ -33354,7 +33395,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) @@ -33394,7 +33435,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) @@ -33412,7 +33453,7 @@ Index * Robbins, Miriam <2>: Getline/Pipe. (line 39) * Robbins, Miriam: Acknowledgments. (line 82) * 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) @@ -33420,9 +33461,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) @@ -33435,14 +33476,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) @@ -33462,7 +33503,7 @@ Index * sed utility <2>: Simple Sed. (line 6) * sed utility: Field Splitting Summary. (line 46) -* seeding random number generator: Numeric Functions. (line 64) +* seeding random number generator: Numeric Functions. (line 79) * semicolon (;), AWKPATH variable and: PC Using. (line 10) * semicolon (;), separating statements in actions <1>: Statements. (line 10) @@ -33527,7 +33568,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. @@ -33564,8 +33605,8 @@ Index * SIGUSR1 signal, for dynamic profiling: Profiling. (line 188) * silent debugger command: Debugger Execution Control. (line 10) -* sin: Numeric Functions. (line 75) -* sine: Numeric Functions. (line 75) +* sin: Numeric Functions. (line 90) +* sine: Numeric Functions. (line 90) * single quote ('): One-shot. (line 15) * single quote (') in gawk command lines: Long. (line 33) * single quote ('), in shell commands: Quoting. (line 48) @@ -33615,10 +33656,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 78) +* sqrt: Numeric Functions. (line 93) * square brackets ([]), regexp operator: Regexp Operators. (line 56) -* square root: Numeric Functions. (line 78) -* srand: Numeric Functions. (line 82) +* square root: Numeric Functions. (line 93) +* srand: Numeric Functions. (line 97) * stack frame: Debugging Terms. (line 10) * Stallman, Richard <1>: Glossary. (line 296) * Stallman, Richard <2>: Contributors. (line 23) @@ -33690,9 +33731,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) @@ -33870,10 +33911,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) @@ -33907,7 +33948,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) @@ -34001,511 +34042,511 @@ Node: Intro Summary109875 Node: Invoking Gawk110641 Node: Command Line112156 Node: Options112947 -Ref: Options-Footnote-1128776 -Node: Other Arguments128801 -Node: Naming Standard Input131463 -Node: Environment Variables132557 -Node: AWKPATH Variable133115 -Ref: AWKPATH Variable-Footnote-1135987 -Ref: AWKPATH Variable-Footnote-2136032 -Node: AWKLIBPATH Variable136292 -Node: Other Environment Variables137051 -Node: Exit Status140706 -Node: Include Files141381 -Node: Loading Shared Libraries144959 -Node: Obsolete146343 -Node: Undocumented147040 -Node: Invoking Summary147307 -Node: Regexp148887 -Node: Regexp Usage150337 -Node: Escape Sequences152370 -Node: Regexp Operators158037 -Ref: Regexp Operators-Footnote-1165517 -Ref: Regexp Operators-Footnote-2165664 -Node: Bracket Expressions165762 -Ref: table-char-classes167652 -Node: GNU Regexp Operators170592 -Node: Case-sensitivity174315 -Ref: Case-sensitivity-Footnote-1177207 -Ref: Case-sensitivity-Footnote-2177442 -Node: Leftmost Longest177550 -Node: Computed Regexps178751 -Node: Regexp Summary182123 -Node: Reading Files183594 -Node: Records185686 -Node: awk split records186429 -Node: gawk split records191287 -Ref: gawk split records-Footnote-1195808 -Node: Fields195845 -Ref: Fields-Footnote-1198809 -Node: Nonconstant Fields198895 -Ref: Nonconstant Fields-Footnote-1201125 -Node: Changing Fields201327 -Node: Field Separators207281 -Node: Default Field Splitting209983 -Node: Regexp Field Splitting211100 -Node: Single Character Fields214441 -Node: Command Line Field Separator215500 -Node: Full Line Fields218842 -Ref: Full Line Fields-Footnote-1219350 -Node: Field Splitting Summary219396 -Ref: Field Splitting Summary-Footnote-1222495 -Node: Constant Size222596 -Node: Splitting By Content227203 -Ref: Splitting By Content-Footnote-1230953 -Node: Multiple Line230993 -Ref: Multiple Line-Footnote-1236849 -Node: Getline237028 -Node: Plain Getline239244 -Node: Getline/Variable241339 -Node: Getline/File242486 -Node: Getline/Variable/File243870 -Ref: Getline/Variable/File-Footnote-1245469 -Node: Getline/Pipe245556 -Node: Getline/Variable/Pipe248255 -Node: Getline/Coprocess249362 -Node: Getline/Variable/Coprocess250614 -Node: Getline Notes251351 -Node: Getline Summary254155 -Ref: table-getline-variants254563 -Node: Read Timeout255475 -Ref: Read Timeout-Footnote-1259302 -Node: Command line directories259360 -Node: Input Summary260264 -Node: Input Exercises263401 -Node: Printing264134 -Node: Print265856 -Node: Print Examples267197 -Node: Output Separators269976 -Node: OFMT271992 -Node: Printf273350 -Node: Basic Printf274256 -Node: Control Letters275795 -Node: Format Modifiers279786 -Node: Printf Examples285813 -Node: Redirection288277 -Node: Special Files295249 -Node: Special FD295780 -Ref: Special FD-Footnote-1299404 -Node: Special Network299478 -Node: Special Caveats300328 -Node: Close Files And Pipes301124 -Ref: Close Files And Pipes-Footnote-1308285 -Ref: Close Files And Pipes-Footnote-2308433 -Node: Output Summary308583 -Node: Output exercises309580 -Node: Expressions310260 -Node: Values311445 -Node: Constants312121 -Node: Scalar Constants312801 -Ref: Scalar Constants-Footnote-1313660 -Node: Nondecimal-numbers313910 -Node: Regexp Constants316910 -Node: Using Constant Regexps317385 -Node: Variables320455 -Node: Using Variables321110 -Node: Assignment Options322834 -Node: Conversion324709 -Node: Strings And Numbers325233 -Ref: Strings And Numbers-Footnote-1328295 -Node: Locale influences conversions328404 -Ref: table-locale-affects331121 -Node: All Operators331709 -Node: Arithmetic Ops332339 -Node: Concatenation334844 -Ref: Concatenation-Footnote-1337640 -Node: Assignment Ops337760 -Ref: table-assign-ops342743 -Node: Increment Ops344060 -Node: Truth Values and Conditions347498 -Node: Truth Values348581 -Node: Typing and Comparison349630 -Node: Variable Typing350423 -Ref: Variable Typing-Footnote-1354323 -Node: Comparison Operators354445 -Ref: table-relational-ops354855 -Node: POSIX String Comparison358405 -Ref: POSIX String Comparison-Footnote-1359489 -Node: Boolean Ops359627 -Ref: Boolean Ops-Footnote-1363697 -Node: Conditional Exp363788 -Node: Function Calls365515 -Node: Precedence369395 -Node: Locales373064 -Node: Expressions Summary374695 -Node: Patterns and Actions377236 -Node: Pattern Overview378352 -Node: Regexp Patterns380029 -Node: Expression Patterns380572 -Node: Ranges384353 -Node: BEGIN/END387459 -Node: Using BEGIN/END388221 -Ref: Using BEGIN/END-Footnote-1390957 -Node: I/O And BEGIN/END391063 -Node: BEGINFILE/ENDFILE393348 -Node: Empty396279 -Node: Using Shell Variables396596 -Node: Action Overview398879 -Node: Statements401206 -Node: If Statement403054 -Node: While Statement404552 -Node: Do Statement406596 -Node: For Statement407752 -Node: Switch Statement410904 -Node: Break Statement413007 -Node: Continue Statement415062 -Node: Next Statement416855 -Node: Nextfile Statement419245 -Node: Exit Statement421900 -Node: Built-in Variables424304 -Node: User-modified425431 -Ref: User-modified-Footnote-1433120 -Node: Auto-set433182 -Ref: Auto-set-Footnote-1445764 -Ref: Auto-set-Footnote-2445969 -Node: ARGC and ARGV446025 -Node: Pattern Action Summary449879 -Node: Arrays452102 -Node: Array Basics453651 -Node: Array Intro454477 -Ref: figure-array-elements456450 -Node: Reference to Elements458857 -Node: Assigning Elements461130 -Node: Array Example461621 -Node: Scanning an Array463353 -Node: Controlling Scanning466368 -Ref: Controlling Scanning-Footnote-1471541 -Node: Delete471857 -Ref: Delete-Footnote-1474622 -Node: Numeric Array Subscripts474679 -Node: Uninitialized Subscripts476862 -Node: Multidimensional478487 -Node: Multiscanning481580 -Node: Arrays of Arrays483169 -Node: Arrays Summary487832 -Node: Functions489937 -Node: Built-in490810 -Node: Calling Built-in491888 -Node: Numeric Functions493876 -Ref: Numeric Functions-Footnote-1497710 -Ref: Numeric Functions-Footnote-2498067 -Ref: Numeric Functions-Footnote-3498115 -Node: String Functions498384 -Ref: String Functions-Footnote-1521395 -Ref: String Functions-Footnote-2521524 -Ref: String Functions-Footnote-3521772 -Node: Gory Details521859 -Ref: table-sub-escapes523528 -Ref: table-sub-posix-92524882 -Ref: table-sub-proposed526233 -Ref: table-posix-sub527587 -Ref: table-gensub-escapes529132 -Ref: Gory Details-Footnote-1530308 -Ref: Gory Details-Footnote-2530359 -Node: I/O Functions530510 -Ref: I/O Functions-Footnote-1537633 -Node: Time Functions537780 -Ref: Time Functions-Footnote-1548244 -Ref: Time Functions-Footnote-2548312 -Ref: Time Functions-Footnote-3548470 -Ref: Time Functions-Footnote-4548581 -Ref: Time Functions-Footnote-5548693 -Ref: Time Functions-Footnote-6548920 -Node: Bitwise Functions549186 -Ref: table-bitwise-ops549748 -Ref: Bitwise Functions-Footnote-1553993 -Node: Type Functions554177 -Node: I18N Functions555319 -Node: User-defined556964 -Node: Definition Syntax557768 -Ref: Definition Syntax-Footnote-1562947 -Node: Function Example563016 -Ref: Function Example-Footnote-1565660 -Node: Function Caveats565682 -Node: Calling A Function566200 -Node: Variable Scope567155 -Node: Pass By Value/Reference570143 -Node: Return Statement573651 -Node: Dynamic Typing576635 -Node: Indirect Calls577564 -Node: Functions Summary587277 -Node: Library Functions589816 -Ref: Library Functions-Footnote-1593434 -Ref: Library Functions-Footnote-2593577 -Node: Library Names593748 -Ref: Library Names-Footnote-1597221 -Ref: Library Names-Footnote-2597441 -Node: General Functions597527 -Node: Strtonum Function598555 -Node: Assert Function601335 -Node: Round Function604661 -Node: Cliff Random Function606202 -Node: Ordinal Functions607218 -Ref: Ordinal Functions-Footnote-1610295 -Ref: Ordinal Functions-Footnote-2610547 -Node: Join Function610758 -Ref: Join Function-Footnote-1612529 -Node: Getlocaltime Function612729 -Node: Readfile Function616465 -Node: Data File Management618304 -Node: Filetrans Function618936 -Node: Rewind Function623005 -Node: File Checking624563 -Ref: File Checking-Footnote-1625695 -Node: Empty Files625896 -Node: Ignoring Assigns627875 -Node: Getopt Function629429 -Ref: Getopt Function-Footnote-1640732 -Node: Passwd Functions640935 -Ref: Passwd Functions-Footnote-1649914 -Node: Group Functions650002 -Ref: Group Functions-Footnote-1657943 -Node: Walking Arrays658156 -Node: Library Functions Summary659759 -Node: Library exercises661147 -Node: Sample Programs662427 -Node: Running Examples663197 -Node: Clones663925 -Node: Cut Program665149 -Node: Egrep Program675017 -Ref: Egrep Program-Footnote-1682988 -Node: Id Program683098 -Node: Split Program686762 -Ref: Split Program-Footnote-1690300 -Node: Tee Program690428 -Node: Uniq Program693235 -Node: Wc Program700665 -Ref: Wc Program-Footnote-1704930 -Node: Miscellaneous Programs705022 -Node: Dupword Program706235 -Node: Alarm Program708266 -Node: Translate Program713080 -Ref: Translate Program-Footnote-1717471 -Ref: Translate Program-Footnote-2717741 -Node: Labels Program717875 -Ref: Labels Program-Footnote-1721246 -Node: Word Sorting721330 -Node: History Sorting725373 -Node: Extract Program727209 -Node: Simple Sed734745 -Node: Igawk Program737807 -Ref: Igawk Program-Footnote-1752118 -Ref: Igawk Program-Footnote-2752319 -Node: Anagram Program752457 -Node: Signature Program755525 -Node: Programs Summary756772 -Node: Programs Exercises757987 -Node: Advanced Features761638 -Node: Nondecimal Data763586 -Node: Array Sorting765163 -Node: Controlling Array Traversal765860 -Node: Array Sorting Functions774140 -Ref: Array Sorting Functions-Footnote-1778047 -Node: Two-way I/O778241 -Ref: Two-way I/O-Footnote-1783757 -Node: TCP/IP Networking783839 -Node: Profiling786683 -Node: Advanced Features Summary794225 -Node: Internationalization796089 -Node: I18N and L10N797569 -Node: Explaining gettext798255 -Ref: Explaining gettext-Footnote-1803395 -Ref: Explaining gettext-Footnote-2803579 -Node: Programmer i18n803744 -Node: Translator i18n807969 -Node: String Extraction808763 -Ref: String Extraction-Footnote-1809724 -Node: Printf Ordering809810 -Ref: Printf Ordering-Footnote-1812592 -Node: I18N Portability812656 -Ref: I18N Portability-Footnote-1815105 -Node: I18N Example815168 -Ref: I18N Example-Footnote-1817890 -Node: Gawk I18N817962 -Node: I18N Summary818600 -Node: Debugger819939 -Node: Debugging820961 -Node: Debugging Concepts821402 -Node: Debugging Terms823258 -Node: Awk Debugging825855 -Node: Sample Debugging Session826747 -Node: Debugger Invocation827267 -Node: Finding The Bug828600 -Node: List of Debugger Commands835082 -Node: Breakpoint Control836414 -Node: Debugger Execution Control840078 -Node: Viewing And Changing Data843438 -Node: Execution Stack846796 -Node: Debugger Info848309 -Node: Miscellaneous Debugger Commands852303 -Node: Readline Support857487 -Node: Limitations858379 -Node: Debugging Summary860653 -Node: Arbitrary Precision Arithmetic861817 -Node: Computer Arithmetic863146 -Ref: Computer Arithmetic-Footnote-1867533 -Node: Math Definitions867590 -Ref: table-ieee-formats870474 -Node: MPFR features870978 -Node: FP Math Caution872620 -Ref: FP Math Caution-Footnote-1873661 -Node: Inexactness of computations874030 -Node: Inexact representation874978 -Node: Comparing FP Values876333 -Node: Errors accumulate877297 -Node: Getting Accuracy878730 -Node: Try To Round881389 -Node: Setting precision882288 -Ref: table-predefined-precision-strings882970 -Node: Setting the rounding mode884763 -Ref: table-gawk-rounding-modes885127 -Ref: Setting the rounding mode-Footnote-1888581 -Node: Arbitrary Precision Integers888760 -Ref: Arbitrary Precision Integers-Footnote-1891763 -Node: POSIX Floating Point Problems891912 -Ref: POSIX Floating Point Problems-Footnote-1895788 -Node: Floating point summary895826 -Node: Dynamic Extensions898043 -Node: Extension Intro899595 -Node: Plugin License900860 -Node: Extension Mechanism Outline901545 -Ref: figure-load-extension901969 -Ref: figure-load-new-function903454 -Ref: figure-call-new-function904456 -Node: Extension API Description906440 -Node: Extension API Functions Introduction907890 -Node: General Data Types912755 -Ref: General Data Types-Footnote-1918448 -Node: Requesting Values918747 -Ref: table-value-types-returned919484 -Node: Memory Allocation Functions920442 -Ref: Memory Allocation Functions-Footnote-1923189 -Node: Constructor Functions923285 -Node: Registration Functions925043 -Node: Extension Functions925728 -Node: Exit Callback Functions928030 -Node: Extension Version String929279 -Node: Input Parsers929929 -Node: Output Wrappers939743 -Node: Two-way processors944259 -Node: Printing Messages946463 -Ref: Printing Messages-Footnote-1947540 -Node: Updating `ERRNO'947692 -Node: Accessing Parameters948431 -Node: Symbol Table Access949661 -Node: Symbol table by name950175 -Node: Symbol table by cookie952151 -Ref: Symbol table by cookie-Footnote-1956284 -Node: Cached values956347 -Ref: Cached values-Footnote-1959851 -Node: Array Manipulation959942 -Ref: Array Manipulation-Footnote-1961040 -Node: Array Data Types961079 -Ref: Array Data Types-Footnote-1963782 -Node: Array Functions963874 -Node: Flattening Arrays967748 -Node: Creating Arrays974600 -Node: Extension API Variables979331 -Node: Extension Versioning979967 -Node: Extension API Informational Variables981868 -Node: Extension API Boilerplate982954 -Node: Finding Extensions986758 -Node: Extension Example987318 -Node: Internal File Description988048 -Node: Internal File Ops992139 -Ref: Internal File Ops-Footnote-11003571 -Node: Using Internal File Ops1003711 -Ref: Using Internal File Ops-Footnote-11006058 -Node: Extension Samples1006326 -Node: Extension Sample File Functions1007850 -Node: Extension Sample Fnmatch1015418 -Node: Extension Sample Fork1016900 -Node: Extension Sample Inplace1018113 -Node: Extension Sample Ord1019788 -Node: Extension Sample Readdir1020624 -Ref: table-readdir-file-types1021480 -Node: Extension Sample Revout1022279 -Node: Extension Sample Rev2way1022870 -Node: Extension Sample Read write array1023611 -Node: Extension Sample Readfile1025490 -Node: Extension Sample API Tests1026590 -Node: Extension Sample Time1027115 -Node: gawkextlib1028430 -Node: Extension summary1031243 -Node: Extension Exercises1034936 -Node: Language History1035658 -Node: V7/SVR3.11037301 -Node: SVR41039621 -Node: POSIX1041063 -Node: BTL1042449 -Node: POSIX/GNU1043183 -Node: Feature History1048926 -Node: Common Extensions1062056 -Node: Ranges and Locales1063368 -Ref: Ranges and Locales-Footnote-11067985 -Ref: Ranges and Locales-Footnote-21068012 -Ref: Ranges and Locales-Footnote-31068246 -Node: Contributors1068467 -Node: History summary1073892 -Node: Installation1075261 -Node: Gawk Distribution1076212 -Node: Getting1076696 -Node: Extracting1077520 -Node: Distribution contents1079162 -Node: Unix Installation1084879 -Node: Quick Installation1085496 -Node: Additional Configuration Options1087938 -Node: Configuration Philosophy1089676 -Node: Non-Unix Installation1092027 -Node: PC Installation1092485 -Node: PC Binary Installation1093796 -Node: PC Compiling1095644 -Ref: PC Compiling-Footnote-11098643 -Node: PC Testing1098748 -Node: PC Using1099924 -Node: Cygwin1104082 -Node: MSYS1104891 -Node: VMS Installation1105405 -Node: VMS Compilation1106201 -Ref: VMS Compilation-Footnote-11107423 -Node: VMS Dynamic Extensions1107481 -Node: VMS Installation Details1108854 -Node: VMS Running1111106 -Node: VMS GNV1113940 -Node: VMS Old Gawk1114663 -Node: Bugs1115133 -Node: Other Versions1119137 -Node: Installation summary1125392 -Node: Notes1126448 -Node: Compatibility Mode1127313 -Node: Additions1128095 -Node: Accessing The Source1129020 -Node: Adding Code1130456 -Node: New Ports1136634 -Node: Derived Files1141115 -Ref: Derived Files-Footnote-11146196 -Ref: Derived Files-Footnote-21146230 -Ref: Derived Files-Footnote-31146826 -Node: Future Extensions1146940 -Node: Implementation Limitations1147546 -Node: Extension Design1148794 -Node: Old Extension Problems1149948 -Ref: Old Extension Problems-Footnote-11151465 -Node: Extension New Mechanism Goals1151522 -Ref: Extension New Mechanism Goals-Footnote-11154882 -Node: Extension Other Design Decisions1155071 -Node: Extension Future Growth1157177 -Node: Old Extension Mechanism1158013 -Node: Notes summary1159775 -Node: Basic Concepts1160961 -Node: Basic High Level1161642 -Ref: figure-general-flow1161914 -Ref: figure-process-flow1162513 -Ref: Basic High Level-Footnote-11165742 -Node: Basic Data Typing1165927 -Node: Glossary1169255 -Node: Copying1194407 -Node: GNU Free Documentation License1231963 -Node: Index1257099 +Ref: Options-Footnote-1128647 +Node: Other Arguments128672 +Node: Naming Standard Input131334 +Node: Environment Variables132428 +Node: AWKPATH Variable132986 +Ref: AWKPATH Variable-Footnote-1135858 +Ref: AWKPATH Variable-Footnote-2135903 +Node: AWKLIBPATH Variable136163 +Node: Other Environment Variables136922 +Node: Exit Status140372 +Node: Include Files141047 +Node: Loading Shared Libraries144625 +Node: Obsolete146009 +Node: Undocumented146706 +Node: Invoking Summary146973 +Node: Regexp148553 +Node: Regexp Usage150003 +Node: Escape Sequences152036 +Node: Regexp Operators157703 +Ref: Regexp Operators-Footnote-1165183 +Ref: Regexp Operators-Footnote-2165330 +Node: Bracket Expressions165428 +Ref: table-char-classes167318 +Node: GNU Regexp Operators170258 +Node: Case-sensitivity173981 +Ref: Case-sensitivity-Footnote-1176873 +Ref: Case-sensitivity-Footnote-2177108 +Node: Leftmost Longest177216 +Node: Computed Regexps178417 +Node: Regexp Summary181789 +Node: Reading Files183260 +Node: Records185352 +Node: awk split records186095 +Node: gawk split records190953 +Ref: gawk split records-Footnote-1195474 +Node: Fields195511 +Ref: Fields-Footnote-1198475 +Node: Nonconstant Fields198561 +Ref: Nonconstant Fields-Footnote-1200791 +Node: Changing Fields200993 +Node: Field Separators206947 +Node: Default Field Splitting209649 +Node: Regexp Field Splitting210766 +Node: Single Character Fields214107 +Node: Command Line Field Separator215166 +Node: Full Line Fields218508 +Ref: Full Line Fields-Footnote-1219016 +Node: Field Splitting Summary219062 +Ref: Field Splitting Summary-Footnote-1222161 +Node: Constant Size222262 +Node: Splitting By Content226869 +Ref: Splitting By Content-Footnote-1230619 +Node: Multiple Line230659 +Ref: Multiple Line-Footnote-1236515 +Node: Getline236694 +Node: Plain Getline238910 +Node: Getline/Variable241005 +Node: Getline/File242152 +Node: Getline/Variable/File243536 +Ref: Getline/Variable/File-Footnote-1245135 +Node: Getline/Pipe245222 +Node: Getline/Variable/Pipe247921 +Node: Getline/Coprocess249028 +Node: Getline/Variable/Coprocess250280 +Node: Getline Notes251017 +Node: Getline Summary253821 +Ref: table-getline-variants254229 +Node: Read Timeout255141 +Ref: Read Timeout-Footnote-1258968 +Node: Command line directories259026 +Node: Input Summary259930 +Node: Input Exercises263067 +Node: Printing263800 +Node: Print265522 +Node: Print Examples266863 +Node: Output Separators269642 +Node: OFMT271658 +Node: Printf273016 +Node: Basic Printf273922 +Node: Control Letters275461 +Node: Format Modifiers279452 +Node: Printf Examples285479 +Node: Redirection287943 +Node: Special Files294915 +Node: Special FD295446 +Ref: Special FD-Footnote-1299070 +Node: Special Network299144 +Node: Special Caveats299994 +Node: Close Files And Pipes300790 +Ref: Close Files And Pipes-Footnote-1307951 +Ref: Close Files And Pipes-Footnote-2308099 +Node: Output Summary308249 +Node: Output exercises309246 +Node: Expressions309926 +Node: Values311111 +Node: Constants311787 +Node: Scalar Constants312467 +Ref: Scalar Constants-Footnote-1313326 +Node: Nondecimal-numbers313576 +Node: Regexp Constants316576 +Node: Using Constant Regexps317051 +Node: Variables320121 +Node: Using Variables320776 +Node: Assignment Options322500 +Node: Conversion324375 +Node: Strings And Numbers324899 +Ref: Strings And Numbers-Footnote-1327961 +Node: Locale influences conversions328070 +Ref: table-locale-affects330787 +Node: All Operators331375 +Node: Arithmetic Ops332005 +Node: Concatenation334510 +Ref: Concatenation-Footnote-1337306 +Node: Assignment Ops337426 +Ref: table-assign-ops342409 +Node: Increment Ops343726 +Node: Truth Values and Conditions347164 +Node: Truth Values348247 +Node: Typing and Comparison349296 +Node: Variable Typing350089 +Ref: Variable Typing-Footnote-1353989 +Node: Comparison Operators354111 +Ref: table-relational-ops354521 +Node: POSIX String Comparison358071 +Ref: POSIX String Comparison-Footnote-1359155 +Node: Boolean Ops359293 +Ref: Boolean Ops-Footnote-1363363 +Node: Conditional Exp363454 +Node: Function Calls365181 +Node: Precedence369061 +Node: Locales372730 +Node: Expressions Summary374361 +Node: Patterns and Actions376902 +Node: Pattern Overview378018 +Node: Regexp Patterns379695 +Node: Expression Patterns380238 +Node: Ranges384019 +Node: BEGIN/END387125 +Node: Using BEGIN/END387887 +Ref: Using BEGIN/END-Footnote-1390623 +Node: I/O And BEGIN/END390729 +Node: BEGINFILE/ENDFILE393014 +Node: Empty395945 +Node: Using Shell Variables396262 +Node: Action Overview398545 +Node: Statements400872 +Node: If Statement402720 +Node: While Statement404218 +Node: Do Statement406262 +Node: For Statement407418 +Node: Switch Statement410570 +Node: Break Statement412673 +Node: Continue Statement414728 +Node: Next Statement416521 +Node: Nextfile Statement418911 +Node: Exit Statement421566 +Node: Built-in Variables423970 +Node: User-modified425097 +Ref: User-modified-Footnote-1432786 +Node: Auto-set432848 +Ref: Auto-set-Footnote-1445767 +Ref: Auto-set-Footnote-2445972 +Node: ARGC and ARGV446028 +Node: Pattern Action Summary449882 +Node: Arrays452105 +Node: Array Basics453654 +Node: Array Intro454480 +Ref: figure-array-elements456453 +Node: Reference to Elements458860 +Node: Assigning Elements461133 +Node: Array Example461624 +Node: Scanning an Array463356 +Node: Controlling Scanning466371 +Ref: Controlling Scanning-Footnote-1471544 +Node: Delete471860 +Ref: Delete-Footnote-1474625 +Node: Numeric Array Subscripts474682 +Node: Uninitialized Subscripts476865 +Node: Multidimensional478490 +Node: Multiscanning481583 +Node: Arrays of Arrays483172 +Node: Arrays Summary487835 +Node: Functions489940 +Node: Built-in490813 +Node: Calling Built-in491891 +Node: Numeric Functions493879 +Ref: Numeric Functions-Footnote-1498515 +Ref: Numeric Functions-Footnote-2498872 +Ref: Numeric Functions-Footnote-3498920 +Node: String Functions499189 +Ref: String Functions-Footnote-1522200 +Ref: String Functions-Footnote-2522329 +Ref: String Functions-Footnote-3522577 +Node: Gory Details522664 +Ref: table-sub-escapes524333 +Ref: table-sub-posix-92525687 +Ref: table-sub-proposed527038 +Ref: table-posix-sub528392 +Ref: table-gensub-escapes529937 +Ref: Gory Details-Footnote-1531113 +Ref: Gory Details-Footnote-2531164 +Node: I/O Functions531315 +Ref: I/O Functions-Footnote-1538438 +Node: Time Functions538585 +Ref: Time Functions-Footnote-1549049 +Ref: Time Functions-Footnote-2549117 +Ref: Time Functions-Footnote-3549275 +Ref: Time Functions-Footnote-4549386 +Ref: Time Functions-Footnote-5549498 +Ref: Time Functions-Footnote-6549725 +Node: Bitwise Functions549991 +Ref: table-bitwise-ops550553 +Ref: Bitwise Functions-Footnote-1554798 +Node: Type Functions554982 +Node: I18N Functions556124 +Node: User-defined557769 +Node: Definition Syntax558573 +Ref: Definition Syntax-Footnote-1563752 +Node: Function Example563821 +Ref: Function Example-Footnote-1566465 +Node: Function Caveats566487 +Node: Calling A Function567005 +Node: Variable Scope567960 +Node: Pass By Value/Reference570948 +Node: Return Statement574456 +Node: Dynamic Typing577440 +Node: Indirect Calls578369 +Node: Functions Summary588082 +Node: Library Functions590621 +Ref: Library Functions-Footnote-1594239 +Ref: Library Functions-Footnote-2594382 +Node: Library Names594553 +Ref: Library Names-Footnote-1598026 +Ref: Library Names-Footnote-2598246 +Node: General Functions598332 +Node: Strtonum Function599360 +Node: Assert Function602140 +Node: Round Function605466 +Node: Cliff Random Function607007 +Node: Ordinal Functions608023 +Ref: Ordinal Functions-Footnote-1611100 +Ref: Ordinal Functions-Footnote-2611352 +Node: Join Function611563 +Ref: Join Function-Footnote-1613334 +Node: Getlocaltime Function613534 +Node: Readfile Function617270 +Node: Data File Management619109 +Node: Filetrans Function619741 +Node: Rewind Function623810 +Node: File Checking625368 +Ref: File Checking-Footnote-1626500 +Node: Empty Files626701 +Node: Ignoring Assigns628680 +Node: Getopt Function630234 +Ref: Getopt Function-Footnote-1641537 +Node: Passwd Functions641740 +Ref: Passwd Functions-Footnote-1650719 +Node: Group Functions650807 +Ref: Group Functions-Footnote-1658748 +Node: Walking Arrays658961 +Node: Library Functions Summary660564 +Node: Library exercises661952 +Node: Sample Programs663232 +Node: Running Examples664002 +Node: Clones664730 +Node: Cut Program665954 +Node: Egrep Program675822 +Ref: Egrep Program-Footnote-1683793 +Node: Id Program683903 +Node: Split Program687567 +Ref: Split Program-Footnote-1691105 +Node: Tee Program691233 +Node: Uniq Program694040 +Node: Wc Program701470 +Ref: Wc Program-Footnote-1705735 +Node: Miscellaneous Programs705827 +Node: Dupword Program707040 +Node: Alarm Program709071 +Node: Translate Program713885 +Ref: Translate Program-Footnote-1718276 +Ref: Translate Program-Footnote-2718546 +Node: Labels Program718680 +Ref: Labels Program-Footnote-1722051 +Node: Word Sorting722135 +Node: History Sorting726178 +Node: Extract Program728014 +Node: Simple Sed735550 +Node: Igawk Program738612 +Ref: Igawk Program-Footnote-1752923 +Ref: Igawk Program-Footnote-2753124 +Node: Anagram Program753262 +Node: Signature Program756330 +Node: Programs Summary757577 +Node: Programs Exercises758792 +Node: Advanced Features762443 +Node: Nondecimal Data764391 +Node: Array Sorting765968 +Node: Controlling Array Traversal766665 +Node: Array Sorting Functions774945 +Ref: Array Sorting Functions-Footnote-1778852 +Node: Two-way I/O779046 +Ref: Two-way I/O-Footnote-1784562 +Node: TCP/IP Networking784644 +Node: Profiling787488 +Node: Advanced Features Summary795039 +Node: Internationalization796903 +Node: I18N and L10N798383 +Node: Explaining gettext799069 +Ref: Explaining gettext-Footnote-1804209 +Ref: Explaining gettext-Footnote-2804393 +Node: Programmer i18n804558 +Node: Translator i18n808783 +Node: String Extraction809577 +Ref: String Extraction-Footnote-1810538 +Node: Printf Ordering810624 +Ref: Printf Ordering-Footnote-1813406 +Node: I18N Portability813470 +Ref: I18N Portability-Footnote-1815919 +Node: I18N Example815982 +Ref: I18N Example-Footnote-1818704 +Node: Gawk I18N818776 +Node: I18N Summary819414 +Node: Debugger820753 +Node: Debugging821775 +Node: Debugging Concepts822216 +Node: Debugging Terms824072 +Node: Awk Debugging826669 +Node: Sample Debugging Session827561 +Node: Debugger Invocation828081 +Node: Finding The Bug829414 +Node: List of Debugger Commands835896 +Node: Breakpoint Control837228 +Node: Debugger Execution Control840892 +Node: Viewing And Changing Data844252 +Node: Execution Stack847610 +Node: Debugger Info849123 +Node: Miscellaneous Debugger Commands853117 +Node: Readline Support858301 +Node: Limitations859193 +Node: Debugging Summary861467 +Node: Arbitrary Precision Arithmetic862631 +Node: Computer Arithmetic863960 +Ref: Computer Arithmetic-Footnote-1868347 +Node: Math Definitions868404 +Ref: table-ieee-formats871288 +Node: MPFR features871792 +Node: FP Math Caution873434 +Ref: FP Math Caution-Footnote-1874475 +Node: Inexactness of computations874844 +Node: Inexact representation875792 +Node: Comparing FP Values877147 +Node: Errors accumulate878111 +Node: Getting Accuracy879544 +Node: Try To Round882203 +Node: Setting precision883102 +Ref: table-predefined-precision-strings883784 +Node: Setting the rounding mode885577 +Ref: table-gawk-rounding-modes885941 +Ref: Setting the rounding mode-Footnote-1889395 +Node: Arbitrary Precision Integers889574 +Ref: Arbitrary Precision Integers-Footnote-1893369 +Node: POSIX Floating Point Problems893518 +Ref: POSIX Floating Point Problems-Footnote-1897394 +Node: Floating point summary897432 +Node: Dynamic Extensions899649 +Node: Extension Intro901201 +Node: Plugin License902466 +Node: Extension Mechanism Outline903151 +Ref: figure-load-extension903575 +Ref: figure-load-new-function905060 +Ref: figure-call-new-function906062 +Node: Extension API Description908046 +Node: Extension API Functions Introduction909496 +Node: General Data Types914361 +Ref: General Data Types-Footnote-1920054 +Node: Requesting Values920353 +Ref: table-value-types-returned921090 +Node: Memory Allocation Functions922048 +Ref: Memory Allocation Functions-Footnote-1924795 +Node: Constructor Functions924891 +Node: Registration Functions926649 +Node: Extension Functions927334 +Node: Exit Callback Functions929636 +Node: Extension Version String930885 +Node: Input Parsers931535 +Node: Output Wrappers941349 +Node: Two-way processors945865 +Node: Printing Messages948069 +Ref: Printing Messages-Footnote-1949146 +Node: Updating `ERRNO'949298 +Node: Accessing Parameters950037 +Node: Symbol Table Access951267 +Node: Symbol table by name951781 +Node: Symbol table by cookie953757 +Ref: Symbol table by cookie-Footnote-1957890 +Node: Cached values957953 +Ref: Cached values-Footnote-1961457 +Node: Array Manipulation961548 +Ref: Array Manipulation-Footnote-1962646 +Node: Array Data Types962685 +Ref: Array Data Types-Footnote-1965388 +Node: Array Functions965480 +Node: Flattening Arrays969354 +Node: Creating Arrays976206 +Node: Extension API Variables980937 +Node: Extension Versioning981573 +Node: Extension API Informational Variables983474 +Node: Extension API Boilerplate984560 +Node: Finding Extensions988364 +Node: Extension Example988924 +Node: Internal File Description989654 +Node: Internal File Ops993745 +Ref: Internal File Ops-Footnote-11005177 +Node: Using Internal File Ops1005317 +Ref: Using Internal File Ops-Footnote-11007664 +Node: Extension Samples1007932 +Node: Extension Sample File Functions1009456 +Node: Extension Sample Fnmatch1017024 +Node: Extension Sample Fork1018506 +Node: Extension Sample Inplace1019719 +Node: Extension Sample Ord1021394 +Node: Extension Sample Readdir1022230 +Ref: table-readdir-file-types1023086 +Node: Extension Sample Revout1023885 +Node: Extension Sample Rev2way1024476 +Node: Extension Sample Read write array1025217 +Node: Extension Sample Readfile1027096 +Node: Extension Sample API Tests1028196 +Node: Extension Sample Time1028721 +Node: gawkextlib1030036 +Node: Extension summary1032849 +Node: Extension Exercises1036542 +Node: Language History1037264 +Node: V7/SVR3.11038907 +Node: SVR41041227 +Node: POSIX1042669 +Node: BTL1044055 +Node: POSIX/GNU1044789 +Node: Feature History1050532 +Node: Common Extensions1063662 +Node: Ranges and Locales1064974 +Ref: Ranges and Locales-Footnote-11069591 +Ref: Ranges and Locales-Footnote-21069618 +Ref: Ranges and Locales-Footnote-31069852 +Node: Contributors1070073 +Node: History summary1075498 +Node: Installation1076867 +Node: Gawk Distribution1077818 +Node: Getting1078302 +Node: Extracting1079126 +Node: Distribution contents1080768 +Node: Unix Installation1086538 +Node: Quick Installation1087155 +Node: Additional Configuration Options1089597 +Node: Configuration Philosophy1091335 +Node: Non-Unix Installation1093686 +Node: PC Installation1094144 +Node: PC Binary Installation1095455 +Node: PC Compiling1097303 +Ref: PC Compiling-Footnote-11100302 +Node: PC Testing1100407 +Node: PC Using1101583 +Node: Cygwin1105741 +Node: MSYS1106550 +Node: VMS Installation1107064 +Node: VMS Compilation1107860 +Ref: VMS Compilation-Footnote-11109082 +Node: VMS Dynamic Extensions1109140 +Node: VMS Installation Details1110513 +Node: VMS Running1112765 +Node: VMS GNV1115599 +Node: VMS Old Gawk1116322 +Node: Bugs1116792 +Node: Other Versions1120796 +Node: Installation summary1127051 +Node: Notes1128107 +Node: Compatibility Mode1128972 +Node: Additions1129754 +Node: Accessing The Source1130679 +Node: Adding Code1132115 +Node: New Ports1138293 +Node: Derived Files1142774 +Ref: Derived Files-Footnote-11147855 +Ref: Derived Files-Footnote-21147889 +Ref: Derived Files-Footnote-31148485 +Node: Future Extensions1148599 +Node: Implementation Limitations1149205 +Node: Extension Design1150453 +Node: Old Extension Problems1151607 +Ref: Old Extension Problems-Footnote-11153124 +Node: Extension New Mechanism Goals1153181 +Ref: Extension New Mechanism Goals-Footnote-11156541 +Node: Extension Other Design Decisions1156730 +Node: Extension Future Growth1158836 +Node: Old Extension Mechanism1159672 +Node: Notes summary1161434 +Node: Basic Concepts1162620 +Node: Basic High Level1163301 +Ref: figure-general-flow1163573 +Ref: figure-process-flow1164172 +Ref: Basic High Level-Footnote-11167401 +Node: Basic Data Typing1167586 +Node: Glossary1170914 +Node: Copying1196066 +Node: GNU Free Documentation License1233622 +Node: Index1258758 End Tag Table |