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 b499464c..c1c4080c 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 Statement456261 -Node: Break Statement458702 -Node: Continue Statement460794 -Node: Next Statement462621 -Node: Nextfile Statement465004 -Node: Exit Statement467693 -Node: Built-in Variables470096 -Node: User-modified471229 -Node: Auto-set478996 -Ref: Auto-set-Footnote-1495803 -Ref: Auto-set-Footnote-2496009 -Node: ARGC and ARGV496065 -Node: Pattern Action Summary500278 -Node: Arrays502708 -Node: Array Basics504037 -Node: Array Intro504881 -Ref: figure-array-elements506856 -Ref: Array Intro-Footnote-1509560 -Node: Reference to Elements509688 -Node: Assigning Elements512152 -Node: Array Example512643 -Node: Scanning an Array514402 -Node: Controlling Scanning517424 -Ref: Controlling Scanning-Footnote-1523880 -Node: Numeric Array Subscripts524196 -Node: Uninitialized Subscripts526380 -Node: Delete527999 -Ref: Delete-Footnote-1530751 -Node: Multidimensional530808 -Node: Multiscanning533903 -Node: Arrays of Arrays535494 -Node: Arrays Summary540262 -Node: Functions542355 -Node: Built-in543393 -Node: Calling Built-in544474 -Node: Numeric Functions546470 -Ref: Numeric Functions-Footnote-1550498 -Ref: Numeric Functions-Footnote-2551146 -Ref: Numeric Functions-Footnote-3551194 -Node: String Functions551466 -Ref: String Functions-Footnote-1575981 -Ref: String Functions-Footnote-2576109 -Ref: String Functions-Footnote-3576357 -Node: Gory Details576444 -Ref: table-sub-escapes578235 -Ref: table-sub-proposed579754 -Ref: table-posix-sub581117 -Ref: table-gensub-escapes582658 -Ref: Gory Details-Footnote-1583481 -Node: I/O Functions583635 -Ref: table-system-return-values590089 -Ref: I/O Functions-Footnote-1592169 -Ref: I/O Functions-Footnote-2592317 -Node: Time Functions592437 -Ref: Time Functions-Footnote-1603108 -Ref: Time Functions-Footnote-2603176 -Ref: Time Functions-Footnote-3603334 -Ref: Time Functions-Footnote-4603445 -Ref: Time Functions-Footnote-5603557 -Ref: Time Functions-Footnote-6603784 -Node: Bitwise Functions604050 -Ref: table-bitwise-ops604644 -Ref: Bitwise Functions-Footnote-1610707 -Ref: Bitwise Functions-Footnote-2610880 -Node: Type Functions611071 -Node: I18N Functions614400 -Node: User-defined616051 -Node: Definition Syntax616863 -Ref: Definition Syntax-Footnote-1622557 -Node: Function Example622628 -Ref: Function Example-Footnote-1625550 -Node: Function Calling625572 -Node: Calling A Function626160 -Node: Variable Scope627118 -Node: Pass By Value/Reference630112 -Node: Function Caveats632756 -Ref: Function Caveats-Footnote-1634803 -Node: Return Statement634923 -Node: Dynamic Typing637902 -Node: Indirect Calls638832 -Ref: Indirect Calls-Footnote-1649084 -Node: Functions Summary649212 -Node: Library Functions651917 -Ref: Library Functions-Footnote-1655524 -Ref: Library Functions-Footnote-2655667 -Node: Library Names655838 -Ref: Library Names-Footnote-1659505 -Ref: Library Names-Footnote-2659728 -Node: General Functions659814 -Node: Strtonum Function660996 -Node: Assert Function664018 -Node: Round Function667344 -Node: Cliff Random Function668884 -Node: Ordinal Functions669900 -Ref: Ordinal Functions-Footnote-1672963 -Ref: Ordinal Functions-Footnote-2673215 -Node: Join Function673425 -Ref: Join Function-Footnote-1675195 -Node: Getlocaltime Function675395 -Node: Readfile Function679137 -Node: Shell Quoting681114 -Node: Isnumeric Function682542 -Node: Data File Management683930 -Node: Filetrans Function684562 -Node: Rewind Function688658 -Node: File Checking690567 -Ref: File Checking-Footnote-1691901 -Node: Empty Files692102 -Node: Ignoring Assigns694081 -Node: Getopt Function695631 -Ref: Getopt Function-Footnote-1710854 -Node: Passwd Functions711054 -Ref: Passwd Functions-Footnote-1719893 -Node: Group Functions719981 -Ref: Group Functions-Footnote-1727879 -Node: Walking Arrays728086 -Node: Library Functions Summary731094 -Node: Library Exercises732500 -Node: Sample Programs732965 -Node: Running Examples733735 -Node: Clones734463 -Node: Cut Program735687 -Node: Egrep Program745827 -Node: Id Program754828 -Node: Split Program764775 -Ref: Split Program-Footnote-1774668 -Node: Tee Program774841 -Node: Uniq Program777631 -Node: Wc Program785219 -Node: Bytes vs. Characters785606 -Node: Using extensions787154 -Node: wc program787908 -Node: Miscellaneous Programs792773 -Node: Dupword Program793986 -Node: Alarm Program796016 -Node: Translate Program800871 -Ref: Translate Program-Footnote-1805436 -Node: Labels Program805706 -Ref: Labels Program-Footnote-1809057 -Node: Word Sorting809141 -Node: History Sorting813213 -Node: Extract Program815438 -Node: Simple Sed823492 -Node: Igawk Program826566 -Ref: Igawk Program-Footnote-1840897 -Ref: Igawk Program-Footnote-2841099 -Ref: Igawk Program-Footnote-3841221 -Node: Anagram Program841336 -Node: Signature Program844398 -Node: Programs Summary845645 -Node: Programs Exercises846859 -Ref: Programs Exercises-Footnote-1850989 -Node: Advanced Features851075 -Node: Nondecimal Data853142 -Node: Array Sorting854733 -Node: Controlling Array Traversal855433 -Ref: Controlling Array Traversal-Footnote-1863801 -Node: Array Sorting Functions863919 -Ref: Array Sorting Functions-Footnote-1869293 -Node: Two-way I/O869489 -Ref: Two-way I/O-Footnote-1877215 -Ref: Two-way I/O-Footnote-2877402 -Node: TCP/IP Networking877484 -Node: Profiling880602 -Node: Extension Philosophy889911 -Node: Advanced Features Summary891390 -Node: Internationalization893405 -Node: I18N and L10N895079 -Node: Explaining gettext895766 -Ref: Explaining gettext-Footnote-1901658 -Ref: Explaining gettext-Footnote-2901843 -Node: Programmer i18n902008 -Ref: Programmer i18n-Footnote-1906957 -Node: Translator i18n907006 -Node: String Extraction907800 -Ref: String Extraction-Footnote-1908932 -Node: Printf Ordering909018 -Ref: Printf Ordering-Footnote-1911804 -Node: I18N Portability911868 -Ref: I18N Portability-Footnote-1914324 -Node: I18N Example914387 -Ref: I18N Example-Footnote-1917662 -Ref: I18N Example-Footnote-2917735 -Node: Gawk I18N917844 -Node: I18N Summary918493 -Node: Debugger919834 -Node: Debugging920834 -Node: Debugging Concepts921275 -Node: Debugging Terms923084 -Node: Awk Debugging925659 -Ref: Awk Debugging-Footnote-1926604 -Node: Sample Debugging Session926736 -Node: Debugger Invocation927270 -Node: Finding The Bug928656 -Node: List of Debugger Commands935130 -Node: Breakpoint Control936463 -Node: Debugger Execution Control940157 -Node: Viewing And Changing Data943519 -Node: Execution Stack947060 -Node: Debugger Info948697 -Node: Miscellaneous Debugger Commands952768 -Node: Readline Support957830 -Node: Limitations958726 -Node: Debugging Summary961280 -Node: Namespaces962559 -Node: Global Namespace963670 -Node: Qualified Names965068 -Node: Default Namespace966067 -Node: Changing The Namespace966808 -Node: Naming Rules968422 -Node: Internal Name Management970270 -Node: Namespace Example971312 -Node: Namespace And Features973874 -Node: Namespace Summary975309 -Node: Arbitrary Precision Arithmetic976786 -Node: Computer Arithmetic978273 -Ref: table-numeric-ranges982039 -Ref: table-floating-point-ranges982532 -Ref: Computer Arithmetic-Footnote-1983190 -Node: Math Definitions983247 -Ref: table-ieee-formats986563 -Ref: Math Definitions-Footnote-1987166 -Node: MPFR features987271 -Node: FP Math Caution988989 -Ref: FP Math Caution-Footnote-1990061 -Node: Inexactness of computations990430 -Node: Inexact representation991390 -Node: Comparing FP Values992750 -Node: Errors accumulate993991 -Node: Getting Accuracy995424 -Node: Try To Round998134 -Node: Setting precision999033 -Ref: table-predefined-precision-strings999730 -Node: Setting the rounding mode1001560 -Ref: table-gawk-rounding-modes1001934 -Ref: Setting the rounding mode-Footnote-11005865 -Node: Arbitrary Precision Integers1006044 -Ref: Arbitrary Precision Integers-Footnote-11009219 -Node: Checking for MPFR1009368 -Node: POSIX Floating Point Problems1010842 -Ref: POSIX Floating Point Problems-Footnote-11015127 -Node: Floating point summary1015165 -Node: Dynamic Extensions1017355 -Node: Extension Intro1018908 -Node: Plugin License1020174 -Node: Extension Mechanism Outline1020971 -Ref: figure-load-extension1021410 -Ref: figure-register-new-function1022975 -Ref: figure-call-new-function1024067 -Node: Extension API Description1026129 -Node: Extension API Functions Introduction1027842 -Ref: table-api-std-headers1029678 -Node: General Data Types1033927 -Ref: General Data Types-Footnote-11042557 -Node: Memory Allocation Functions1042856 -Ref: Memory Allocation Functions-Footnote-11047357 -Node: Constructor Functions1047456 -Node: API Ownership of MPFR and GMP Values1050922 -Node: Registration Functions1052235 -Node: Extension Functions1052935 -Node: Exit Callback Functions1058257 -Node: Extension Version String1059507 -Node: Input Parsers1060170 -Node: Output Wrappers1072891 -Node: Two-way processors1077403 -Node: Printing Messages1079668 -Ref: Printing Messages-Footnote-11080839 -Node: Updating ERRNO1080992 -Node: Requesting Values1081731 -Ref: table-value-types-returned1082468 -Node: Accessing Parameters1083404 -Node: Symbol Table Access1084641 -Node: Symbol table by name1085153 -Ref: Symbol table by name-Footnote-11088178 -Node: Symbol table by cookie1088306 -Ref: Symbol table by cookie-Footnote-11092491 -Node: Cached values1092555 -Ref: Cached values-Footnote-11096091 -Node: Array Manipulation1096244 -Ref: Array Manipulation-Footnote-11097335 -Node: Array Data Types1097372 -Ref: Array Data Types-Footnote-11100030 -Node: Array Functions1100122 -Node: Flattening Arrays1104620 -Node: Creating Arrays1111596 -Node: Redirection API1116363 -Node: Extension API Variables1119196 -Node: Extension Versioning1119907 -Ref: gawk-api-version1120336 -Node: Extension GMP/MPFR Versioning1122067 -Node: Extension API Informational Variables1123695 -Node: Extension API Boilerplate1124768 -Node: Changes from API V11128742 -Node: Finding Extensions1130314 -Node: Extension Example1130873 -Node: Internal File Description1131671 -Node: Internal File Ops1135751 -Ref: Internal File Ops-Footnote-11147101 -Node: Using Internal File Ops1147241 -Ref: Using Internal File Ops-Footnote-11149624 -Node: Extension Samples1149898 -Node: Extension Sample File Functions1151427 -Node: Extension Sample Fnmatch1159076 -Node: Extension Sample Fork1160563 -Node: Extension Sample Inplace1161781 -Node: Extension Sample Ord1165407 -Node: Extension Sample Readdir1166243 -Ref: table-readdir-file-types1167132 -Node: Extension Sample Revout1168199 -Node: Extension Sample Rev2way1168788 -Node: Extension Sample Read write array1169528 -Node: Extension Sample Readfile1171470 -Node: Extension Sample Time1172565 -Node: Extension Sample API Tests1174317 -Node: gawkextlib1174809 -Node: Extension summary1177727 -Node: Extension Exercises1181429 -Node: Language History1182671 -Node: V7/SVR3.11184327 -Node: SVR41186479 -Node: POSIX1187913 -Node: BTL1189294 -Node: POSIX/GNU1190023 -Node: Feature History1195801 -Node: Common Extensions1212976 -Node: Ranges and Locales1214259 -Ref: Ranges and Locales-Footnote-11218875 -Ref: Ranges and Locales-Footnote-21218902 -Ref: Ranges and Locales-Footnote-31219137 -Node: Contributors1219360 -Node: History summary1225357 -Node: Installation1226737 -Node: Gawk Distribution1227681 -Node: Getting1228165 -Node: Extracting1229128 -Node: Distribution contents1230766 -Node: Unix Installation1237908 -Node: Quick Installation1238712 -Node: Compiling with MPFR1241188 -Node: Shell Startup Files1241880 -Node: Additional Configuration Options1242969 -Node: Configuration Philosophy1245284 -Node: Compiling from Git1247680 -Node: Building the Documentation1248235 -Node: Non-Unix Installation1249619 -Node: PC Installation1250079 -Node: PC Binary Installation1250917 -Node: PC Compiling1251352 -Node: PC Using1252469 -Node: Cygwin1256022 -Node: MSYS1257246 -Node: VMS Installation1257848 -Node: VMS Compilation1258567 -Ref: VMS Compilation-Footnote-11259796 -Node: VMS Dynamic Extensions1259854 -Node: VMS Installation Details1261539 -Node: VMS Running1263801 -Node: VMS GNV1268080 -Node: Bugs1268794 -Node: Bug definition1269706 -Node: Bug address1272642 -Node: Usenet1276030 -Node: Performance bugs1277219 -Node: Asking for help1280140 -Node: Maintainers1282107 -Node: Other Versions1283301 -Node: Installation summary1291153 -Node: Notes1292517 -Node: Compatibility Mode1293311 -Node: Additions1294093 -Node: Accessing The Source1295018 -Node: Adding Code1296455 -Node: New Ports1302674 -Node: Derived Files1307049 -Ref: Derived Files-Footnote-11312709 -Ref: Derived Files-Footnote-21312744 -Ref: Derived Files-Footnote-31313342 -Node: Future Extensions1313456 -Node: Implementation Limitations1314114 -Node: Extension Design1315324 -Node: Old Extension Problems1316468 -Ref: Old Extension Problems-Footnote-11317986 -Node: Extension New Mechanism Goals1318043 -Ref: Extension New Mechanism Goals-Footnote-11321407 -Node: Extension Other Design Decisions1321596 -Node: Extension Future Growth1323709 -Node: Notes summary1324315 -Node: Basic Concepts1325473 -Node: Basic High Level1326154 -Ref: figure-general-flow1326436 -Ref: figure-process-flow1327121 -Ref: Basic High Level-Footnote-11330422 -Node: Basic Data Typing1330607 -Node: Glossary1333935 -Node: Copying1365820 -Node: GNU Free Documentation License1403363 -Node: Index1428483 +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 Statement456661 +Node: Break Statement459102 +Node: Continue Statement461194 +Node: Next Statement463021 +Node: Nextfile Statement465404 +Node: Exit Statement468093 +Node: Built-in Variables470496 +Node: User-modified471629 +Node: Auto-set479396 +Ref: Auto-set-Footnote-1496203 +Ref: Auto-set-Footnote-2496409 +Node: ARGC and ARGV496465 +Node: Pattern Action Summary500678 +Node: Arrays503108 +Node: Array Basics504437 +Node: Array Intro505281 +Ref: figure-array-elements507256 +Ref: Array Intro-Footnote-1509960 +Node: Reference to Elements510088 +Node: Assigning Elements512552 +Node: Array Example513043 +Node: Scanning an Array514802 +Node: Controlling Scanning517824 +Ref: Controlling Scanning-Footnote-1524280 +Node: Numeric Array Subscripts524596 +Node: Uninitialized Subscripts526780 +Node: Delete528399 +Ref: Delete-Footnote-1531151 +Node: Multidimensional531208 +Node: Multiscanning534303 +Node: Arrays of Arrays535894 +Node: Arrays Summary540662 +Node: Functions542755 +Node: Built-in543793 +Node: Calling Built-in544946 +Node: Boolean Functions546942 +Node: Numeric Functions547496 +Ref: Numeric Functions-Footnote-1551523 +Ref: Numeric Functions-Footnote-2552171 +Ref: Numeric Functions-Footnote-3552219 +Node: String Functions552491 +Ref: String Functions-Footnote-1577006 +Ref: String Functions-Footnote-2577134 +Ref: String Functions-Footnote-3577382 +Node: Gory Details577469 +Ref: table-sub-escapes579260 +Ref: table-sub-proposed580779 +Ref: table-posix-sub582142 +Ref: table-gensub-escapes583683 +Ref: Gory Details-Footnote-1584506 +Node: I/O Functions584660 +Ref: table-system-return-values591114 +Ref: I/O Functions-Footnote-1593194 +Ref: I/O Functions-Footnote-2593342 +Node: Time Functions593462 +Ref: Time Functions-Footnote-1604133 +Ref: Time Functions-Footnote-2604201 +Ref: Time Functions-Footnote-3604359 +Ref: Time Functions-Footnote-4604470 +Ref: Time Functions-Footnote-5604582 +Ref: Time Functions-Footnote-6604809 +Node: Bitwise Functions605075 +Ref: table-bitwise-ops605669 +Ref: Bitwise Functions-Footnote-1611732 +Ref: Bitwise Functions-Footnote-2611905 +Node: Type Functions612096 +Node: I18N Functions615516 +Node: User-defined617167 +Node: Definition Syntax617979 +Ref: Definition Syntax-Footnote-1623673 +Node: Function Example623744 +Ref: Function Example-Footnote-1626666 +Node: Function Calling626688 +Node: Calling A Function627276 +Node: Variable Scope628234 +Node: Pass By Value/Reference631228 +Node: Function Caveats633872 +Ref: Function Caveats-Footnote-1635919 +Node: Return Statement636039 +Node: Dynamic Typing639018 +Node: Indirect Calls639948 +Ref: Indirect Calls-Footnote-1650203 +Node: Functions Summary650331 +Node: Library Functions653036 +Ref: Library Functions-Footnote-1656643 +Ref: Library Functions-Footnote-2656786 +Node: Library Names656957 +Ref: Library Names-Footnote-1660624 +Ref: Library Names-Footnote-2660847 +Node: General Functions660933 +Node: Strtonum Function662115 +Node: Assert Function665137 +Node: Round Function668463 +Node: Cliff Random Function670003 +Node: Ordinal Functions671019 +Ref: Ordinal Functions-Footnote-1674082 +Ref: Ordinal Functions-Footnote-2674334 +Node: Join Function674544 +Ref: Join Function-Footnote-1676314 +Node: Getlocaltime Function676514 +Node: Readfile Function680256 +Node: Shell Quoting682233 +Node: Isnumeric Function683661 +Node: Data File Management685049 +Node: Filetrans Function685681 +Node: Rewind Function689777 +Node: File Checking691686 +Ref: File Checking-Footnote-1693020 +Node: Empty Files693221 +Node: Ignoring Assigns695200 +Node: Getopt Function696750 +Ref: Getopt Function-Footnote-1711973 +Node: Passwd Functions712173 +Ref: Passwd Functions-Footnote-1721012 +Node: Group Functions721100 +Ref: Group Functions-Footnote-1728998 +Node: Walking Arrays729205 +Node: Library Functions Summary732213 +Node: Library Exercises733619 +Node: Sample Programs734084 +Node: Running Examples734854 +Node: Clones735582 +Node: Cut Program736806 +Node: Egrep Program746946 +Node: Id Program755947 +Node: Split Program765894 +Ref: Split Program-Footnote-1775787 +Node: Tee Program775960 +Node: Uniq Program778750 +Node: Wc Program786338 +Node: Bytes vs. Characters786725 +Node: Using extensions788273 +Node: wc program789027 +Node: Miscellaneous Programs793892 +Node: Dupword Program795105 +Node: Alarm Program797135 +Node: Translate Program801990 +Ref: Translate Program-Footnote-1806555 +Node: Labels Program806825 +Ref: Labels Program-Footnote-1810176 +Node: Word Sorting810260 +Node: History Sorting814332 +Node: Extract Program816557 +Node: Simple Sed824611 +Node: Igawk Program827685 +Ref: Igawk Program-Footnote-1842016 +Ref: Igawk Program-Footnote-2842218 +Ref: Igawk Program-Footnote-3842340 +Node: Anagram Program842455 +Node: Signature Program845517 +Node: Programs Summary846764 +Node: Programs Exercises847978 +Ref: Programs Exercises-Footnote-1852108 +Node: Advanced Features852194 +Node: Nondecimal Data854325 +Node: Boolean Typed Values855923 +Node: Array Sorting857804 +Node: Controlling Array Traversal858509 +Ref: Controlling Array Traversal-Footnote-1866877 +Node: Array Sorting Functions866995 +Ref: Array Sorting Functions-Footnote-1872369 +Node: Two-way I/O872565 +Ref: Two-way I/O-Footnote-1880291 +Ref: Two-way I/O-Footnote-2880478 +Node: TCP/IP Networking880560 +Node: Profiling883678 +Node: Extension Philosophy892987 +Node: Advanced Features Summary894466 +Node: Internationalization896481 +Node: I18N and L10N898155 +Node: Explaining gettext898842 +Ref: Explaining gettext-Footnote-1904734 +Ref: Explaining gettext-Footnote-2904919 +Node: Programmer i18n905084 +Ref: Programmer i18n-Footnote-1910033 +Node: Translator i18n910082 +Node: String Extraction910876 +Ref: String Extraction-Footnote-1912008 +Node: Printf Ordering912094 +Ref: Printf Ordering-Footnote-1914880 +Node: I18N Portability914944 +Ref: I18N Portability-Footnote-1917400 +Node: I18N Example917463 +Ref: I18N Example-Footnote-1920738 +Ref: I18N Example-Footnote-2920811 +Node: Gawk I18N920920 +Node: I18N Summary921569 +Node: Debugger922910 +Node: Debugging923910 +Node: Debugging Concepts924351 +Node: Debugging Terms926160 +Node: Awk Debugging928735 +Ref: Awk Debugging-Footnote-1929680 +Node: Sample Debugging Session929812 +Node: Debugger Invocation930346 +Node: Finding The Bug931732 +Node: List of Debugger Commands938206 +Node: Breakpoint Control939539 +Node: Debugger Execution Control943233 +Node: Viewing And Changing Data946595 +Node: Execution Stack950136 +Node: Debugger Info951773 +Node: Miscellaneous Debugger Commands955844 +Node: Readline Support960906 +Node: Limitations961802 +Node: Debugging Summary964356 +Node: Namespaces965635 +Node: Global Namespace966746 +Node: Qualified Names968144 +Node: Default Namespace969143 +Node: Changing The Namespace969884 +Node: Naming Rules971498 +Node: Internal Name Management973346 +Node: Namespace Example974388 +Node: Namespace And Features976950 +Node: Namespace Summary978385 +Node: Arbitrary Precision Arithmetic979862 +Node: Computer Arithmetic981349 +Ref: table-numeric-ranges985115 +Ref: table-floating-point-ranges985608 +Ref: Computer Arithmetic-Footnote-1986266 +Node: Math Definitions986323 +Ref: table-ieee-formats989299 +Node: MPFR features989866 +Node: FP Math Caution991584 +Ref: FP Math Caution-Footnote-1992656 +Node: Inexactness of computations993025 +Node: Inexact representation994056 +Node: Comparing FP Values995416 +Node: Errors accumulate996657 +Node: Strange values998113 +Ref: Strange values-Footnote-11000701 +Node: Getting Accuracy1000806 +Node: Try To Round1003516 +Node: Setting precision1004415 +Ref: table-predefined-precision-strings1005112 +Node: Setting the rounding mode1006942 +Ref: table-gawk-rounding-modes1007316 +Ref: Setting the rounding mode-Footnote-11011247 +Node: Arbitrary Precision Integers1011426 +Ref: Arbitrary Precision Integers-Footnote-11014601 +Node: Checking for MPFR1014750 +Node: POSIX Floating Point Problems1016224 +Ref: POSIX Floating Point Problems-Footnote-11020509 +Node: Floating point summary1020547 +Node: Dynamic Extensions1022737 +Node: Extension Intro1024290 +Node: Plugin License1025556 +Node: Extension Mechanism Outline1026353 +Ref: figure-load-extension1026792 +Ref: figure-register-new-function1028357 +Ref: figure-call-new-function1029449 +Node: Extension API Description1031511 +Node: Extension API Functions Introduction1033224 +Ref: table-api-std-headers1035060 +Node: General Data Types1039309 +Ref: General Data Types-Footnote-11048015 +Node: Memory Allocation Functions1048314 +Ref: Memory Allocation Functions-Footnote-11052815 +Node: Constructor Functions1052914 +Node: API Ownership of MPFR and GMP Values1056567 +Node: Registration Functions1057880 +Node: Extension Functions1058580 +Node: Exit Callback Functions1063902 +Node: Extension Version String1065152 +Node: Input Parsers1065815 +Node: Output Wrappers1078536 +Node: Two-way processors1083048 +Node: Printing Messages1085313 +Ref: Printing Messages-Footnote-11086484 +Node: Updating ERRNO1086637 +Node: Requesting Values1087376 +Ref: table-value-types-returned1088113 +Node: Accessing Parameters1089221 +Node: Symbol Table Access1090458 +Node: Symbol table by name1090970 +Ref: Symbol table by name-Footnote-11093995 +Node: Symbol table by cookie1094123 +Ref: Symbol table by cookie-Footnote-11098308 +Node: Cached values1098372 +Ref: Cached values-Footnote-11101908 +Node: Array Manipulation1102061 +Ref: Array Manipulation-Footnote-11103152 +Node: Array Data Types1103189 +Ref: Array Data Types-Footnote-11105847 +Node: Array Functions1105939 +Node: Flattening Arrays1110437 +Node: Creating Arrays1117413 +Node: Redirection API1122180 +Node: Extension API Variables1125013 +Node: Extension Versioning1125724 +Ref: gawk-api-version1126153 +Node: Extension GMP/MPFR Versioning1127884 +Node: Extension API Informational Variables1129512 +Node: Extension API Boilerplate1130585 +Node: Changes from API V11134559 +Node: Finding Extensions1136131 +Node: Extension Example1136690 +Node: Internal File Description1137488 +Node: Internal File Ops1141568 +Ref: Internal File Ops-Footnote-11152918 +Node: Using Internal File Ops1153058 +Ref: Using Internal File Ops-Footnote-11155441 +Node: Extension Samples1155715 +Node: Extension Sample File Functions1157244 +Node: Extension Sample Fnmatch1164893 +Node: Extension Sample Fork1166380 +Node: Extension Sample Inplace1167598 +Node: Extension Sample Ord1171224 +Node: Extension Sample Readdir1172060 +Ref: table-readdir-file-types1172949 +Node: Extension Sample Revout1174016 +Node: Extension Sample Rev2way1174605 +Node: Extension Sample Read write array1175345 +Node: Extension Sample Readfile1177287 +Node: Extension Sample Time1178382 +Node: Extension Sample API Tests1180134 +Node: gawkextlib1180626 +Node: Extension summary1183544 +Node: Extension Exercises1187246 +Node: Language History1188488 +Node: V7/SVR3.11190144 +Node: SVR41192296 +Node: POSIX1193730 +Node: BTL1195111 +Node: POSIX/GNU1195840 +Node: Feature History1201618 +Node: Common Extensions1218793 +Node: Ranges and Locales1220076 +Ref: Ranges and Locales-Footnote-11224692 +Ref: Ranges and Locales-Footnote-21224719 +Ref: Ranges and Locales-Footnote-31224954 +Node: Contributors1225177 +Node: History summary1231174 +Node: Installation1232554 +Node: Gawk Distribution1233498 +Node: Getting1233982 +Node: Extracting1234945 +Node: Distribution contents1236583 +Node: Unix Installation1243725 +Node: Quick Installation1244529 +Node: Compiling with MPFR1247005 +Node: Shell Startup Files1247697 +Node: Additional Configuration Options1248786 +Node: Configuration Philosophy1251101 +Node: Compiling from Git1253497 +Node: Building the Documentation1254052 +Node: Non-Unix Installation1255436 +Node: PC Installation1255896 +Node: PC Binary Installation1256734 +Node: PC Compiling1257169 +Node: PC Using1258286 +Node: Cygwin1261839 +Node: MSYS1263063 +Node: VMS Installation1263665 +Node: VMS Compilation1264384 +Ref: VMS Compilation-Footnote-11265613 +Node: VMS Dynamic Extensions1265671 +Node: VMS Installation Details1267356 +Node: VMS Running1269618 +Node: VMS GNV1273897 +Node: Bugs1274611 +Node: Bug definition1275523 +Node: Bug address1278459 +Node: Usenet1281847 +Node: Performance bugs1283036 +Node: Asking for help1285957 +Node: Maintainers1287924 +Node: Other Versions1289118 +Node: Installation summary1296970 +Node: Notes1298334 +Node: Compatibility Mode1299128 +Node: Additions1299910 +Node: Accessing The Source1300835 +Node: Adding Code1302272 +Node: New Ports1308491 +Node: Derived Files1312866 +Ref: Derived Files-Footnote-11318526 +Ref: Derived Files-Footnote-21318561 +Ref: Derived Files-Footnote-31319159 +Node: Future Extensions1319273 +Node: Implementation Limitations1319931 +Node: Extension Design1321141 +Node: Old Extension Problems1322285 +Ref: Old Extension Problems-Footnote-11323803 +Node: Extension New Mechanism Goals1323860 +Ref: Extension New Mechanism Goals-Footnote-11327224 +Node: Extension Other Design Decisions1327413 +Node: Extension Future Growth1329526 +Node: Notes summary1330132 +Node: Basic Concepts1331290 +Node: Basic High Level1331971 +Ref: figure-general-flow1332253 +Ref: figure-process-flow1332938 +Ref: Basic High Level-Footnote-11336239 +Node: Basic Data Typing1336424 +Node: Glossary1339752 +Node: Copying1371639 +Node: GNU Free Documentation License1409182 +Node: Index1434302 End Tag Table |