diff options
Diffstat (limited to 'doc/gawk.info')
-rw-r--r-- | doc/gawk.info | 1450 |
1 files changed, 790 insertions, 660 deletions
diff --git a/doc/gawk.info b/doc/gawk.info index 6702dca4..29209ebf 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 @@ -12826,6 +12832,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 @@ -12838,7 +12845,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 -------------------------------- @@ -12882,9 +12889,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 @@ -12910,7 +12932,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()' @@ -13008,7 +13030,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 @@ -13584,7 +13606,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. @@ -13730,7 +13752,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 @@ -13947,7 +13969,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 @@ -14264,7 +14286,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. @@ -14446,7 +14468,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 @@ -14470,6 +14492,9 @@ contexts. '"number"' X is a number. + '"number|bool"' + X is a Boolean typed value (*note Boolean Typed Values::). + '"string"' X is a string. @@ -14544,7 +14569,7 @@ different, they are automatically forced to be scalars. Consider: 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 @@ -15223,7 +15248,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 @@ -20976,6 +21001,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. @@ -20985,7 +21011,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 =================================== @@ -21028,9 +21054,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).) + + 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.2 Controlling Array Traversal and Array Sorting +12.3 Controlling Array Traversal and Array Sorting ================================================== 'gawk' lets you control the order in which a 'for (INDX in ARRAY)' loop @@ -21049,7 +21119,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 @@ -21288,7 +21358,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 @@ -21433,7 +21503,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 @@ -21628,7 +21698,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': @@ -21708,7 +21778,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 @@ -21970,7 +22040,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 @@ -22006,7 +22076,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 @@ -24363,18 +24433,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. @@ -24433,11 +24495,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 @@ -24530,6 +24587,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 @@ -24594,7 +24652,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 .......................... @@ -24642,6 +24700,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 @@ -25588,7 +25704,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'. @@ -25601,6 +25718,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 @@ -25616,6 +25734,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. @@ -25926,6 +26045,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 @@ -26651,16 +26775,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 @@ -33537,8 +33662,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 @@ -35695,6 +35820,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) @@ -36051,7 +36177,7 @@ Index * dark corner, length() function: String Functions. (line 201) * dark corner, split() function: String Functions. (line 380) * dark corner, array elements created by reference: Type Functions. - (line 85) + (line 88) * dark corner, parameter name restrictions: Definition Syntax. (line 44) * dark corner <1>: Glossary. (line 266) @@ -37295,6 +37421,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) @@ -38522,609 +38649,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: Variables360567 -Node: Using Variables361224 -Node: Assignment Options363134 -Node: Conversion365605 -Node: Strings And Numbers366129 -Ref: Strings And Numbers-Footnote-1369192 -Node: Locale influences conversions369301 -Ref: table-locale-affects372059 -Node: All Operators372677 -Node: Arithmetic Ops373306 -Node: Concatenation376022 -Ref: Concatenation-Footnote-1378869 -Node: Assignment Ops378976 -Ref: table-assign-ops383967 -Node: Increment Ops385280 -Node: Truth Values and Conditions388740 -Node: Truth Values389814 -Node: Typing and Comparison390862 -Node: Variable Typing391682 -Ref: Variable Typing-Footnote-1398145 -Ref: Variable Typing-Footnote-2398217 -Node: Comparison Operators398294 -Ref: table-relational-ops398713 -Node: POSIX String Comparison402208 -Ref: POSIX String Comparison-Footnote-1403903 -Ref: POSIX String Comparison-Footnote-2404042 -Node: Boolean Ops404126 -Ref: Boolean Ops-Footnote-1408608 -Node: Conditional Exp408700 -Node: Function Calls410436 -Node: Precedence414313 -Node: Locales417972 -Node: Expressions Summary419604 -Node: Patterns and Actions422177 -Node: Pattern Overview423297 -Node: Regexp Patterns424974 -Node: Expression Patterns425516 -Node: Ranges429297 -Node: BEGIN/END432405 -Node: Using BEGIN/END433166 -Ref: Using BEGIN/END-Footnote-1435920 -Node: I/O And BEGIN/END436026 -Node: BEGINFILE/ENDFILE438339 -Node: Empty441570 -Node: Using Shell Variables441887 -Node: Action Overview444161 -Node: Statements446486 -Node: If Statement448334 -Node: While Statement449829 -Node: Do Statement451857 -Node: For Statement453005 -Node: Switch Statement456260 -Node: Break Statement458701 -Node: Continue Statement460793 -Node: Next Statement462620 -Node: Nextfile Statement465003 -Node: Exit Statement467692 -Node: Built-in Variables470095 -Node: User-modified471228 -Node: Auto-set478995 -Ref: Auto-set-Footnote-1495802 -Ref: Auto-set-Footnote-2496008 -Node: ARGC and ARGV496064 -Node: Pattern Action Summary500277 -Node: Arrays502707 -Node: Array Basics504036 -Node: Array Intro504880 -Ref: figure-array-elements506855 -Ref: Array Intro-Footnote-1509559 -Node: Reference to Elements509687 -Node: Assigning Elements512151 -Node: Array Example512642 -Node: Scanning an Array514401 -Node: Controlling Scanning517423 -Ref: Controlling Scanning-Footnote-1523879 -Node: Numeric Array Subscripts524195 -Node: Uninitialized Subscripts526379 -Node: Delete527998 -Ref: Delete-Footnote-1530750 -Node: Multidimensional530807 -Node: Multiscanning533902 -Node: Arrays of Arrays535493 -Node: Arrays Summary540261 -Node: Functions542354 -Node: Built-in543392 -Node: Calling Built-in544473 -Node: Numeric Functions546469 -Ref: Numeric Functions-Footnote-1550497 -Ref: Numeric Functions-Footnote-2551145 -Ref: Numeric Functions-Footnote-3551193 -Node: String Functions551465 -Ref: String Functions-Footnote-1575980 -Ref: String Functions-Footnote-2576108 -Ref: String Functions-Footnote-3576356 -Node: Gory Details576443 -Ref: table-sub-escapes578234 -Ref: table-sub-proposed579753 -Ref: table-posix-sub581116 -Ref: table-gensub-escapes582657 -Ref: Gory Details-Footnote-1583480 -Node: I/O Functions583634 -Ref: table-system-return-values590088 -Ref: I/O Functions-Footnote-1592168 -Ref: I/O Functions-Footnote-2592316 -Node: Time Functions592436 -Ref: Time Functions-Footnote-1603107 -Ref: Time Functions-Footnote-2603175 -Ref: Time Functions-Footnote-3603333 -Ref: Time Functions-Footnote-4603444 -Ref: Time Functions-Footnote-5603556 -Ref: Time Functions-Footnote-6603783 -Node: Bitwise Functions604049 -Ref: table-bitwise-ops604643 -Ref: Bitwise Functions-Footnote-1610706 -Ref: Bitwise Functions-Footnote-2610879 -Node: Type Functions611070 -Node: I18N Functions614399 -Node: User-defined616050 -Node: Definition Syntax616862 -Ref: Definition Syntax-Footnote-1622556 -Node: Function Example622627 -Ref: Function Example-Footnote-1625549 -Node: Function Calling625571 -Node: Calling A Function626159 -Node: Variable Scope627117 -Node: Pass By Value/Reference630111 -Node: Function Caveats632755 -Ref: Function Caveats-Footnote-1634802 -Node: Return Statement634922 -Node: Dynamic Typing637901 -Node: Indirect Calls638831 -Ref: Indirect Calls-Footnote-1649083 -Node: Functions Summary649211 -Node: Library Functions651916 -Ref: Library Functions-Footnote-1655523 -Ref: Library Functions-Footnote-2655666 -Node: Library Names655837 -Ref: Library Names-Footnote-1659504 -Ref: Library Names-Footnote-2659727 -Node: General Functions659813 -Node: Strtonum Function660995 -Node: Assert Function664017 -Node: Round Function667343 -Node: Cliff Random Function668883 -Node: Ordinal Functions669899 -Ref: Ordinal Functions-Footnote-1672962 -Ref: Ordinal Functions-Footnote-2673214 -Node: Join Function673424 -Ref: Join Function-Footnote-1675194 -Node: Getlocaltime Function675394 -Node: Readfile Function679136 -Node: Shell Quoting681113 -Node: Isnumeric Function682541 -Node: Data File Management683929 -Node: Filetrans Function684561 -Node: Rewind Function688657 -Node: File Checking690566 -Ref: File Checking-Footnote-1691900 -Node: Empty Files692101 -Node: Ignoring Assigns694080 -Node: Getopt Function695630 -Ref: Getopt Function-Footnote-1710853 -Node: Passwd Functions711053 -Ref: Passwd Functions-Footnote-1719892 -Node: Group Functions719980 -Ref: Group Functions-Footnote-1727878 -Node: Walking Arrays728085 -Node: Library Functions Summary731093 -Node: Library Exercises732499 -Node: Sample Programs732964 -Node: Running Examples733734 -Node: Clones734462 -Node: Cut Program735686 -Node: Egrep Program745826 -Node: Id Program754827 -Node: Split Program764762 -Ref: Split Program-Footnote-1774655 -Node: Tee Program774828 -Node: Uniq Program777618 -Node: Wc Program785206 -Node: Bytes vs. Characters785593 -Node: Using extensions787141 -Node: wc program787895 -Node: Miscellaneous Programs792760 -Node: Dupword Program793973 -Node: Alarm Program796003 -Node: Translate Program800858 -Ref: Translate Program-Footnote-1805423 -Node: Labels Program805693 -Ref: Labels Program-Footnote-1809044 -Node: Word Sorting809128 -Node: History Sorting813200 -Node: Extract Program815425 -Node: Simple Sed823479 -Node: Igawk Program826553 -Ref: Igawk Program-Footnote-1840884 -Ref: Igawk Program-Footnote-2841086 -Ref: Igawk Program-Footnote-3841208 -Node: Anagram Program841323 -Node: Signature Program844385 -Node: Programs Summary845632 -Node: Programs Exercises846846 -Ref: Programs Exercises-Footnote-1850976 -Node: Advanced Features851062 -Node: Nondecimal Data853129 -Node: Array Sorting854720 -Node: Controlling Array Traversal855420 -Ref: Controlling Array Traversal-Footnote-1863788 -Node: Array Sorting Functions863906 -Ref: Array Sorting Functions-Footnote-1869280 -Node: Two-way I/O869476 -Ref: Two-way I/O-Footnote-1877202 -Ref: Two-way I/O-Footnote-2877389 -Node: TCP/IP Networking877471 -Node: Profiling880589 -Node: Extension Philosophy889898 -Node: Advanced Features Summary891377 -Node: Internationalization893392 -Node: I18N and L10N895066 -Node: Explaining gettext895753 -Ref: Explaining gettext-Footnote-1901645 -Ref: Explaining gettext-Footnote-2901830 -Node: Programmer i18n901995 -Ref: Programmer i18n-Footnote-1906944 -Node: Translator i18n906993 -Node: String Extraction907787 -Ref: String Extraction-Footnote-1908919 -Node: Printf Ordering909005 -Ref: Printf Ordering-Footnote-1911791 -Node: I18N Portability911855 -Ref: I18N Portability-Footnote-1914311 -Node: I18N Example914374 -Ref: I18N Example-Footnote-1917649 -Ref: I18N Example-Footnote-2917722 -Node: Gawk I18N917831 -Node: I18N Summary918480 -Node: Debugger919821 -Node: Debugging920821 -Node: Debugging Concepts921262 -Node: Debugging Terms923071 -Node: Awk Debugging925646 -Ref: Awk Debugging-Footnote-1926591 -Node: Sample Debugging Session926723 -Node: Debugger Invocation927257 -Node: Finding The Bug928643 -Node: List of Debugger Commands935117 -Node: Breakpoint Control936450 -Node: Debugger Execution Control940144 -Node: Viewing And Changing Data943506 -Node: Execution Stack947047 -Node: Debugger Info948684 -Node: Miscellaneous Debugger Commands952755 -Node: Readline Support957817 -Node: Limitations958713 -Node: Debugging Summary961267 -Node: Namespaces962546 -Node: Global Namespace963657 -Node: Qualified Names965055 -Node: Default Namespace966054 -Node: Changing The Namespace966795 -Node: Naming Rules968409 -Node: Internal Name Management970257 -Node: Namespace Example971299 -Node: Namespace And Features973861 -Node: Namespace Summary975296 -Node: Arbitrary Precision Arithmetic976773 -Node: Computer Arithmetic978260 -Ref: table-numeric-ranges982026 -Ref: table-floating-point-ranges982519 -Ref: Computer Arithmetic-Footnote-1983177 -Node: Math Definitions983234 -Ref: table-ieee-formats986550 -Ref: Math Definitions-Footnote-1987153 -Node: MPFR features987258 -Node: FP Math Caution988976 -Ref: FP Math Caution-Footnote-1990048 -Node: Inexactness of computations990417 -Node: Inexact representation991377 -Node: Comparing FP Values992737 -Node: Errors accumulate993978 -Node: Getting Accuracy995411 -Node: Try To Round998121 -Node: Setting precision999020 -Ref: table-predefined-precision-strings999717 -Node: Setting the rounding mode1001547 -Ref: table-gawk-rounding-modes1001921 -Ref: Setting the rounding mode-Footnote-11005852 -Node: Arbitrary Precision Integers1006031 -Ref: Arbitrary Precision Integers-Footnote-11009206 -Node: Checking for MPFR1009355 -Node: POSIX Floating Point Problems1010829 -Ref: POSIX Floating Point Problems-Footnote-11015114 -Node: Floating point summary1015152 -Node: Dynamic Extensions1017342 -Node: Extension Intro1018895 -Node: Plugin License1020161 -Node: Extension Mechanism Outline1020958 -Ref: figure-load-extension1021397 -Ref: figure-register-new-function1022962 -Ref: figure-call-new-function1024054 -Node: Extension API Description1026116 -Node: Extension API Functions Introduction1027829 -Ref: table-api-std-headers1029665 -Node: General Data Types1033914 -Ref: General Data Types-Footnote-11042544 -Node: Memory Allocation Functions1042843 -Ref: Memory Allocation Functions-Footnote-11047344 -Node: Constructor Functions1047443 -Node: API Ownership of MPFR and GMP Values1050909 -Node: Registration Functions1052222 -Node: Extension Functions1052922 -Node: Exit Callback Functions1058244 -Node: Extension Version String1059494 -Node: Input Parsers1060157 -Node: Output Wrappers1072878 -Node: Two-way processors1077390 -Node: Printing Messages1079655 -Ref: Printing Messages-Footnote-11080826 -Node: Updating ERRNO1080979 -Node: Requesting Values1081718 -Ref: table-value-types-returned1082455 -Node: Accessing Parameters1083391 -Node: Symbol Table Access1084628 -Node: Symbol table by name1085140 -Ref: Symbol table by name-Footnote-11088165 -Node: Symbol table by cookie1088293 -Ref: Symbol table by cookie-Footnote-11092478 -Node: Cached values1092542 -Ref: Cached values-Footnote-11096078 -Node: Array Manipulation1096231 -Ref: Array Manipulation-Footnote-11097322 -Node: Array Data Types1097359 -Ref: Array Data Types-Footnote-11100017 -Node: Array Functions1100109 -Node: Flattening Arrays1104607 -Node: Creating Arrays1111583 -Node: Redirection API1116350 -Node: Extension API Variables1119183 -Node: Extension Versioning1119894 -Ref: gawk-api-version1120323 -Node: Extension GMP/MPFR Versioning1122054 -Node: Extension API Informational Variables1123682 -Node: Extension API Boilerplate1124755 -Node: Changes from API V11128729 -Node: Finding Extensions1130301 -Node: Extension Example1130860 -Node: Internal File Description1131658 -Node: Internal File Ops1135738 -Ref: Internal File Ops-Footnote-11147088 -Node: Using Internal File Ops1147228 -Ref: Using Internal File Ops-Footnote-11149611 -Node: Extension Samples1149885 -Node: Extension Sample File Functions1151414 -Node: Extension Sample Fnmatch1159063 -Node: Extension Sample Fork1160550 -Node: Extension Sample Inplace1161768 -Node: Extension Sample Ord1165394 -Node: Extension Sample Readdir1166230 -Ref: table-readdir-file-types1167119 -Node: Extension Sample Revout1168186 -Node: Extension Sample Rev2way1168775 -Node: Extension Sample Read write array1169515 -Node: Extension Sample Readfile1171457 -Node: Extension Sample Time1172552 -Node: Extension Sample API Tests1174304 -Node: gawkextlib1174796 -Node: Extension summary1177714 -Node: Extension Exercises1181416 -Node: Language History1182658 -Node: V7/SVR3.11184314 -Node: SVR41186466 -Node: POSIX1187900 -Node: BTL1189281 -Node: POSIX/GNU1190010 -Node: Feature History1195788 -Node: Common Extensions1212963 -Node: Ranges and Locales1214246 -Ref: Ranges and Locales-Footnote-11218862 -Ref: Ranges and Locales-Footnote-21218889 -Ref: Ranges and Locales-Footnote-31219124 -Node: Contributors1219347 -Node: History summary1225344 -Node: Installation1226724 -Node: Gawk Distribution1227668 -Node: Getting1228152 -Node: Extracting1229115 -Node: Distribution contents1230753 -Node: Unix Installation1237896 -Node: Quick Installation1238700 -Node: Compiling with MPFR1241176 -Node: Shell Startup Files1241866 -Node: Additional Configuration Options1242955 -Node: Configuration Philosophy1245270 -Node: Compiling from Git1247666 -Node: Building the Documentation1248221 -Node: Non-Unix Installation1249605 -Node: PC Installation1250065 -Node: PC Binary Installation1250903 -Node: PC Compiling1251338 -Node: PC Using1252455 -Node: Cygwin1256008 -Node: MSYS1257232 -Node: VMS Installation1257834 -Node: VMS Compilation1258553 -Ref: VMS Compilation-Footnote-11259782 -Node: VMS Dynamic Extensions1259840 -Node: VMS Installation Details1261525 -Node: VMS Running1263787 -Node: VMS GNV1268066 -Node: Bugs1268780 -Node: Bug definition1269692 -Node: Bug address1272628 -Node: Usenet1276016 -Node: Performance bugs1277205 -Node: Asking for help1280126 -Node: Maintainers1282093 -Node: Other Versions1283287 -Node: Installation summary1291139 -Node: Notes1292503 -Node: Compatibility Mode1293297 -Node: Additions1294079 -Node: Accessing The Source1295004 -Node: Adding Code1296441 -Node: New Ports1302660 -Node: Derived Files1307035 -Ref: Derived Files-Footnote-11312695 -Ref: Derived Files-Footnote-21312730 -Ref: Derived Files-Footnote-31313328 -Node: Future Extensions1313442 -Node: Implementation Limitations1314100 -Node: Extension Design1315310 -Node: Old Extension Problems1316454 -Ref: Old Extension Problems-Footnote-11317972 -Node: Extension New Mechanism Goals1318029 -Ref: Extension New Mechanism Goals-Footnote-11321393 -Node: Extension Other Design Decisions1321582 -Node: Extension Future Growth1323695 -Node: Notes summary1324301 -Node: Basic Concepts1325459 -Node: Basic High Level1326140 -Ref: figure-general-flow1326422 -Ref: figure-process-flow1327107 -Ref: Basic High Level-Footnote-11330408 -Node: Basic Data Typing1330593 -Node: Glossary1333921 -Node: Copying1365806 -Node: GNU Free Documentation License1403349 -Node: Index1428469 +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: Variables360967 +Node: Using Variables361624 +Node: Assignment Options363534 +Node: Conversion366005 +Node: Strings And Numbers366529 +Ref: Strings And Numbers-Footnote-1369592 +Node: Locale influences conversions369701 +Ref: table-locale-affects372459 +Node: All Operators373077 +Node: Arithmetic Ops373706 +Node: Concatenation376422 +Ref: Concatenation-Footnote-1379269 +Node: Assignment Ops379376 +Ref: table-assign-ops384367 +Node: Increment Ops385680 +Node: Truth Values and Conditions389140 +Node: Truth Values390214 +Node: Typing and Comparison391262 +Node: Variable Typing392082 +Ref: Variable Typing-Footnote-1398545 +Ref: Variable Typing-Footnote-2398617 +Node: Comparison Operators398694 +Ref: table-relational-ops399113 +Node: POSIX String Comparison402608 +Ref: POSIX String Comparison-Footnote-1404303 +Ref: POSIX String Comparison-Footnote-2404442 +Node: Boolean Ops404526 +Ref: Boolean Ops-Footnote-1409008 +Node: Conditional Exp409100 +Node: Function Calls410836 +Node: Precedence414713 +Node: Locales418372 +Node: Expressions Summary420004 +Node: Patterns and Actions422577 +Node: Pattern Overview423697 +Node: Regexp Patterns425374 +Node: Expression Patterns425916 +Node: Ranges429697 +Node: BEGIN/END432805 +Node: Using BEGIN/END433566 +Ref: Using BEGIN/END-Footnote-1436320 +Node: I/O And BEGIN/END436426 +Node: BEGINFILE/ENDFILE438739 +Node: Empty441970 +Node: Using Shell Variables442287 +Node: Action Overview444561 +Node: Statements446886 +Node: If Statement448734 +Node: While Statement450229 +Node: Do Statement452257 +Node: For Statement453405 +Node: Switch Statement456660 +Node: Break Statement459101 +Node: Continue Statement461193 +Node: Next Statement463020 +Node: Nextfile Statement465403 +Node: Exit Statement468092 +Node: Built-in Variables470495 +Node: User-modified471628 +Node: Auto-set479395 +Ref: Auto-set-Footnote-1496202 +Ref: Auto-set-Footnote-2496408 +Node: ARGC and ARGV496464 +Node: Pattern Action Summary500677 +Node: Arrays503107 +Node: Array Basics504436 +Node: Array Intro505280 +Ref: figure-array-elements507255 +Ref: Array Intro-Footnote-1509959 +Node: Reference to Elements510087 +Node: Assigning Elements512551 +Node: Array Example513042 +Node: Scanning an Array514801 +Node: Controlling Scanning517823 +Ref: Controlling Scanning-Footnote-1524279 +Node: Numeric Array Subscripts524595 +Node: Uninitialized Subscripts526779 +Node: Delete528398 +Ref: Delete-Footnote-1531150 +Node: Multidimensional531207 +Node: Multiscanning534302 +Node: Arrays of Arrays535893 +Node: Arrays Summary540661 +Node: Functions542754 +Node: Built-in543792 +Node: Calling Built-in544945 +Node: Boolean Functions546941 +Node: Numeric Functions547495 +Ref: Numeric Functions-Footnote-1551522 +Ref: Numeric Functions-Footnote-2552170 +Ref: Numeric Functions-Footnote-3552218 +Node: String Functions552490 +Ref: String Functions-Footnote-1577005 +Ref: String Functions-Footnote-2577133 +Ref: String Functions-Footnote-3577381 +Node: Gory Details577468 +Ref: table-sub-escapes579259 +Ref: table-sub-proposed580778 +Ref: table-posix-sub582141 +Ref: table-gensub-escapes583682 +Ref: Gory Details-Footnote-1584505 +Node: I/O Functions584659 +Ref: table-system-return-values591113 +Ref: I/O Functions-Footnote-1593193 +Ref: I/O Functions-Footnote-2593341 +Node: Time Functions593461 +Ref: Time Functions-Footnote-1604132 +Ref: Time Functions-Footnote-2604200 +Ref: Time Functions-Footnote-3604358 +Ref: Time Functions-Footnote-4604469 +Ref: Time Functions-Footnote-5604581 +Ref: Time Functions-Footnote-6604808 +Node: Bitwise Functions605074 +Ref: table-bitwise-ops605668 +Ref: Bitwise Functions-Footnote-1611731 +Ref: Bitwise Functions-Footnote-2611904 +Node: Type Functions612095 +Node: I18N Functions615515 +Node: User-defined617166 +Node: Definition Syntax617978 +Ref: Definition Syntax-Footnote-1623672 +Node: Function Example623743 +Ref: Function Example-Footnote-1626665 +Node: Function Calling626687 +Node: Calling A Function627275 +Node: Variable Scope628233 +Node: Pass By Value/Reference631227 +Node: Function Caveats633871 +Ref: Function Caveats-Footnote-1635918 +Node: Return Statement636038 +Node: Dynamic Typing639017 +Node: Indirect Calls639947 +Ref: Indirect Calls-Footnote-1650202 +Node: Functions Summary650330 +Node: Library Functions653035 +Ref: Library Functions-Footnote-1656642 +Ref: Library Functions-Footnote-2656785 +Node: Library Names656956 +Ref: Library Names-Footnote-1660623 +Ref: Library Names-Footnote-2660846 +Node: General Functions660932 +Node: Strtonum Function662114 +Node: Assert Function665136 +Node: Round Function668462 +Node: Cliff Random Function670002 +Node: Ordinal Functions671018 +Ref: Ordinal Functions-Footnote-1674081 +Ref: Ordinal Functions-Footnote-2674333 +Node: Join Function674543 +Ref: Join Function-Footnote-1676313 +Node: Getlocaltime Function676513 +Node: Readfile Function680255 +Node: Shell Quoting682232 +Node: Isnumeric Function683660 +Node: Data File Management685048 +Node: Filetrans Function685680 +Node: Rewind Function689776 +Node: File Checking691685 +Ref: File Checking-Footnote-1693019 +Node: Empty Files693220 +Node: Ignoring Assigns695199 +Node: Getopt Function696749 +Ref: Getopt Function-Footnote-1711972 +Node: Passwd Functions712172 +Ref: Passwd Functions-Footnote-1721011 +Node: Group Functions721099 +Ref: Group Functions-Footnote-1728997 +Node: Walking Arrays729204 +Node: Library Functions Summary732212 +Node: Library Exercises733618 +Node: Sample Programs734083 +Node: Running Examples734853 +Node: Clones735581 +Node: Cut Program736805 +Node: Egrep Program746945 +Node: Id Program755946 +Node: Split Program765881 +Ref: Split Program-Footnote-1775774 +Node: Tee Program775947 +Node: Uniq Program778737 +Node: Wc Program786325 +Node: Bytes vs. Characters786712 +Node: Using extensions788260 +Node: wc program789014 +Node: Miscellaneous Programs793879 +Node: Dupword Program795092 +Node: Alarm Program797122 +Node: Translate Program801977 +Ref: Translate Program-Footnote-1806542 +Node: Labels Program806812 +Ref: Labels Program-Footnote-1810163 +Node: Word Sorting810247 +Node: History Sorting814319 +Node: Extract Program816544 +Node: Simple Sed824598 +Node: Igawk Program827672 +Ref: Igawk Program-Footnote-1842003 +Ref: Igawk Program-Footnote-2842205 +Ref: Igawk Program-Footnote-3842327 +Node: Anagram Program842442 +Node: Signature Program845504 +Node: Programs Summary846751 +Node: Programs Exercises847965 +Ref: Programs Exercises-Footnote-1852095 +Node: Advanced Features852181 +Node: Nondecimal Data854312 +Node: Boolean Typed Values855910 +Node: Array Sorting857791 +Node: Controlling Array Traversal858496 +Ref: Controlling Array Traversal-Footnote-1866864 +Node: Array Sorting Functions866982 +Ref: Array Sorting Functions-Footnote-1872356 +Node: Two-way I/O872552 +Ref: Two-way I/O-Footnote-1880278 +Ref: Two-way I/O-Footnote-2880465 +Node: TCP/IP Networking880547 +Node: Profiling883665 +Node: Extension Philosophy892974 +Node: Advanced Features Summary894453 +Node: Internationalization896468 +Node: I18N and L10N898142 +Node: Explaining gettext898829 +Ref: Explaining gettext-Footnote-1904721 +Ref: Explaining gettext-Footnote-2904906 +Node: Programmer i18n905071 +Ref: Programmer i18n-Footnote-1910020 +Node: Translator i18n910069 +Node: String Extraction910863 +Ref: String Extraction-Footnote-1911995 +Node: Printf Ordering912081 +Ref: Printf Ordering-Footnote-1914867 +Node: I18N Portability914931 +Ref: I18N Portability-Footnote-1917387 +Node: I18N Example917450 +Ref: I18N Example-Footnote-1920725 +Ref: I18N Example-Footnote-2920798 +Node: Gawk I18N920907 +Node: I18N Summary921556 +Node: Debugger922897 +Node: Debugging923897 +Node: Debugging Concepts924338 +Node: Debugging Terms926147 +Node: Awk Debugging928722 +Ref: Awk Debugging-Footnote-1929667 +Node: Sample Debugging Session929799 +Node: Debugger Invocation930333 +Node: Finding The Bug931719 +Node: List of Debugger Commands938193 +Node: Breakpoint Control939526 +Node: Debugger Execution Control943220 +Node: Viewing And Changing Data946582 +Node: Execution Stack950123 +Node: Debugger Info951760 +Node: Miscellaneous Debugger Commands955831 +Node: Readline Support960893 +Node: Limitations961789 +Node: Debugging Summary964343 +Node: Namespaces965622 +Node: Global Namespace966733 +Node: Qualified Names968131 +Node: Default Namespace969130 +Node: Changing The Namespace969871 +Node: Naming Rules971485 +Node: Internal Name Management973333 +Node: Namespace Example974375 +Node: Namespace And Features976937 +Node: Namespace Summary978372 +Node: Arbitrary Precision Arithmetic979849 +Node: Computer Arithmetic981336 +Ref: table-numeric-ranges985102 +Ref: table-floating-point-ranges985595 +Ref: Computer Arithmetic-Footnote-1986253 +Node: Math Definitions986310 +Ref: table-ieee-formats989286 +Node: MPFR features989853 +Node: FP Math Caution991571 +Ref: FP Math Caution-Footnote-1992643 +Node: Inexactness of computations993012 +Node: Inexact representation994043 +Node: Comparing FP Values995403 +Node: Errors accumulate996644 +Node: Strange values998100 +Ref: Strange values-Footnote-11000688 +Node: Getting Accuracy1000793 +Node: Try To Round1003503 +Node: Setting precision1004402 +Ref: table-predefined-precision-strings1005099 +Node: Setting the rounding mode1006929 +Ref: table-gawk-rounding-modes1007303 +Ref: Setting the rounding mode-Footnote-11011234 +Node: Arbitrary Precision Integers1011413 +Ref: Arbitrary Precision Integers-Footnote-11014588 +Node: Checking for MPFR1014737 +Node: POSIX Floating Point Problems1016211 +Ref: POSIX Floating Point Problems-Footnote-11020496 +Node: Floating point summary1020534 +Node: Dynamic Extensions1022724 +Node: Extension Intro1024277 +Node: Plugin License1025543 +Node: Extension Mechanism Outline1026340 +Ref: figure-load-extension1026779 +Ref: figure-register-new-function1028344 +Ref: figure-call-new-function1029436 +Node: Extension API Description1031498 +Node: Extension API Functions Introduction1033211 +Ref: table-api-std-headers1035047 +Node: General Data Types1039296 +Ref: General Data Types-Footnote-11048002 +Node: Memory Allocation Functions1048301 +Ref: Memory Allocation Functions-Footnote-11052802 +Node: Constructor Functions1052901 +Node: API Ownership of MPFR and GMP Values1056554 +Node: Registration Functions1057867 +Node: Extension Functions1058567 +Node: Exit Callback Functions1063889 +Node: Extension Version String1065139 +Node: Input Parsers1065802 +Node: Output Wrappers1078523 +Node: Two-way processors1083035 +Node: Printing Messages1085300 +Ref: Printing Messages-Footnote-11086471 +Node: Updating ERRNO1086624 +Node: Requesting Values1087363 +Ref: table-value-types-returned1088100 +Node: Accessing Parameters1089208 +Node: Symbol Table Access1090445 +Node: Symbol table by name1090957 +Ref: Symbol table by name-Footnote-11093982 +Node: Symbol table by cookie1094110 +Ref: Symbol table by cookie-Footnote-11098295 +Node: Cached values1098359 +Ref: Cached values-Footnote-11101895 +Node: Array Manipulation1102048 +Ref: Array Manipulation-Footnote-11103139 +Node: Array Data Types1103176 +Ref: Array Data Types-Footnote-11105834 +Node: Array Functions1105926 +Node: Flattening Arrays1110424 +Node: Creating Arrays1117400 +Node: Redirection API1122167 +Node: Extension API Variables1125000 +Node: Extension Versioning1125711 +Ref: gawk-api-version1126140 +Node: Extension GMP/MPFR Versioning1127871 +Node: Extension API Informational Variables1129499 +Node: Extension API Boilerplate1130572 +Node: Changes from API V11134546 +Node: Finding Extensions1136118 +Node: Extension Example1136677 +Node: Internal File Description1137475 +Node: Internal File Ops1141555 +Ref: Internal File Ops-Footnote-11152905 +Node: Using Internal File Ops1153045 +Ref: Using Internal File Ops-Footnote-11155428 +Node: Extension Samples1155702 +Node: Extension Sample File Functions1157231 +Node: Extension Sample Fnmatch1164880 +Node: Extension Sample Fork1166367 +Node: Extension Sample Inplace1167585 +Node: Extension Sample Ord1171211 +Node: Extension Sample Readdir1172047 +Ref: table-readdir-file-types1172936 +Node: Extension Sample Revout1174003 +Node: Extension Sample Rev2way1174592 +Node: Extension Sample Read write array1175332 +Node: Extension Sample Readfile1177274 +Node: Extension Sample Time1178369 +Node: Extension Sample API Tests1180121 +Node: gawkextlib1180613 +Node: Extension summary1183531 +Node: Extension Exercises1187233 +Node: Language History1188475 +Node: V7/SVR3.11190131 +Node: SVR41192283 +Node: POSIX1193717 +Node: BTL1195098 +Node: POSIX/GNU1195827 +Node: Feature History1201605 +Node: Common Extensions1218780 +Node: Ranges and Locales1220063 +Ref: Ranges and Locales-Footnote-11224679 +Ref: Ranges and Locales-Footnote-21224706 +Ref: Ranges and Locales-Footnote-31224941 +Node: Contributors1225164 +Node: History summary1231161 +Node: Installation1232541 +Node: Gawk Distribution1233485 +Node: Getting1233969 +Node: Extracting1234932 +Node: Distribution contents1236570 +Node: Unix Installation1243713 +Node: Quick Installation1244517 +Node: Compiling with MPFR1246993 +Node: Shell Startup Files1247683 +Node: Additional Configuration Options1248772 +Node: Configuration Philosophy1251087 +Node: Compiling from Git1253483 +Node: Building the Documentation1254038 +Node: Non-Unix Installation1255422 +Node: PC Installation1255882 +Node: PC Binary Installation1256720 +Node: PC Compiling1257155 +Node: PC Using1258272 +Node: Cygwin1261825 +Node: MSYS1263049 +Node: VMS Installation1263651 +Node: VMS Compilation1264370 +Ref: VMS Compilation-Footnote-11265599 +Node: VMS Dynamic Extensions1265657 +Node: VMS Installation Details1267342 +Node: VMS Running1269604 +Node: VMS GNV1273883 +Node: Bugs1274597 +Node: Bug definition1275509 +Node: Bug address1278445 +Node: Usenet1281833 +Node: Performance bugs1283022 +Node: Asking for help1285943 +Node: Maintainers1287910 +Node: Other Versions1289104 +Node: Installation summary1296956 +Node: Notes1298320 +Node: Compatibility Mode1299114 +Node: Additions1299896 +Node: Accessing The Source1300821 +Node: Adding Code1302258 +Node: New Ports1308477 +Node: Derived Files1312852 +Ref: Derived Files-Footnote-11318512 +Ref: Derived Files-Footnote-21318547 +Ref: Derived Files-Footnote-31319145 +Node: Future Extensions1319259 +Node: Implementation Limitations1319917 +Node: Extension Design1321127 +Node: Old Extension Problems1322271 +Ref: Old Extension Problems-Footnote-11323789 +Node: Extension New Mechanism Goals1323846 +Ref: Extension New Mechanism Goals-Footnote-11327210 +Node: Extension Other Design Decisions1327399 +Node: Extension Future Growth1329512 +Node: Notes summary1330118 +Node: Basic Concepts1331276 +Node: Basic High Level1331957 +Ref: figure-general-flow1332239 +Ref: figure-process-flow1332924 +Ref: Basic High Level-Footnote-11336225 +Node: Basic Data Typing1336410 +Node: Glossary1339738 +Node: Copying1371625 +Node: GNU Free Documentation License1409168 +Node: Index1434288 End Tag Table |