diff options
Diffstat (limited to 'doc/gawk.info')
-rw-r--r-- | doc/gawk.info | 1448 |
1 files changed, 789 insertions, 659 deletions
diff --git a/doc/gawk.info b/doc/gawk.info index 74856755..469b7e0f 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -381,6 +381,8 @@ in (a) below. A copy of the license is included in the section entitled * Arrays Summary:: Summary of arrays. * Built-in:: Summarizes the built-in functions. * Calling Built-in:: How to call built-in functions. +* Boolean Functions:: A function that returns Boolean + values. * Numeric Functions:: Functions that work with numbers, including 'int()', 'sin()' and 'rand()'. @@ -490,6 +492,7 @@ in (a) below. A copy of the license is included in the section entitled * Programs Summary:: Summary of programs. * Programs Exercises:: Exercises. * Nondecimal Data:: Allowing nondecimal input data. +* Boolean Typed Values:: Values with 'number|bool' type. * Array Sorting:: Facilities for controlling array traversal and sorting arrays. * Controlling Array Traversal:: How to use PROCINFO["sorted_in"]. @@ -553,6 +556,7 @@ in (a) below. A copy of the license is included in the section entitled * Inexact representation:: Numbers are not exactly represented. * Comparing FP Values:: How to compare floating point values. * Errors accumulate:: Errors get bigger as they go. +* Strange values:: A few words about infinities and NaNs. * Getting Accuracy:: Getting more accuracy takes some work. * Try To Round:: Add digits and round. * Setting precision:: How to set the precision. @@ -3226,7 +3230,9 @@ change. The variables are: 'AWK_HASH' If this variable exists with a value of 'gst', 'gawk' switches to using the hash function from GNU Smalltalk for managing arrays. - This function may be marginally faster than the standard function. + With a value of 'fnv1a', 'gawk' uses the FNV1-A hash function + (http://www.isthe.com/chongo/tech/comp/fnv/index.html). These + functions may be marginally faster than the standard function. 'AWKREADFUNC' If this variable exists, 'gawk' switches to reading source files @@ -6993,8 +6999,8 @@ width. Here is a list of the format-control letters: On systems supporting IEEE 754 floating-point format, values representing negative infinity are formatted as '-inf' or '-infinity', and positive infinity as 'inf' or 'infinity'. The - special "not a number" value formats as '-nan' or 'nan' (*note Math - Definitions::). + special "not a number" value formats as '-nan' or 'nan' (*note + Strange values::). '%F' Like '%f', but the infinity and "not a number" values are spelled @@ -12814,6 +12820,7 @@ your convenience. * Menu: * Calling Built-in:: How to call built-in functions. +* Boolean Functions:: A function that returns Boolean values. * Numeric Functions:: Functions that work with numbers, including 'int()', 'sin()' and 'rand()'. * String Functions:: Functions for string manipulation, such as @@ -12826,7 +12833,7 @@ your convenience. * I18N Functions:: Functions for string translation. -File: gawk.info, Node: Calling Built-in, Next: Numeric Functions, Up: Built-in +File: gawk.info, Node: Calling Built-in, Next: Boolean Functions, Up: Built-in 9.1.1 Calling Built-in Functions -------------------------------- @@ -12870,9 +12877,24 @@ six, and then 12, and 'atan2()' is called with the two arguments six and 10, then 11, and 'atan2()' is called with the two arguments 11 and 10. -File: gawk.info, Node: Numeric Functions, Next: String Functions, Prev: Calling Built-in, Up: Built-in +File: gawk.info, Node: Boolean Functions, Next: Numeric Functions, Prev: Calling Built-in, Up: Built-in -9.1.2 Numeric Functions +9.1.2 Generating Boolean Values +------------------------------- + +This function is specific to 'gawk'. It is not available in +compatibility mode (*note Options::): + +'mkbool(EXPRESSION)' + Return a Boolean-typed value based on the regular Boolean value of + EXPRESSION. Boolean "true" values have numeric value one. Boolean + "false" values have numeric zero. This is discussed in more detail + in *note Boolean Typed Values::. + + +File: gawk.info, Node: Numeric Functions, Next: String Functions, Prev: Boolean Functions, Up: Built-in + +9.1.3 Numeric Functions ----------------------- The following list describes all of the built-in functions that work @@ -12898,7 +12920,7 @@ brackets ([ ]): 'log(X)' Return the natural logarithm of X, if X is positive; otherwise, - return 'NaN' ("not a number") on IEEE 754 systems. Additionally, + return NaN ("not a number") on IEEE 754 systems. Additionally, 'gawk' prints a warning message when 'x' is negative. 'rand()' @@ -12996,7 +13018,7 @@ the same sequence of random numbers over and over again. File: gawk.info, Node: String Functions, Next: I/O Functions, Prev: Numeric Functions, Up: Built-in -9.1.3 String-Manipulation Functions +9.1.4 String-Manipulation Functions ----------------------------------- The functions in this minor node look at or change the text of one or @@ -13572,7 +13594,7 @@ number zero. File: gawk.info, Node: Gory Details, Up: String Functions -9.1.3.1 More about '\' and '&' with 'sub()', 'gsub()', and 'gensub()' +9.1.4.1 More about '\' and '&' with 'sub()', 'gsub()', and 'gensub()' ..................................................................... CAUTION: This subsubsection has been reported to cause headaches. @@ -13718,7 +13740,7 @@ POSIX rules. File: gawk.info, Node: I/O Functions, Next: Time Functions, Prev: String Functions, Up: Built-in -9.1.4 Input/Output Functions +9.1.5 Input/Output Functions ---------------------------- The following functions relate to input/output (I/O). Optional @@ -13935,7 +13957,7 @@ the way this was done was probably a mistake. File: gawk.info, Node: Time Functions, Next: Bitwise Functions, Prev: I/O Functions, Up: Built-in -9.1.5 Time Functions +9.1.6 Time Functions -------------------- 'awk' programs are commonly used to process log files containing @@ -14252,7 +14274,7 @@ does not appear in the returned string or appears literally. File: gawk.info, Node: Bitwise Functions, Next: Type Functions, Prev: Time Functions, Up: Built-in -9.1.6 Bit-Manipulation Functions +9.1.7 Bit-Manipulation Functions -------------------------------- I can explain it for you, but I can't understand it for you. @@ -14434,7 +14456,7 @@ that range are reduced to fit within the range. File: gawk.info, Node: Type Functions, Next: I18N Functions, Prev: Bitwise Functions, Up: Built-in -9.1.7 Getting Type Information +9.1.8 Getting Type Information ------------------------------ 'gawk' provides two functions that let you distinguish the type of a @@ -14458,6 +14480,9 @@ contexts. '"number"' X is a number. + '"number|bool"' + X is a Boolean typed value (*note Boolean Typed Values::). + '"string"' X is a string. @@ -14519,7 +14544,7 @@ arguments from untyped to unassigned. File: gawk.info, Node: I18N Functions, Prev: Type Functions, Up: Built-in -9.1.8 String-Translation Functions +9.1.9 String-Translation Functions ---------------------------------- 'gawk' provides facilities for internationalizing 'awk' programs. These @@ -15198,7 +15223,7 @@ File: gawk.info, Node: Indirect Calls, Next: Functions Summary, Prev: User-de 9.3 Indirect Function Calls =========================== -This section describes an advanced, 'gawk'-specific extension. +This minor node describes an advanced, 'gawk'-specific extension. Often, you may wish to defer the choice of function to call until runtime. For example, you may have different kinds of records, each of @@ -20951,6 +20976,7 @@ their own: * Menu: * Nondecimal Data:: Allowing nondecimal input data. +* Boolean Typed Values:: Values with 'number|bool' type. * Array Sorting:: Facilities for controlling array traversal and sorting arrays. * Two-way I/O:: Two-way communications with another process. @@ -20960,7 +20986,7 @@ their own: * Advanced Features Summary:: Summary of advanced features. -File: gawk.info, Node: Nondecimal Data, Next: Array Sorting, Up: Advanced Features +File: gawk.info, Node: Nondecimal Data, Next: Boolean Typed Values, Up: Advanced Features 12.1 Allowing Nondecimal Input Data =================================== @@ -21003,9 +21029,53 @@ request it. This option may disappear in a future version of 'gawk'. -File: gawk.info, Node: Array Sorting, Next: Two-way I/O, Prev: Nondecimal Data, Up: Advanced Features +File: gawk.info, Node: Boolean Typed Values, Next: Array Sorting, Prev: Nondecimal Data, Up: Advanced Features + +12.2 Boolean Typed Values +========================= + +Scalar values in 'awk' are either numbers or strings. 'gawk' also +supports values of type 'regexp' (*note Strong Regexp Constants::). + + As described in *note Truth Values::, Boolean values in 'awk' don't +have a separate type: a value counts as "true" if it is nonzero or +non-null, and as "false" otherwise. + + When interchanging data with languages that do have a real Boolean +type, using a standard format such as JSON or XML, the lack of a true +Boolean type in 'awk' is problematic. (See, for example, the 'json' +extension provided by the 'gawkextlib' project +(https://sourceforge.net/projects/gawkextlib).) -12.2 Controlling Array Traversal and Array Sorting + It's easy to import Boolean data into 'awk', but then the fact that +it was originally Boolean is lost. Exporting data is even harder; +there's no way to indicate that a value is really Boolean. + + To solve this problem, 'gawk' provides a function named 'mkbool()'. +It takes one argument, which is any 'awk' expression, and it returns a +value of Boolean type. + + The returned values are normal 'awk' numeric values, with values of +either one or zero, depending upon the truth value of the original +expression passed in the call to 'mkbool()'. + + The 'typeof()' function (*note Type Functions::) returns +'"number|bool"' for these values. + + Thus Boolean-typed values _are_ numbers as far as 'gawk' is +concerned, except that extension code can treat them as Booleans if +desired. + + While it would have been possible to add two new built-in variables +of Boolean type named 'TRUE' and 'FALSE', doing so would undoubtedly +have broken many existing 'awk' programs. Instead, having a "generator" +function that creates Boolean values gives flexibility, without breaking +as much existing code. + + +File: gawk.info, Node: Array Sorting, Next: Two-way I/O, Prev: Boolean Typed Values, Up: Advanced Features + +12.3 Controlling Array Traversal and Array Sorting ================================================== 'gawk' lets you control the order in which a 'for (INDX in ARRAY)' loop @@ -21024,7 +21094,7 @@ to order the elements during sorting. File: gawk.info, Node: Controlling Array Traversal, Next: Array Sorting Functions, Up: Array Sorting -12.2.1 Controlling Array Traversal +12.3.1 Controlling Array Traversal ---------------------------------- By default, the order in which a 'for (INDX in ARRAY)' loop scans an @@ -21263,7 +21333,7 @@ character, which cannot be part of an identifier. File: gawk.info, Node: Array Sorting Functions, Prev: Controlling Array Traversal, Up: Array Sorting -12.2.2 Sorting Array Values and Indices with 'gawk' +12.3.2 Sorting Array Values and Indices with 'gawk' --------------------------------------------------- In most 'awk' implementations, sorting an array requires writing a @@ -21408,7 +21478,7 @@ POSIX-compatibility mode, and because 'asort()' and 'asorti()' are File: gawk.info, Node: Two-way I/O, Next: TCP/IP Networking, Prev: Array Sorting, Up: Advanced Features -12.3 Two-Way Communications with Another Process +12.4 Two-Way Communications with Another Process ================================================ It is often useful to be able to send data to a separate program for @@ -21603,7 +21673,7 @@ in Bash. File: gawk.info, Node: TCP/IP Networking, Next: Profiling, Prev: Two-way I/O, Up: Advanced Features -12.4 Using 'gawk' for Network Programming +12.5 Using 'gawk' for Network Programming ========================================= 'EMRED': @@ -21683,7 +21753,7 @@ complete introduction and discussion, as well as extensive examples. File: gawk.info, Node: Profiling, Next: Extension Philosophy, Prev: TCP/IP Networking, Up: Advanced Features -12.5 Profiling Your 'awk' Programs +12.6 Profiling Your 'awk' Programs ================================== You may produce execution traces of your 'awk' programs. This is done @@ -21945,7 +22015,7 @@ source code, it will appear that way in the output. File: gawk.info, Node: Extension Philosophy, Next: Advanced Features Summary, Prev: Profiling, Up: Advanced Features -12.6 Builtin Features versus Extensions +12.7 Builtin Features versus Extensions ======================================= As this and subsequent major nodes show, 'gawk' has a large number of @@ -21981,7 +22051,7 @@ or need. File: gawk.info, Node: Advanced Features Summary, Prev: Extension Philosophy, Up: Advanced Features -12.7 Summary +12.8 Summary ============ * The '--non-decimal-data' option causes 'gawk' to treat octal- and @@ -24338,18 +24408,10 @@ material here: another number and infinity produce infinity. "NaN" - "Not a number."(1) A special value that results from attempting a - calculation that has no answer as a real number. In such a case, - programs can either receive a floating-point exception, or get - 'NaN' back as the result. The IEEE 754 standard recommends that - systems return 'NaN'. Some examples: - - 'sqrt(-1)' - This makes sense in the range of complex numbers, but not in - the range of real numbers, so the result is 'NaN'. - - 'log(-8)' - -8 is out of the domain of 'log()', so the result is 'NaN'. + "Not a number." A special value that results from attempting a + calculation that has no answer as a real number. *Note Strange + values::, for more information about infinity and not-a-number + values. "Normalized" How the significand (see later in this list) is usually stored. @@ -24408,11 +24470,6 @@ Table 16.3: Basic IEEE format values NOTE: The precision numbers include the implied leading one that gives them one extra bit of significand. - ---------- Footnotes ---------- - - (1) Thanks to Michael Brennan for this description, which we have -paraphrased, and for the examples. - File: gawk.info, Node: MPFR features, Next: FP Math Caution, Prev: Math Definitions, Up: Arbitrary Precision Arithmetic @@ -24505,6 +24562,7 @@ be sure of the number of significant decimal places in the final result. * Inexact representation:: Numbers are not exactly represented. * Comparing FP Values:: How to compare floating point values. * Errors accumulate:: Errors get bigger as they go. +* Strange values:: A few words about infinities and NaNs. File: gawk.info, Node: Inexact representation, Next: Comparing FP Values, Up: Inexactness of computations @@ -24569,7 +24627,7 @@ values with a delta, you should be sure to use 'difference < abs(delta)' in case someone passes in a negative delta value. -File: gawk.info, Node: Errors accumulate, Prev: Comparing FP Values, Up: Inexactness of computations +File: gawk.info, Node: Errors accumulate, Next: Strange values, Prev: Comparing FP Values, Up: Inexactness of computations 16.4.1.3 Errors Accumulate .......................... @@ -24617,6 +24675,64 @@ representations yield an unexpected result: -| 4 +File: gawk.info, Node: Strange values, Prev: Errors accumulate, Up: Inexactness of computations + +16.4.1.4 Floating Point Values They Didn't Talk About In School +............................................................... + +Both IEEE 754 floating-point hardware, and MPFR, support two kinds of +values that you probably didn't learn about in school. The first is +"infinity", a special value, that can be either negative or positive, +and which is either smaller than any other value (negative infinity), or +larger than any other value (positive infinity). When such values are +generated, 'gawk' prints them as either '-inf' or '+inf', respectively. +It accepts those strings as data input and converts them to the proper +floating-point values internally. + + Infinity values of the same sign compare as equal to each other. +Otherwise, operations (addition, subtraction, etc.) involving another +number and infinity produce mathematically reasonable results. + + The second kind of value is "not a number", or NaN for short.(1) +This is a special value that results from attempting a calculation that +has no answer as a real number. In such a case, programs can either +receive a floating-point exception, or get NaN back as the result. The +IEEE 754 standard recommends that systems return NaN. Some examples: + +'sqrt(-1)' + This makes sense in the range of complex numbers, but not in the + range of real numbers, so the result is NaN. + +'log(-8)' + -8 is out of the domain of 'log()', so the result is NaN. + + NaN values are strange. In particular, they cannot be compared with +other floating point values; any such comparison, except for "is not +equal to", returns false. NaN values are so much unequal to other +values that even comparing two identical NaN values with '!=' returns +true! + + NaN values can also be signed, although it depends upon the +implementation as to which sign you get for any operation that returns a +NaN. For example, on some systems, 'sqrt(-1)' returns a negative NaN. On +others, it returns a positive NaN. + + When such values are generated, 'gawk' prints them as either '-nan' +or '+nan', respectively. Here too, 'gawk' accepts those strings as data +input and converts them to the proper floating-point values internally. + + If you want to dive more deeply into this topic, you can find test +programs in C, 'awk' and Python in the directory +'awklib/eg/test-programs' in the 'gawk' distribution. These programs +enable comparison among programming languages as to how they handle NaN +and infinity values. + + ---------- Footnotes ---------- + + (1) Thanks to Michael Brennan for this description, which we have +paraphrased, and for the examples. + + File: gawk.info, Node: Getting Accuracy, Next: Try To Round, Prev: Inexactness of computations, Up: FP Math Caution 16.4.2 Getting the Accuracy You Need @@ -25563,7 +25679,8 @@ use them. ' AWK_STRNUM,' ' AWK_ARRAY,' ' AWK_SCALAR, /* opaque access to a variable */' -' AWK_VALUE_COOKIE /* for updating a previously created value */' +' AWK_VALUE_COOKIE, /* for updating a previously created value */' +' AWK_BOOL' '} awk_valtype_t;' This 'enum' indicates the type of a value. It is used in the following 'struct'. @@ -25576,6 +25693,7 @@ use them. ' awk_array_t a;' ' awk_scalar_t scl;' ' awk_value_cookie_t vc;' +' awk_bool_t b;' ' } u;' '} awk_value_t;' An "'awk' value." The 'val_type' member indicates what kind of @@ -25591,6 +25709,7 @@ use them. '#define array_cookie u.a' '#define scalar_cookie u.scl' '#define value_cookie u.vc' +'#define bool_value u.b' Using these macros makes accessing the fields of the 'awk_value_t' more readable. @@ -25901,6 +26020,11 @@ code would use them: a 'char *' value pointing to data previously obtained from 'gawk_malloc()', 'gawk_calloc()', or 'gawk_realloc()'. +'static inline awk_value_t *' +'make_bool(awk_bool_t boolval, awk_value_t *result);' + This function creates a boolean value in the 'awk_value_t' variable + pointed to by 'result'. + File: gawk.info, Node: API Ownership of MPFR and GMP Values, Next: Registration Functions, Prev: Constructor Functions, Up: Extension API Description @@ -26626,16 +26750,17 @@ summarized in *note Table 17.2: table-value-types-returned. Type of Actual Value -------------------------------------------------------------------------- - String Strnum Number Regex Array Undefined -------------------------------------------------------------------------------- - String String String String String false false - Strnum false Strnum Strnum false false false - Number Number Number Number false false false -Type Regex false false false Regex false false -Requested Array false false false false Array false - Scalar Scalar Scalar Scalar Scalar false false - Undefined String Strnum Number Regex Array Undefined - Value false false false false false false + String Strnum Number Regex Bool Array Undefined +---------------------------------------------------------------------------------------- + String String String String String String false false + Strnum false Strnum Strnum false false false false + Number Number Number Number false Number false false +Type Regex false false false Regex false false false +Requested Bool false false false false Bool false false + Array false false false false false Array false + Scalar Scalar Scalar Scalar Scalar Scalar false false + Undefined String Strnum Number Regex Bool Array Undefined + Value false false false false false false false cookie Table 17.2: API value types returned @@ -33470,8 +33595,8 @@ Localization Logical Expression An expression using the operators for logic, AND, OR, and NOT, - written '&&', '||', and '!' in 'awk'. Often called Boolean - expressions, after the mathematician who pioneered this kind of + written '&&', '||', and '!' in 'awk'. Often called "Boolean + expressions", after the mathematician who pioneered this kind of mathematical logic. Lvalue @@ -35628,6 +35753,7 @@ Index * body, in loops: While Statement. (line 14) * Boolean expressions: Boolean Ops. (line 6) * Boolean expressions, as patterns: Expression Patterns. (line 39) +* boolean function: Boolean Functions. (line 6) * Bourne shell, quoting rules for: Quoting. (line 18) * braces ({}), regexp operator: Regexp Operator Details. (line 118) @@ -37219,6 +37345,7 @@ Index * metacharacters, escape sequences for: Escape Sequences. (line 140) * metacharacters, in regular expressions: Regexp Operators. (line 6) * minimum precision required by MPFR library: Auto-set. (line 279) +* mkbool: Boolean Functions. (line 10) * mktime: Time Functions. (line 25) * modifiers, in format specifiers: Format Modifiers. (line 6) * module, definition of: Global Namespace. (line 18) @@ -38446,609 +38573,612 @@ Index Tag Table: Node: Top1200 -Node: Foreword345252 -Node: Foreword449694 -Node: Preface51226 -Ref: Preface-Footnote-154085 -Ref: Preface-Footnote-254194 -Ref: Preface-Footnote-354428 -Node: History54570 -Node: Names56922 -Ref: Names-Footnote-158026 -Node: This Manual58173 -Ref: This Manual-Footnote-164812 -Node: Conventions64912 -Node: Manual History67281 -Ref: Manual History-Footnote-170278 -Ref: Manual History-Footnote-270319 -Node: How To Contribute70393 -Node: Acknowledgments71319 -Node: Getting Started76256 -Node: Running gawk78695 -Node: One-shot79885 -Node: Read Terminal81148 -Node: Long83141 -Node: Executable Scripts84654 -Ref: Executable Scripts-Footnote-187287 -Node: Comments87390 -Node: Quoting89874 -Node: DOS Quoting95400 -Node: Sample Data Files97456 -Node: Very Simple100051 -Node: Two Rules106153 -Node: More Complex108038 -Node: Statements/Lines110370 -Ref: Statements/Lines-Footnote-1114854 -Node: Other Features115119 -Node: When116055 -Ref: When-Footnote-1117809 -Node: Intro Summary117874 -Node: Invoking Gawk118758 -Node: Command Line120272 -Node: Options121070 -Ref: Options-Footnote-1138984 -Ref: Options-Footnote-2139215 -Node: Other Arguments139240 -Node: Naming Standard Input143251 -Node: Environment Variables144461 -Node: AWKPATH Variable145019 -Ref: AWKPATH Variable-Footnote-1148431 -Ref: AWKPATH Variable-Footnote-2148465 -Node: AWKLIBPATH Variable148836 -Ref: AWKLIBPATH Variable-Footnote-1150533 -Node: Other Environment Variables150908 -Node: Exit Status154729 -Node: Include Files155406 -Node: Loading Shared Libraries159096 -Node: Obsolete160524 -Node: Undocumented161216 -Node: Invoking Summary161513 -Node: Regexp164354 -Node: Regexp Usage165808 -Node: Escape Sequences167845 -Node: Regexp Operators174086 -Node: Regexp Operator Details174571 -Ref: Regexp Operator Details-Footnote-1181935 -Node: Interval Expressions182082 -Ref: Interval Expressions-Footnote-1184282 -Node: Bracket Expressions184380 -Ref: table-char-classes186856 -Node: Leftmost Longest190182 -Node: Computed Regexps191485 -Node: GNU Regexp Operators194912 -Node: Case-sensitivity198649 -Ref: Case-sensitivity-Footnote-1201515 -Ref: Case-sensitivity-Footnote-2201750 -Node: Regexp Summary201858 -Node: Reading Files203324 -Node: Records205593 -Node: awk split records206668 -Node: gawk split records211368 -Ref: gawk split records-Footnote-1216442 -Node: Fields216479 -Node: Nonconstant Fields219220 -Ref: Nonconstant Fields-Footnote-1221456 -Node: Changing Fields221660 -Node: Field Separators227691 -Node: Default Field Splitting230389 -Node: Regexp Field Splitting231507 -Node: Single Character Fields235184 -Node: Command Line Field Separator236244 -Node: Full Line Fields239462 -Ref: Full Line Fields-Footnote-1240984 -Ref: Full Line Fields-Footnote-2241030 -Node: Field Splitting Summary241131 -Node: Constant Size243205 -Node: Fixed width data243937 -Node: Skipping intervening247404 -Node: Allowing trailing data248202 -Node: Fields with fixed data249239 -Node: Splitting By Content250757 -Ref: Splitting By Content-Footnote-1254540 -Node: More CSV254703 -Node: Testing field creation256295 -Node: Multiple Line257920 -Node: Getline264197 -Node: Plain Getline266666 -Node: Getline/Variable269239 -Node: Getline/File270390 -Node: Getline/Variable/File271778 -Ref: Getline/Variable/File-Footnote-1273383 -Node: Getline/Pipe273471 -Node: Getline/Variable/Pipe276175 -Node: Getline/Coprocess277310 -Node: Getline/Variable/Coprocess278577 -Node: Getline Notes279319 -Node: Getline Summary282116 -Ref: table-getline-variants282540 -Node: Read Timeout283288 -Ref: Read Timeout-Footnote-1287194 -Node: Retrying Input287252 -Node: Command-line directories288451 -Node: Input Summary289357 -Node: Input Exercises292529 -Node: Printing292963 -Node: Print294797 -Node: Print Examples296254 -Node: Output Separators299034 -Node: OFMT301051 -Node: Printf302407 -Node: Basic Printf303192 -Node: Control Letters304766 -Node: Format Modifiers309930 -Node: Printf Examples315945 -Node: Redirection318431 -Node: Special FD325272 -Ref: Special FD-Footnote-1328440 -Node: Special Files328514 -Node: Other Inherited Files329131 -Node: Special Network330132 -Node: Special Caveats330992 -Node: Close Files And Pipes331941 -Ref: table-close-pipe-return-values338848 -Ref: Close Files And Pipes-Footnote-1339661 -Ref: Close Files And Pipes-Footnote-2339809 -Node: Nonfatal339961 -Node: Output Summary342299 -Node: Output Exercises343521 -Node: Expressions344200 -Node: Values345388 -Node: Constants346066 -Node: Scalar Constants346757 -Ref: Scalar Constants-Footnote-1349267 -Node: Nondecimal-numbers349517 -Node: Regexp Constants352518 -Node: Using Constant Regexps353044 -Node: Standard Regexp Constants353666 -Node: Strong Regexp Constants356854 -Node: Variables360278 -Node: Using Variables360935 -Node: Assignment Options362845 -Node: Conversion365316 -Node: Strings And Numbers365840 -Ref: Strings And Numbers-Footnote-1368903 -Node: Locale influences conversions369012 -Ref: table-locale-affects371770 -Node: All Operators372388 -Node: Arithmetic Ops373017 -Node: Concatenation375733 -Ref: Concatenation-Footnote-1378580 -Node: Assignment Ops378687 -Ref: table-assign-ops383678 -Node: Increment Ops384991 -Node: Truth Values and Conditions388451 -Node: Truth Values389525 -Node: Typing and Comparison390573 -Node: Variable Typing391393 -Ref: Variable Typing-Footnote-1397856 -Ref: Variable Typing-Footnote-2397928 -Node: Comparison Operators398005 -Ref: table-relational-ops398424 -Node: POSIX String Comparison401919 -Ref: POSIX String Comparison-Footnote-1403614 -Ref: POSIX String Comparison-Footnote-2403753 -Node: Boolean Ops403837 -Ref: Boolean Ops-Footnote-1408319 -Node: Conditional Exp408411 -Node: Function Calls410147 -Node: Precedence414024 -Node: Locales417683 -Node: Expressions Summary419315 -Node: Patterns and Actions421888 -Node: Pattern Overview423008 -Node: Regexp Patterns424685 -Node: Expression Patterns425227 -Node: Ranges429008 -Node: BEGIN/END432116 -Node: Using BEGIN/END432877 -Ref: Using BEGIN/END-Footnote-1435631 -Node: I/O And BEGIN/END435737 -Node: BEGINFILE/ENDFILE438050 -Node: Empty441281 -Node: Using Shell Variables441598 -Node: Action Overview443872 -Node: Statements446197 -Node: If Statement448045 -Node: While Statement449540 -Node: Do Statement451568 -Node: For Statement452716 -Node: Switch Statement455887 -Node: Break Statement458328 -Node: Continue Statement460420 -Node: Next Statement462247 -Node: Nextfile Statement464630 -Node: Exit Statement467319 -Node: Built-in Variables469722 -Node: User-modified470855 -Node: Auto-set478622 -Ref: Auto-set-Footnote-1495429 -Ref: Auto-set-Footnote-2495635 -Node: ARGC and ARGV495691 -Node: Pattern Action Summary499904 -Node: Arrays502334 -Node: Array Basics503663 -Node: Array Intro504507 -Ref: figure-array-elements506482 -Ref: Array Intro-Footnote-1509186 -Node: Reference to Elements509314 -Node: Assigning Elements511778 -Node: Array Example512269 -Node: Scanning an Array514028 -Node: Controlling Scanning517050 -Ref: Controlling Scanning-Footnote-1523506 -Node: Numeric Array Subscripts523822 -Node: Uninitialized Subscripts526006 -Node: Delete527625 -Ref: Delete-Footnote-1530377 -Node: Multidimensional530434 -Node: Multiscanning533529 -Node: Arrays of Arrays535120 -Node: Arrays Summary539888 -Node: Functions541981 -Node: Built-in543019 -Node: Calling Built-in544100 -Node: Numeric Functions546096 -Ref: Numeric Functions-Footnote-1550124 -Ref: Numeric Functions-Footnote-2550772 -Ref: Numeric Functions-Footnote-3550820 -Node: String Functions551092 -Ref: String Functions-Footnote-1575607 -Ref: String Functions-Footnote-2575735 -Ref: String Functions-Footnote-3575983 -Node: Gory Details576070 -Ref: table-sub-escapes577861 -Ref: table-sub-proposed579380 -Ref: table-posix-sub580743 -Ref: table-gensub-escapes582284 -Ref: Gory Details-Footnote-1583107 -Node: I/O Functions583261 -Ref: table-system-return-values589715 -Ref: I/O Functions-Footnote-1591795 -Ref: I/O Functions-Footnote-2591943 -Node: Time Functions592063 -Ref: Time Functions-Footnote-1602734 -Ref: Time Functions-Footnote-2602802 -Ref: Time Functions-Footnote-3602960 -Ref: Time Functions-Footnote-4603071 -Ref: Time Functions-Footnote-5603183 -Ref: Time Functions-Footnote-6603410 -Node: Bitwise Functions603676 -Ref: table-bitwise-ops604270 -Ref: Bitwise Functions-Footnote-1610333 -Ref: Bitwise Functions-Footnote-2610506 -Node: Type Functions610697 -Node: I18N Functions613560 -Node: User-defined615211 -Node: Definition Syntax616023 -Ref: Definition Syntax-Footnote-1621717 -Node: Function Example621788 -Ref: Function Example-Footnote-1624710 -Node: Function Calling624732 -Node: Calling A Function625320 -Node: Variable Scope626278 -Node: Pass By Value/Reference629272 -Node: Function Caveats631916 -Ref: Function Caveats-Footnote-1633963 -Node: Return Statement634083 -Node: Dynamic Typing637062 -Node: Indirect Calls637992 -Ref: Indirect Calls-Footnote-1648244 -Node: Functions Summary648372 -Node: Library Functions651077 -Ref: Library Functions-Footnote-1654684 -Ref: Library Functions-Footnote-2654827 -Node: Library Names654998 -Ref: Library Names-Footnote-1658665 -Ref: Library Names-Footnote-2658888 -Node: General Functions658974 -Node: Strtonum Function660156 -Node: Assert Function663178 -Node: Round Function666504 -Node: Cliff Random Function668044 -Node: Ordinal Functions669060 -Ref: Ordinal Functions-Footnote-1672123 -Ref: Ordinal Functions-Footnote-2672375 -Node: Join Function672585 -Ref: Join Function-Footnote-1674355 -Node: Getlocaltime Function674555 -Node: Readfile Function678297 -Node: Shell Quoting680274 -Node: Isnumeric Function681702 -Node: Data File Management683090 -Node: Filetrans Function683722 -Node: Rewind Function687818 -Node: File Checking689727 -Ref: File Checking-Footnote-1691061 -Node: Empty Files691262 -Node: Ignoring Assigns693241 -Node: Getopt Function694791 -Ref: Getopt Function-Footnote-1710014 -Node: Passwd Functions710214 -Ref: Passwd Functions-Footnote-1719053 -Node: Group Functions719141 -Ref: Group Functions-Footnote-1727039 -Node: Walking Arrays727246 -Node: Library Functions Summary730254 -Node: Library Exercises731660 -Node: Sample Programs732125 -Node: Running Examples732895 -Node: Clones733623 -Node: Cut Program734847 -Node: Egrep Program744987 -Node: Id Program753988 -Node: Split Program763935 -Ref: Split Program-Footnote-1773828 -Node: Tee Program774001 -Node: Uniq Program776791 -Node: Wc Program784379 -Node: Bytes vs. Characters784766 -Node: Using extensions786314 -Node: wc program787068 -Node: Miscellaneous Programs791933 -Node: Dupword Program793146 -Node: Alarm Program795176 -Node: Translate Program800031 -Ref: Translate Program-Footnote-1804596 -Node: Labels Program804866 -Ref: Labels Program-Footnote-1808217 -Node: Word Sorting808301 -Node: History Sorting812373 -Node: Extract Program814598 -Node: Simple Sed822652 -Node: Igawk Program825726 -Ref: Igawk Program-Footnote-1840057 -Ref: Igawk Program-Footnote-2840259 -Ref: Igawk Program-Footnote-3840381 -Node: Anagram Program840496 -Node: Signature Program843558 -Node: Programs Summary844805 -Node: Programs Exercises846019 -Ref: Programs Exercises-Footnote-1850149 -Node: Advanced Features850235 -Node: Nondecimal Data852302 -Node: Array Sorting853893 -Node: Controlling Array Traversal854593 -Ref: Controlling Array Traversal-Footnote-1862961 -Node: Array Sorting Functions863079 -Ref: Array Sorting Functions-Footnote-1868453 -Node: Two-way I/O868649 -Ref: Two-way I/O-Footnote-1876375 -Ref: Two-way I/O-Footnote-2876562 -Node: TCP/IP Networking876644 -Node: Profiling879762 -Node: Extension Philosophy889071 -Node: Advanced Features Summary890550 -Node: Internationalization892565 -Node: I18N and L10N894239 -Node: Explaining gettext894926 -Ref: Explaining gettext-Footnote-1900818 -Ref: Explaining gettext-Footnote-2901003 -Node: Programmer i18n901168 -Ref: Programmer i18n-Footnote-1906117 -Node: Translator i18n906166 -Node: String Extraction906960 -Ref: String Extraction-Footnote-1908092 -Node: Printf Ordering908178 -Ref: Printf Ordering-Footnote-1910964 -Node: I18N Portability911028 -Ref: I18N Portability-Footnote-1913484 -Node: I18N Example913547 -Ref: I18N Example-Footnote-1916822 -Ref: I18N Example-Footnote-2916895 -Node: Gawk I18N917004 -Node: I18N Summary917653 -Node: Debugger918994 -Node: Debugging919994 -Node: Debugging Concepts920435 -Node: Debugging Terms922244 -Node: Awk Debugging924819 -Ref: Awk Debugging-Footnote-1925764 -Node: Sample Debugging Session925896 -Node: Debugger Invocation926430 -Node: Finding The Bug927816 -Node: List of Debugger Commands934290 -Node: Breakpoint Control935623 -Node: Debugger Execution Control939317 -Node: Viewing And Changing Data942679 -Node: Execution Stack946220 -Node: Debugger Info947857 -Node: Miscellaneous Debugger Commands951928 -Node: Readline Support956990 -Node: Limitations957886 -Node: Debugging Summary960440 -Node: Namespaces961719 -Node: Global Namespace962830 -Node: Qualified Names964228 -Node: Default Namespace965227 -Node: Changing The Namespace965968 -Node: Naming Rules967582 -Node: Internal Name Management969430 -Node: Namespace Example970472 -Node: Namespace And Features973034 -Node: Namespace Summary974469 -Node: Arbitrary Precision Arithmetic975946 -Node: Computer Arithmetic977433 -Ref: table-numeric-ranges981199 -Ref: table-floating-point-ranges981692 -Ref: Computer Arithmetic-Footnote-1982350 -Node: Math Definitions982407 -Ref: table-ieee-formats985723 -Ref: Math Definitions-Footnote-1986326 -Node: MPFR features986431 -Node: FP Math Caution988149 -Ref: FP Math Caution-Footnote-1989221 -Node: Inexactness of computations989590 -Node: Inexact representation990550 -Node: Comparing FP Values991910 -Node: Errors accumulate993151 -Node: Getting Accuracy994584 -Node: Try To Round997294 -Node: Setting precision998193 -Ref: table-predefined-precision-strings998890 -Node: Setting the rounding mode1000720 -Ref: table-gawk-rounding-modes1001094 -Ref: Setting the rounding mode-Footnote-11005025 -Node: Arbitrary Precision Integers1005204 -Ref: Arbitrary Precision Integers-Footnote-11008379 -Node: Checking for MPFR1008528 -Node: POSIX Floating Point Problems1010002 -Ref: POSIX Floating Point Problems-Footnote-11014287 -Node: Floating point summary1014325 -Node: Dynamic Extensions1016515 -Node: Extension Intro1018068 -Node: Plugin License1019334 -Node: Extension Mechanism Outline1020131 -Ref: figure-load-extension1020570 -Ref: figure-register-new-function1022135 -Ref: figure-call-new-function1023227 -Node: Extension API Description1025289 -Node: Extension API Functions Introduction1027002 -Ref: table-api-std-headers1028838 -Node: General Data Types1033087 -Ref: General Data Types-Footnote-11041717 -Node: Memory Allocation Functions1042016 -Ref: Memory Allocation Functions-Footnote-11046517 -Node: Constructor Functions1046616 -Node: API Ownership of MPFR and GMP Values1050082 -Node: Registration Functions1051395 -Node: Extension Functions1052095 -Node: Exit Callback Functions1057417 -Node: Extension Version String1058667 -Node: Input Parsers1059330 -Node: Output Wrappers1072051 -Node: Two-way processors1076563 -Node: Printing Messages1078828 -Ref: Printing Messages-Footnote-11079999 -Node: Updating ERRNO1080152 -Node: Requesting Values1080891 -Ref: table-value-types-returned1081628 -Node: Accessing Parameters1082564 -Node: Symbol Table Access1083801 -Node: Symbol table by name1084313 -Ref: Symbol table by name-Footnote-11087337 -Node: Symbol table by cookie1087465 -Ref: Symbol table by cookie-Footnote-11091650 -Node: Cached values1091714 -Ref: Cached values-Footnote-11095250 -Node: Array Manipulation1095403 -Ref: Array Manipulation-Footnote-11096494 -Node: Array Data Types1096531 -Ref: Array Data Types-Footnote-11099189 -Node: Array Functions1099281 -Node: Flattening Arrays1103779 -Node: Creating Arrays1110755 -Node: Redirection API1115522 -Node: Extension API Variables1118355 -Node: Extension Versioning1119066 -Ref: gawk-api-version1119495 -Node: Extension GMP/MPFR Versioning1121226 -Node: Extension API Informational Variables1122854 -Node: Extension API Boilerplate1123927 -Node: Changes from API V11127901 -Node: Finding Extensions1129473 -Node: Extension Example1130032 -Node: Internal File Description1130830 -Node: Internal File Ops1134910 -Ref: Internal File Ops-Footnote-11146260 -Node: Using Internal File Ops1146400 -Ref: Using Internal File Ops-Footnote-11148783 -Node: Extension Samples1149057 -Node: Extension Sample File Functions1150586 -Node: Extension Sample Fnmatch1158235 -Node: Extension Sample Fork1159722 -Node: Extension Sample Inplace1160940 -Node: Extension Sample Ord1164566 -Node: Extension Sample Readdir1165402 -Ref: table-readdir-file-types1166291 -Node: Extension Sample Revout1167358 -Node: Extension Sample Rev2way1167947 -Node: Extension Sample Read write array1168687 -Node: Extension Sample Readfile1170629 -Node: Extension Sample Time1171724 -Node: Extension Sample API Tests1173476 -Node: gawkextlib1173968 -Node: Extension summary1176886 -Node: Extension Exercises1180588 -Node: Language History1181830 -Node: V7/SVR3.11183486 -Node: SVR41185638 -Node: POSIX1187072 -Node: BTL1188453 -Node: POSIX/GNU1189182 -Node: Feature History1194960 -Node: Common Extensions1212135 -Node: Ranges and Locales1213418 -Ref: Ranges and Locales-Footnote-11218034 -Ref: Ranges and Locales-Footnote-21218061 -Ref: Ranges and Locales-Footnote-31218296 -Node: Contributors1218519 -Node: History summary1224516 -Node: Installation1225896 -Node: Gawk Distribution1226840 -Node: Getting1227324 -Node: Extracting1228287 -Node: Distribution contents1229925 -Node: Unix Installation1236405 -Node: Quick Installation1237209 -Node: Compiling with MPFR1239685 -Node: Shell Startup Files1240377 -Node: Additional Configuration Options1241466 -Node: Configuration Philosophy1243781 -Node: Compiling from Git1246177 -Node: Building the Documentation1246732 -Node: Non-Unix Installation1247654 -Node: PC Installation1248114 -Node: PC Binary Installation1248952 -Node: PC Compiling1249387 -Node: PC Using1250504 -Node: Cygwin1254057 -Node: MSYS1255281 -Node: VMS Installation1255883 -Node: VMS Compilation1256602 -Ref: VMS Compilation-Footnote-11257831 -Node: VMS Dynamic Extensions1257889 -Node: VMS Installation Details1259574 -Node: VMS Running1261836 -Node: VMS GNV1266115 -Node: Bugs1266829 -Node: Bug definition1267741 -Node: Bug address1270245 -Node: Usenet1273633 -Node: Performance bugs1274642 -Node: Asking for help1277563 -Node: Maintainers1279525 -Node: Other Versions1280719 -Node: Installation summary1288571 -Node: Notes1289935 -Node: Compatibility Mode1290729 -Node: Additions1291511 -Node: Accessing The Source1292436 -Node: Adding Code1293873 -Node: New Ports1300092 -Node: Derived Files1304467 -Ref: Derived Files-Footnote-11310127 -Ref: Derived Files-Footnote-21310162 -Ref: Derived Files-Footnote-31310760 -Node: Future Extensions1310874 -Node: Implementation Limitations1311532 -Node: Extension Design1312742 -Node: Old Extension Problems1313886 -Ref: Old Extension Problems-Footnote-11315404 -Node: Extension New Mechanism Goals1315461 -Ref: Extension New Mechanism Goals-Footnote-11318825 -Node: Extension Other Design Decisions1319014 -Node: Extension Future Growth1321127 -Node: Notes summary1321733 -Node: Basic Concepts1322891 -Node: Basic High Level1323572 -Ref: figure-general-flow1323854 -Ref: figure-process-flow1324539 -Ref: Basic High Level-Footnote-11327840 -Node: Basic Data Typing1328025 -Node: Glossary1331353 -Node: Copying1363238 -Node: GNU Free Documentation License1400781 -Node: Index1425901 +Node: Foreword345523 +Node: Foreword449965 +Node: Preface51497 +Ref: Preface-Footnote-154356 +Ref: Preface-Footnote-254465 +Ref: Preface-Footnote-354699 +Node: History54841 +Node: Names57193 +Ref: Names-Footnote-158297 +Node: This Manual58444 +Ref: This Manual-Footnote-165083 +Node: Conventions65183 +Node: Manual History67552 +Ref: Manual History-Footnote-170549 +Ref: Manual History-Footnote-270590 +Node: How To Contribute70664 +Node: Acknowledgments71590 +Node: Getting Started76527 +Node: Running gawk78966 +Node: One-shot80156 +Node: Read Terminal81419 +Node: Long83412 +Node: Executable Scripts84925 +Ref: Executable Scripts-Footnote-187558 +Node: Comments87661 +Node: Quoting90145 +Node: DOS Quoting95671 +Node: Sample Data Files97727 +Node: Very Simple100322 +Node: Two Rules106424 +Node: More Complex108309 +Node: Statements/Lines110641 +Ref: Statements/Lines-Footnote-1115125 +Node: Other Features115390 +Node: When116326 +Ref: When-Footnote-1118080 +Node: Intro Summary118145 +Node: Invoking Gawk119029 +Node: Command Line120543 +Node: Options121341 +Ref: Options-Footnote-1139255 +Ref: Options-Footnote-2139486 +Node: Other Arguments139511 +Node: Naming Standard Input143522 +Node: Environment Variables144732 +Node: AWKPATH Variable145290 +Ref: AWKPATH Variable-Footnote-1148702 +Ref: AWKPATH Variable-Footnote-2148736 +Node: AWKLIBPATH Variable149107 +Ref: AWKLIBPATH Variable-Footnote-1150804 +Node: Other Environment Variables151179 +Node: Exit Status155131 +Node: Include Files155808 +Node: Loading Shared Libraries159498 +Node: Obsolete160926 +Node: Undocumented161618 +Node: Invoking Summary161915 +Node: Regexp164756 +Node: Regexp Usage166210 +Node: Escape Sequences168247 +Node: Regexp Operators174488 +Node: Regexp Operator Details174973 +Ref: Regexp Operator Details-Footnote-1182337 +Node: Interval Expressions182484 +Ref: Interval Expressions-Footnote-1184684 +Node: Bracket Expressions184782 +Ref: table-char-classes187258 +Node: Leftmost Longest190584 +Node: Computed Regexps191887 +Node: GNU Regexp Operators195314 +Node: Case-sensitivity199051 +Ref: Case-sensitivity-Footnote-1201917 +Ref: Case-sensitivity-Footnote-2202152 +Node: Regexp Summary202260 +Node: Reading Files203726 +Node: Records205995 +Node: awk split records207070 +Node: gawk split records211770 +Ref: gawk split records-Footnote-1216844 +Node: Fields216881 +Node: Nonconstant Fields219622 +Ref: Nonconstant Fields-Footnote-1221858 +Node: Changing Fields222062 +Node: Field Separators228093 +Node: Default Field Splitting230791 +Node: Regexp Field Splitting231909 +Node: Single Character Fields235586 +Node: Command Line Field Separator236646 +Node: Full Line Fields239864 +Ref: Full Line Fields-Footnote-1241386 +Ref: Full Line Fields-Footnote-2241432 +Node: Field Splitting Summary241533 +Node: Constant Size243607 +Node: Fixed width data244339 +Node: Skipping intervening247806 +Node: Allowing trailing data248604 +Node: Fields with fixed data249641 +Node: Splitting By Content251159 +Ref: Splitting By Content-Footnote-1254942 +Node: More CSV255105 +Node: Testing field creation256697 +Node: Multiple Line258322 +Node: Getline264599 +Node: Plain Getline267068 +Node: Getline/Variable269641 +Node: Getline/File270792 +Node: Getline/Variable/File272180 +Ref: Getline/Variable/File-Footnote-1273785 +Node: Getline/Pipe273873 +Node: Getline/Variable/Pipe276577 +Node: Getline/Coprocess277712 +Node: Getline/Variable/Coprocess278979 +Node: Getline Notes279721 +Node: Getline Summary282518 +Ref: table-getline-variants282942 +Node: Read Timeout283690 +Ref: Read Timeout-Footnote-1287596 +Node: Retrying Input287654 +Node: Command-line directories288853 +Node: Input Summary289759 +Node: Input Exercises292931 +Node: Printing293365 +Node: Print295199 +Node: Print Examples296656 +Node: Output Separators299436 +Node: OFMT301453 +Node: Printf302809 +Node: Basic Printf303594 +Node: Control Letters305168 +Node: Format Modifiers310330 +Node: Printf Examples316345 +Node: Redirection318831 +Node: Special FD325672 +Ref: Special FD-Footnote-1328840 +Node: Special Files328914 +Node: Other Inherited Files329531 +Node: Special Network330532 +Node: Special Caveats331392 +Node: Close Files And Pipes332341 +Ref: table-close-pipe-return-values339248 +Ref: Close Files And Pipes-Footnote-1340061 +Ref: Close Files And Pipes-Footnote-2340209 +Node: Nonfatal340361 +Node: Output Summary342699 +Node: Output Exercises343921 +Node: Expressions344600 +Node: Values345788 +Node: Constants346466 +Node: Scalar Constants347157 +Ref: Scalar Constants-Footnote-1349667 +Node: Nondecimal-numbers349917 +Node: Regexp Constants352918 +Node: Using Constant Regexps353444 +Node: Standard Regexp Constants354066 +Node: Strong Regexp Constants357254 +Node: Variables360678 +Node: Using Variables361335 +Node: Assignment Options363245 +Node: Conversion365716 +Node: Strings And Numbers366240 +Ref: Strings And Numbers-Footnote-1369303 +Node: Locale influences conversions369412 +Ref: table-locale-affects372170 +Node: All Operators372788 +Node: Arithmetic Ops373417 +Node: Concatenation376133 +Ref: Concatenation-Footnote-1378980 +Node: Assignment Ops379087 +Ref: table-assign-ops384078 +Node: Increment Ops385391 +Node: Truth Values and Conditions388851 +Node: Truth Values389925 +Node: Typing and Comparison390973 +Node: Variable Typing391793 +Ref: Variable Typing-Footnote-1398256 +Ref: Variable Typing-Footnote-2398328 +Node: Comparison Operators398405 +Ref: table-relational-ops398824 +Node: POSIX String Comparison402319 +Ref: POSIX String Comparison-Footnote-1404014 +Ref: POSIX String Comparison-Footnote-2404153 +Node: Boolean Ops404237 +Ref: Boolean Ops-Footnote-1408719 +Node: Conditional Exp408811 +Node: Function Calls410547 +Node: Precedence414424 +Node: Locales418083 +Node: Expressions Summary419715 +Node: Patterns and Actions422288 +Node: Pattern Overview423408 +Node: Regexp Patterns425085 +Node: Expression Patterns425627 +Node: Ranges429408 +Node: BEGIN/END432516 +Node: Using BEGIN/END433277 +Ref: Using BEGIN/END-Footnote-1436031 +Node: I/O And BEGIN/END436137 +Node: BEGINFILE/ENDFILE438450 +Node: Empty441681 +Node: Using Shell Variables441998 +Node: Action Overview444272 +Node: Statements446597 +Node: If Statement448445 +Node: While Statement449940 +Node: Do Statement451968 +Node: For Statement453116 +Node: Switch Statement456287 +Node: Break Statement458728 +Node: Continue Statement460820 +Node: Next Statement462647 +Node: Nextfile Statement465030 +Node: Exit Statement467719 +Node: Built-in Variables470122 +Node: User-modified471255 +Node: Auto-set479022 +Ref: Auto-set-Footnote-1495829 +Ref: Auto-set-Footnote-2496035 +Node: ARGC and ARGV496091 +Node: Pattern Action Summary500304 +Node: Arrays502734 +Node: Array Basics504063 +Node: Array Intro504907 +Ref: figure-array-elements506882 +Ref: Array Intro-Footnote-1509586 +Node: Reference to Elements509714 +Node: Assigning Elements512178 +Node: Array Example512669 +Node: Scanning an Array514428 +Node: Controlling Scanning517450 +Ref: Controlling Scanning-Footnote-1523906 +Node: Numeric Array Subscripts524222 +Node: Uninitialized Subscripts526406 +Node: Delete528025 +Ref: Delete-Footnote-1530777 +Node: Multidimensional530834 +Node: Multiscanning533929 +Node: Arrays of Arrays535520 +Node: Arrays Summary540288 +Node: Functions542381 +Node: Built-in543419 +Node: Calling Built-in544572 +Node: Boolean Functions546568 +Node: Numeric Functions547122 +Ref: Numeric Functions-Footnote-1551149 +Ref: Numeric Functions-Footnote-2551797 +Ref: Numeric Functions-Footnote-3551845 +Node: String Functions552117 +Ref: String Functions-Footnote-1576632 +Ref: String Functions-Footnote-2576760 +Ref: String Functions-Footnote-3577008 +Node: Gory Details577095 +Ref: table-sub-escapes578886 +Ref: table-sub-proposed580405 +Ref: table-posix-sub581768 +Ref: table-gensub-escapes583309 +Ref: Gory Details-Footnote-1584132 +Node: I/O Functions584286 +Ref: table-system-return-values590740 +Ref: I/O Functions-Footnote-1592820 +Ref: I/O Functions-Footnote-2592968 +Node: Time Functions593088 +Ref: Time Functions-Footnote-1603759 +Ref: Time Functions-Footnote-2603827 +Ref: Time Functions-Footnote-3603985 +Ref: Time Functions-Footnote-4604096 +Ref: Time Functions-Footnote-5604208 +Ref: Time Functions-Footnote-6604435 +Node: Bitwise Functions604701 +Ref: table-bitwise-ops605295 +Ref: Bitwise Functions-Footnote-1611358 +Ref: Bitwise Functions-Footnote-2611531 +Node: Type Functions611722 +Node: I18N Functions614676 +Node: User-defined616327 +Node: Definition Syntax617139 +Ref: Definition Syntax-Footnote-1622833 +Node: Function Example622904 +Ref: Function Example-Footnote-1625826 +Node: Function Calling625848 +Node: Calling A Function626436 +Node: Variable Scope627394 +Node: Pass By Value/Reference630388 +Node: Function Caveats633032 +Ref: Function Caveats-Footnote-1635079 +Node: Return Statement635199 +Node: Dynamic Typing638178 +Node: Indirect Calls639108 +Ref: Indirect Calls-Footnote-1649363 +Node: Functions Summary649491 +Node: Library Functions652196 +Ref: Library Functions-Footnote-1655803 +Ref: Library Functions-Footnote-2655946 +Node: Library Names656117 +Ref: Library Names-Footnote-1659784 +Ref: Library Names-Footnote-2660007 +Node: General Functions660093 +Node: Strtonum Function661275 +Node: Assert Function664297 +Node: Round Function667623 +Node: Cliff Random Function669163 +Node: Ordinal Functions670179 +Ref: Ordinal Functions-Footnote-1673242 +Ref: Ordinal Functions-Footnote-2673494 +Node: Join Function673704 +Ref: Join Function-Footnote-1675474 +Node: Getlocaltime Function675674 +Node: Readfile Function679416 +Node: Shell Quoting681393 +Node: Isnumeric Function682821 +Node: Data File Management684209 +Node: Filetrans Function684841 +Node: Rewind Function688937 +Node: File Checking690846 +Ref: File Checking-Footnote-1692180 +Node: Empty Files692381 +Node: Ignoring Assigns694360 +Node: Getopt Function695910 +Ref: Getopt Function-Footnote-1711133 +Node: Passwd Functions711333 +Ref: Passwd Functions-Footnote-1720172 +Node: Group Functions720260 +Ref: Group Functions-Footnote-1728158 +Node: Walking Arrays728365 +Node: Library Functions Summary731373 +Node: Library Exercises732779 +Node: Sample Programs733244 +Node: Running Examples734014 +Node: Clones734742 +Node: Cut Program735966 +Node: Egrep Program746106 +Node: Id Program755107 +Node: Split Program765054 +Ref: Split Program-Footnote-1774947 +Node: Tee Program775120 +Node: Uniq Program777910 +Node: Wc Program785498 +Node: Bytes vs. Characters785885 +Node: Using extensions787433 +Node: wc program788187 +Node: Miscellaneous Programs793052 +Node: Dupword Program794265 +Node: Alarm Program796295 +Node: Translate Program801150 +Ref: Translate Program-Footnote-1805715 +Node: Labels Program805985 +Ref: Labels Program-Footnote-1809336 +Node: Word Sorting809420 +Node: History Sorting813492 +Node: Extract Program815717 +Node: Simple Sed823771 +Node: Igawk Program826845 +Ref: Igawk Program-Footnote-1841176 +Ref: Igawk Program-Footnote-2841378 +Ref: Igawk Program-Footnote-3841500 +Node: Anagram Program841615 +Node: Signature Program844677 +Node: Programs Summary845924 +Node: Programs Exercises847138 +Ref: Programs Exercises-Footnote-1851268 +Node: Advanced Features851354 +Node: Nondecimal Data853485 +Node: Boolean Typed Values855083 +Node: Array Sorting856964 +Node: Controlling Array Traversal857669 +Ref: Controlling Array Traversal-Footnote-1866037 +Node: Array Sorting Functions866155 +Ref: Array Sorting Functions-Footnote-1871529 +Node: Two-way I/O871725 +Ref: Two-way I/O-Footnote-1879451 +Ref: Two-way I/O-Footnote-2879638 +Node: TCP/IP Networking879720 +Node: Profiling882838 +Node: Extension Philosophy892147 +Node: Advanced Features Summary893626 +Node: Internationalization895641 +Node: I18N and L10N897315 +Node: Explaining gettext898002 +Ref: Explaining gettext-Footnote-1903894 +Ref: Explaining gettext-Footnote-2904079 +Node: Programmer i18n904244 +Ref: Programmer i18n-Footnote-1909193 +Node: Translator i18n909242 +Node: String Extraction910036 +Ref: String Extraction-Footnote-1911168 +Node: Printf Ordering911254 +Ref: Printf Ordering-Footnote-1914040 +Node: I18N Portability914104 +Ref: I18N Portability-Footnote-1916560 +Node: I18N Example916623 +Ref: I18N Example-Footnote-1919898 +Ref: I18N Example-Footnote-2919971 +Node: Gawk I18N920080 +Node: I18N Summary920729 +Node: Debugger922070 +Node: Debugging923070 +Node: Debugging Concepts923511 +Node: Debugging Terms925320 +Node: Awk Debugging927895 +Ref: Awk Debugging-Footnote-1928840 +Node: Sample Debugging Session928972 +Node: Debugger Invocation929506 +Node: Finding The Bug930892 +Node: List of Debugger Commands937366 +Node: Breakpoint Control938699 +Node: Debugger Execution Control942393 +Node: Viewing And Changing Data945755 +Node: Execution Stack949296 +Node: Debugger Info950933 +Node: Miscellaneous Debugger Commands955004 +Node: Readline Support960066 +Node: Limitations960962 +Node: Debugging Summary963516 +Node: Namespaces964795 +Node: Global Namespace965906 +Node: Qualified Names967304 +Node: Default Namespace968303 +Node: Changing The Namespace969044 +Node: Naming Rules970658 +Node: Internal Name Management972506 +Node: Namespace Example973548 +Node: Namespace And Features976110 +Node: Namespace Summary977545 +Node: Arbitrary Precision Arithmetic979022 +Node: Computer Arithmetic980509 +Ref: table-numeric-ranges984275 +Ref: table-floating-point-ranges984768 +Ref: Computer Arithmetic-Footnote-1985426 +Node: Math Definitions985483 +Ref: table-ieee-formats988459 +Node: MPFR features989026 +Node: FP Math Caution990744 +Ref: FP Math Caution-Footnote-1991816 +Node: Inexactness of computations992185 +Node: Inexact representation993216 +Node: Comparing FP Values994576 +Node: Errors accumulate995817 +Node: Strange values997273 +Ref: Strange values-Footnote-1999861 +Node: Getting Accuracy999966 +Node: Try To Round1002676 +Node: Setting precision1003575 +Ref: table-predefined-precision-strings1004272 +Node: Setting the rounding mode1006102 +Ref: table-gawk-rounding-modes1006476 +Ref: Setting the rounding mode-Footnote-11010407 +Node: Arbitrary Precision Integers1010586 +Ref: Arbitrary Precision Integers-Footnote-11013761 +Node: Checking for MPFR1013910 +Node: POSIX Floating Point Problems1015384 +Ref: POSIX Floating Point Problems-Footnote-11019669 +Node: Floating point summary1019707 +Node: Dynamic Extensions1021897 +Node: Extension Intro1023450 +Node: Plugin License1024716 +Node: Extension Mechanism Outline1025513 +Ref: figure-load-extension1025952 +Ref: figure-register-new-function1027517 +Ref: figure-call-new-function1028609 +Node: Extension API Description1030671 +Node: Extension API Functions Introduction1032384 +Ref: table-api-std-headers1034220 +Node: General Data Types1038469 +Ref: General Data Types-Footnote-11047175 +Node: Memory Allocation Functions1047474 +Ref: Memory Allocation Functions-Footnote-11051975 +Node: Constructor Functions1052074 +Node: API Ownership of MPFR and GMP Values1055727 +Node: Registration Functions1057040 +Node: Extension Functions1057740 +Node: Exit Callback Functions1063062 +Node: Extension Version String1064312 +Node: Input Parsers1064975 +Node: Output Wrappers1077696 +Node: Two-way processors1082208 +Node: Printing Messages1084473 +Ref: Printing Messages-Footnote-11085644 +Node: Updating ERRNO1085797 +Node: Requesting Values1086536 +Ref: table-value-types-returned1087273 +Node: Accessing Parameters1088381 +Node: Symbol Table Access1089618 +Node: Symbol table by name1090130 +Ref: Symbol table by name-Footnote-11093154 +Node: Symbol table by cookie1093282 +Ref: Symbol table by cookie-Footnote-11097467 +Node: Cached values1097531 +Ref: Cached values-Footnote-11101067 +Node: Array Manipulation1101220 +Ref: Array Manipulation-Footnote-11102311 +Node: Array Data Types1102348 +Ref: Array Data Types-Footnote-11105006 +Node: Array Functions1105098 +Node: Flattening Arrays1109596 +Node: Creating Arrays1116572 +Node: Redirection API1121339 +Node: Extension API Variables1124172 +Node: Extension Versioning1124883 +Ref: gawk-api-version1125312 +Node: Extension GMP/MPFR Versioning1127043 +Node: Extension API Informational Variables1128671 +Node: Extension API Boilerplate1129744 +Node: Changes from API V11133718 +Node: Finding Extensions1135290 +Node: Extension Example1135849 +Node: Internal File Description1136647 +Node: Internal File Ops1140727 +Ref: Internal File Ops-Footnote-11152077 +Node: Using Internal File Ops1152217 +Ref: Using Internal File Ops-Footnote-11154600 +Node: Extension Samples1154874 +Node: Extension Sample File Functions1156403 +Node: Extension Sample Fnmatch1164052 +Node: Extension Sample Fork1165539 +Node: Extension Sample Inplace1166757 +Node: Extension Sample Ord1170383 +Node: Extension Sample Readdir1171219 +Ref: table-readdir-file-types1172108 +Node: Extension Sample Revout1173175 +Node: Extension Sample Rev2way1173764 +Node: Extension Sample Read write array1174504 +Node: Extension Sample Readfile1176446 +Node: Extension Sample Time1177541 +Node: Extension Sample API Tests1179293 +Node: gawkextlib1179785 +Node: Extension summary1182703 +Node: Extension Exercises1186405 +Node: Language History1187647 +Node: V7/SVR3.11189303 +Node: SVR41191455 +Node: POSIX1192889 +Node: BTL1194270 +Node: POSIX/GNU1194999 +Node: Feature History1200777 +Node: Common Extensions1217952 +Node: Ranges and Locales1219235 +Ref: Ranges and Locales-Footnote-11223851 +Ref: Ranges and Locales-Footnote-21223878 +Ref: Ranges and Locales-Footnote-31224113 +Node: Contributors1224336 +Node: History summary1230333 +Node: Installation1231713 +Node: Gawk Distribution1232657 +Node: Getting1233141 +Node: Extracting1234104 +Node: Distribution contents1235742 +Node: Unix Installation1242222 +Node: Quick Installation1243026 +Node: Compiling with MPFR1245502 +Node: Shell Startup Files1246194 +Node: Additional Configuration Options1247283 +Node: Configuration Philosophy1249598 +Node: Compiling from Git1251994 +Node: Building the Documentation1252549 +Node: Non-Unix Installation1253471 +Node: PC Installation1253931 +Node: PC Binary Installation1254769 +Node: PC Compiling1255204 +Node: PC Using1256321 +Node: Cygwin1259874 +Node: MSYS1261098 +Node: VMS Installation1261700 +Node: VMS Compilation1262419 +Ref: VMS Compilation-Footnote-11263648 +Node: VMS Dynamic Extensions1263706 +Node: VMS Installation Details1265391 +Node: VMS Running1267653 +Node: VMS GNV1271932 +Node: Bugs1272646 +Node: Bug definition1273558 +Node: Bug address1276062 +Node: Usenet1279450 +Node: Performance bugs1280459 +Node: Asking for help1283380 +Node: Maintainers1285342 +Node: Other Versions1286536 +Node: Installation summary1294388 +Node: Notes1295752 +Node: Compatibility Mode1296546 +Node: Additions1297328 +Node: Accessing The Source1298253 +Node: Adding Code1299690 +Node: New Ports1305909 +Node: Derived Files1310284 +Ref: Derived Files-Footnote-11315944 +Ref: Derived Files-Footnote-21315979 +Ref: Derived Files-Footnote-31316577 +Node: Future Extensions1316691 +Node: Implementation Limitations1317349 +Node: Extension Design1318559 +Node: Old Extension Problems1319703 +Ref: Old Extension Problems-Footnote-11321221 +Node: Extension New Mechanism Goals1321278 +Ref: Extension New Mechanism Goals-Footnote-11324642 +Node: Extension Other Design Decisions1324831 +Node: Extension Future Growth1326944 +Node: Notes summary1327550 +Node: Basic Concepts1328708 +Node: Basic High Level1329389 +Ref: figure-general-flow1329671 +Ref: figure-process-flow1330356 +Ref: Basic High Level-Footnote-11333657 +Node: Basic Data Typing1333842 +Node: Glossary1337170 +Node: Copying1369057 +Node: GNU Free Documentation License1406600 +Node: Index1431720 End Tag Table |