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 1c7dfa20..1169d3da 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 @@ -12823,6 +12829,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 @@ -12835,7 +12842,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 -------------------------------- @@ -12879,9 +12886,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 @@ -12907,7 +12929,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()' @@ -13005,7 +13027,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 @@ -13581,7 +13603,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. @@ -13727,7 +13749,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 @@ -13944,7 +13966,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 @@ -14261,7 +14283,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. @@ -14443,7 +14465,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 @@ -14467,6 +14489,9 @@ contexts. '"number"' X is a number. + '"number|bool"' + X is a Boolean typed value (*note Boolean Typed Values::). + '"string"' X is a string. @@ -14545,7 +14570,7 @@ not remain a scalar forever (or until deleted). 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 @@ -15224,7 +15249,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 @@ -20977,6 +21002,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. @@ -20986,7 +21012,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 =================================== @@ -21029,9 +21055,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 @@ -21050,7 +21120,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 @@ -21289,7 +21359,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 @@ -21434,7 +21504,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 @@ -21629,7 +21699,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': @@ -21709,7 +21779,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 @@ -21971,7 +22041,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 @@ -22007,7 +22077,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 @@ -24364,18 +24434,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. @@ -24434,11 +24496,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 @@ -24531,6 +24588,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 @@ -24595,7 +24653,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 .......................... @@ -24643,6 +24701,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 @@ -25589,7 +25705,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'. @@ -25602,6 +25719,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 @@ -25617,6 +25735,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. @@ -25927,6 +26046,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 @@ -26652,16 +26776,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 @@ -33525,8 +33650,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 @@ -35683,6 +35808,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) @@ -36039,7 +36165,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) @@ -37283,6 +37409,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) @@ -38510,609 +38637,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 Statement456176 -Node: Break Statement458617 -Node: Continue Statement460709 -Node: Next Statement462536 -Node: Nextfile Statement464919 -Node: Exit Statement467608 -Node: Built-in Variables470011 -Node: User-modified471144 -Node: Auto-set478911 -Ref: Auto-set-Footnote-1495718 -Ref: Auto-set-Footnote-2495924 -Node: ARGC and ARGV495980 -Node: Pattern Action Summary500193 -Node: Arrays502623 -Node: Array Basics503952 -Node: Array Intro504796 -Ref: figure-array-elements506771 -Ref: Array Intro-Footnote-1509475 -Node: Reference to Elements509603 -Node: Assigning Elements512067 -Node: Array Example512558 -Node: Scanning an Array514317 -Node: Controlling Scanning517339 -Ref: Controlling Scanning-Footnote-1523795 -Node: Numeric Array Subscripts524111 -Node: Uninitialized Subscripts526295 -Node: Delete527914 -Ref: Delete-Footnote-1530666 -Node: Multidimensional530723 -Node: Multiscanning533818 -Node: Arrays of Arrays535409 -Node: Arrays Summary540177 -Node: Functions542270 -Node: Built-in543308 -Node: Calling Built-in544389 -Node: Numeric Functions546385 -Ref: Numeric Functions-Footnote-1550413 -Ref: Numeric Functions-Footnote-2551061 -Ref: Numeric Functions-Footnote-3551109 -Node: String Functions551381 -Ref: String Functions-Footnote-1575896 -Ref: String Functions-Footnote-2576024 -Ref: String Functions-Footnote-3576272 -Node: Gory Details576359 -Ref: table-sub-escapes578150 -Ref: table-sub-proposed579669 -Ref: table-posix-sub581032 -Ref: table-gensub-escapes582573 -Ref: Gory Details-Footnote-1583396 -Node: I/O Functions583550 -Ref: table-system-return-values590004 -Ref: I/O Functions-Footnote-1592084 -Ref: I/O Functions-Footnote-2592232 -Node: Time Functions592352 -Ref: Time Functions-Footnote-1603023 -Ref: Time Functions-Footnote-2603091 -Ref: Time Functions-Footnote-3603249 -Ref: Time Functions-Footnote-4603360 -Ref: Time Functions-Footnote-5603472 -Ref: Time Functions-Footnote-6603699 -Node: Bitwise Functions603965 -Ref: table-bitwise-ops604559 -Ref: Bitwise Functions-Footnote-1610622 -Ref: Bitwise Functions-Footnote-2610795 -Node: Type Functions610986 -Node: I18N Functions614505 -Node: User-defined616156 -Node: Definition Syntax616968 -Ref: Definition Syntax-Footnote-1622662 -Node: Function Example622733 -Ref: Function Example-Footnote-1625655 -Node: Function Calling625677 -Node: Calling A Function626265 -Node: Variable Scope627223 -Node: Pass By Value/Reference630217 -Node: Function Caveats632861 -Ref: Function Caveats-Footnote-1634908 -Node: Return Statement635028 -Node: Dynamic Typing638007 -Node: Indirect Calls638937 -Ref: Indirect Calls-Footnote-1649189 -Node: Functions Summary649317 -Node: Library Functions652022 -Ref: Library Functions-Footnote-1655629 -Ref: Library Functions-Footnote-2655772 -Node: Library Names655943 -Ref: Library Names-Footnote-1659610 -Ref: Library Names-Footnote-2659833 -Node: General Functions659919 -Node: Strtonum Function661101 -Node: Assert Function664123 -Node: Round Function667449 -Node: Cliff Random Function668989 -Node: Ordinal Functions670005 -Ref: Ordinal Functions-Footnote-1673068 -Ref: Ordinal Functions-Footnote-2673320 -Node: Join Function673530 -Ref: Join Function-Footnote-1675300 -Node: Getlocaltime Function675500 -Node: Readfile Function679242 -Node: Shell Quoting681219 -Node: Isnumeric Function682647 -Node: Data File Management684035 -Node: Filetrans Function684667 -Node: Rewind Function688763 -Node: File Checking690672 -Ref: File Checking-Footnote-1692006 -Node: Empty Files692207 -Node: Ignoring Assigns694186 -Node: Getopt Function695736 -Ref: Getopt Function-Footnote-1710959 -Node: Passwd Functions711159 -Ref: Passwd Functions-Footnote-1719998 -Node: Group Functions720086 -Ref: Group Functions-Footnote-1727984 -Node: Walking Arrays728191 -Node: Library Functions Summary731199 -Node: Library Exercises732605 -Node: Sample Programs733070 -Node: Running Examples733840 -Node: Clones734568 -Node: Cut Program735792 -Node: Egrep Program745932 -Node: Id Program754933 -Node: Split Program764880 -Ref: Split Program-Footnote-1774773 -Node: Tee Program774946 -Node: Uniq Program777736 -Node: Wc Program785324 -Node: Bytes vs. Characters785711 -Node: Using extensions787259 -Node: wc program788013 -Node: Miscellaneous Programs792878 -Node: Dupword Program794091 -Node: Alarm Program796121 -Node: Translate Program800976 -Ref: Translate Program-Footnote-1805541 -Node: Labels Program805811 -Ref: Labels Program-Footnote-1809162 -Node: Word Sorting809246 -Node: History Sorting813318 -Node: Extract Program815543 -Node: Simple Sed823597 -Node: Igawk Program826671 -Ref: Igawk Program-Footnote-1841002 -Ref: Igawk Program-Footnote-2841204 -Ref: Igawk Program-Footnote-3841326 -Node: Anagram Program841441 -Node: Signature Program844503 -Node: Programs Summary845750 -Node: Programs Exercises846964 -Ref: Programs Exercises-Footnote-1851094 -Node: Advanced Features851180 -Node: Nondecimal Data853247 -Node: Array Sorting854838 -Node: Controlling Array Traversal855538 -Ref: Controlling Array Traversal-Footnote-1863906 -Node: Array Sorting Functions864024 -Ref: Array Sorting Functions-Footnote-1869398 -Node: Two-way I/O869594 -Ref: Two-way I/O-Footnote-1877320 -Ref: Two-way I/O-Footnote-2877507 -Node: TCP/IP Networking877589 -Node: Profiling880707 -Node: Extension Philosophy890016 -Node: Advanced Features Summary891495 -Node: Internationalization893510 -Node: I18N and L10N895184 -Node: Explaining gettext895871 -Ref: Explaining gettext-Footnote-1901763 -Ref: Explaining gettext-Footnote-2901948 -Node: Programmer i18n902113 -Ref: Programmer i18n-Footnote-1907062 -Node: Translator i18n907111 -Node: String Extraction907905 -Ref: String Extraction-Footnote-1909037 -Node: Printf Ordering909123 -Ref: Printf Ordering-Footnote-1911909 -Node: I18N Portability911973 -Ref: I18N Portability-Footnote-1914429 -Node: I18N Example914492 -Ref: I18N Example-Footnote-1917767 -Ref: I18N Example-Footnote-2917840 -Node: Gawk I18N917949 -Node: I18N Summary918598 -Node: Debugger919939 -Node: Debugging920939 -Node: Debugging Concepts921380 -Node: Debugging Terms923189 -Node: Awk Debugging925764 -Ref: Awk Debugging-Footnote-1926709 -Node: Sample Debugging Session926841 -Node: Debugger Invocation927375 -Node: Finding The Bug928761 -Node: List of Debugger Commands935235 -Node: Breakpoint Control936568 -Node: Debugger Execution Control940262 -Node: Viewing And Changing Data943624 -Node: Execution Stack947165 -Node: Debugger Info948802 -Node: Miscellaneous Debugger Commands952873 -Node: Readline Support957935 -Node: Limitations958831 -Node: Debugging Summary961385 -Node: Namespaces962664 -Node: Global Namespace963775 -Node: Qualified Names965173 -Node: Default Namespace966172 -Node: Changing The Namespace966913 -Node: Naming Rules968527 -Node: Internal Name Management970375 -Node: Namespace Example971417 -Node: Namespace And Features973979 -Node: Namespace Summary975414 -Node: Arbitrary Precision Arithmetic976891 -Node: Computer Arithmetic978378 -Ref: table-numeric-ranges982144 -Ref: table-floating-point-ranges982637 -Ref: Computer Arithmetic-Footnote-1983295 -Node: Math Definitions983352 -Ref: table-ieee-formats986668 -Ref: Math Definitions-Footnote-1987271 -Node: MPFR features987376 -Node: FP Math Caution989094 -Ref: FP Math Caution-Footnote-1990166 -Node: Inexactness of computations990535 -Node: Inexact representation991495 -Node: Comparing FP Values992855 -Node: Errors accumulate994096 -Node: Getting Accuracy995529 -Node: Try To Round998239 -Node: Setting precision999138 -Ref: table-predefined-precision-strings999835 -Node: Setting the rounding mode1001665 -Ref: table-gawk-rounding-modes1002039 -Ref: Setting the rounding mode-Footnote-11005970 -Node: Arbitrary Precision Integers1006149 -Ref: Arbitrary Precision Integers-Footnote-11009324 -Node: Checking for MPFR1009473 -Node: POSIX Floating Point Problems1010947 -Ref: POSIX Floating Point Problems-Footnote-11015232 -Node: Floating point summary1015270 -Node: Dynamic Extensions1017460 -Node: Extension Intro1019013 -Node: Plugin License1020279 -Node: Extension Mechanism Outline1021076 -Ref: figure-load-extension1021515 -Ref: figure-register-new-function1023080 -Ref: figure-call-new-function1024172 -Node: Extension API Description1026234 -Node: Extension API Functions Introduction1027947 -Ref: table-api-std-headers1029783 -Node: General Data Types1034032 -Ref: General Data Types-Footnote-11042662 -Node: Memory Allocation Functions1042961 -Ref: Memory Allocation Functions-Footnote-11047462 -Node: Constructor Functions1047561 -Node: API Ownership of MPFR and GMP Values1051027 -Node: Registration Functions1052340 -Node: Extension Functions1053040 -Node: Exit Callback Functions1058362 -Node: Extension Version String1059612 -Node: Input Parsers1060275 -Node: Output Wrappers1072996 -Node: Two-way processors1077508 -Node: Printing Messages1079773 -Ref: Printing Messages-Footnote-11080944 -Node: Updating ERRNO1081097 -Node: Requesting Values1081836 -Ref: table-value-types-returned1082573 -Node: Accessing Parameters1083509 -Node: Symbol Table Access1084746 -Node: Symbol table by name1085258 -Ref: Symbol table by name-Footnote-11088283 -Node: Symbol table by cookie1088411 -Ref: Symbol table by cookie-Footnote-11092596 -Node: Cached values1092660 -Ref: Cached values-Footnote-11096196 -Node: Array Manipulation1096349 -Ref: Array Manipulation-Footnote-11097440 -Node: Array Data Types1097477 -Ref: Array Data Types-Footnote-11100135 -Node: Array Functions1100227 -Node: Flattening Arrays1104725 -Node: Creating Arrays1111701 -Node: Redirection API1116468 -Node: Extension API Variables1119301 -Node: Extension Versioning1120012 -Ref: gawk-api-version1120441 -Node: Extension GMP/MPFR Versioning1122172 -Node: Extension API Informational Variables1123800 -Node: Extension API Boilerplate1124873 -Node: Changes from API V11128847 -Node: Finding Extensions1130419 -Node: Extension Example1130978 -Node: Internal File Description1131776 -Node: Internal File Ops1135856 -Ref: Internal File Ops-Footnote-11147206 -Node: Using Internal File Ops1147346 -Ref: Using Internal File Ops-Footnote-11149729 -Node: Extension Samples1150003 -Node: Extension Sample File Functions1151532 -Node: Extension Sample Fnmatch1159181 -Node: Extension Sample Fork1160668 -Node: Extension Sample Inplace1161886 -Node: Extension Sample Ord1165512 -Node: Extension Sample Readdir1166348 -Ref: table-readdir-file-types1167237 -Node: Extension Sample Revout1168304 -Node: Extension Sample Rev2way1168893 -Node: Extension Sample Read write array1169633 -Node: Extension Sample Readfile1171575 -Node: Extension Sample Time1172670 -Node: Extension Sample API Tests1174422 -Node: gawkextlib1174914 -Node: Extension summary1177832 -Node: Extension Exercises1181534 -Node: Language History1182776 -Node: V7/SVR3.11184432 -Node: SVR41186584 -Node: POSIX1188018 -Node: BTL1189399 -Node: POSIX/GNU1190128 -Node: Feature History1195906 -Node: Common Extensions1213081 -Node: Ranges and Locales1214364 -Ref: Ranges and Locales-Footnote-11218980 -Ref: Ranges and Locales-Footnote-21219007 -Ref: Ranges and Locales-Footnote-31219242 -Node: Contributors1219465 -Node: History summary1225462 -Node: Installation1226842 -Node: Gawk Distribution1227786 -Node: Getting1228270 -Node: Extracting1229233 -Node: Distribution contents1230871 -Node: Unix Installation1238013 -Node: Quick Installation1238817 -Node: Compiling with MPFR1241293 -Node: Shell Startup Files1241985 -Node: Additional Configuration Options1243074 -Node: Configuration Philosophy1245389 -Node: Compiling from Git1247785 -Node: Building the Documentation1248340 -Node: Non-Unix Installation1249724 -Node: PC Installation1250184 -Node: PC Binary Installation1251022 -Node: PC Compiling1251457 -Node: PC Using1252574 -Node: Cygwin1256127 -Node: MSYS1257351 -Node: VMS Installation1257953 -Node: VMS Compilation1258672 -Ref: VMS Compilation-Footnote-11259901 -Node: VMS Dynamic Extensions1259959 -Node: VMS Installation Details1261644 -Node: VMS Running1263906 -Node: VMS GNV1268185 -Node: Bugs1268899 -Node: Bug definition1269811 -Node: Bug address1272315 -Node: Usenet1275703 -Node: Performance bugs1276712 -Node: Asking for help1279633 -Node: Maintainers1281595 -Node: Other Versions1282789 -Node: Installation summary1290641 -Node: Notes1292005 -Node: Compatibility Mode1292799 -Node: Additions1293581 -Node: Accessing The Source1294506 -Node: Adding Code1295943 -Node: New Ports1302162 -Node: Derived Files1306537 -Ref: Derived Files-Footnote-11312197 -Ref: Derived Files-Footnote-21312232 -Ref: Derived Files-Footnote-31312830 -Node: Future Extensions1312944 -Node: Implementation Limitations1313602 -Node: Extension Design1314812 -Node: Old Extension Problems1315956 -Ref: Old Extension Problems-Footnote-11317474 -Node: Extension New Mechanism Goals1317531 -Ref: Extension New Mechanism Goals-Footnote-11320895 -Node: Extension Other Design Decisions1321084 -Node: Extension Future Growth1323197 -Node: Notes summary1323803 -Node: Basic Concepts1324961 -Node: Basic High Level1325642 -Ref: figure-general-flow1325924 -Ref: figure-process-flow1326609 -Ref: Basic High Level-Footnote-11329910 -Node: Basic Data Typing1330095 -Node: Glossary1333423 -Node: Copying1365308 -Node: GNU Free Documentation License1402851 -Node: Index1427971 +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 Statement456576 +Node: Break Statement459017 +Node: Continue Statement461109 +Node: Next Statement462936 +Node: Nextfile Statement465319 +Node: Exit Statement468008 +Node: Built-in Variables470411 +Node: User-modified471544 +Node: Auto-set479311 +Ref: Auto-set-Footnote-1496118 +Ref: Auto-set-Footnote-2496324 +Node: ARGC and ARGV496380 +Node: Pattern Action Summary500593 +Node: Arrays503023 +Node: Array Basics504352 +Node: Array Intro505196 +Ref: figure-array-elements507171 +Ref: Array Intro-Footnote-1509875 +Node: Reference to Elements510003 +Node: Assigning Elements512467 +Node: Array Example512958 +Node: Scanning an Array514717 +Node: Controlling Scanning517739 +Ref: Controlling Scanning-Footnote-1524195 +Node: Numeric Array Subscripts524511 +Node: Uninitialized Subscripts526695 +Node: Delete528314 +Ref: Delete-Footnote-1531066 +Node: Multidimensional531123 +Node: Multiscanning534218 +Node: Arrays of Arrays535809 +Node: Arrays Summary540577 +Node: Functions542670 +Node: Built-in543708 +Node: Calling Built-in544861 +Node: Boolean Functions546857 +Node: Numeric Functions547411 +Ref: Numeric Functions-Footnote-1551438 +Ref: Numeric Functions-Footnote-2552086 +Ref: Numeric Functions-Footnote-3552134 +Node: String Functions552406 +Ref: String Functions-Footnote-1576921 +Ref: String Functions-Footnote-2577049 +Ref: String Functions-Footnote-3577297 +Node: Gory Details577384 +Ref: table-sub-escapes579175 +Ref: table-sub-proposed580694 +Ref: table-posix-sub582057 +Ref: table-gensub-escapes583598 +Ref: Gory Details-Footnote-1584421 +Node: I/O Functions584575 +Ref: table-system-return-values591029 +Ref: I/O Functions-Footnote-1593109 +Ref: I/O Functions-Footnote-2593257 +Node: Time Functions593377 +Ref: Time Functions-Footnote-1604048 +Ref: Time Functions-Footnote-2604116 +Ref: Time Functions-Footnote-3604274 +Ref: Time Functions-Footnote-4604385 +Ref: Time Functions-Footnote-5604497 +Ref: Time Functions-Footnote-6604724 +Node: Bitwise Functions604990 +Ref: table-bitwise-ops605584 +Ref: Bitwise Functions-Footnote-1611647 +Ref: Bitwise Functions-Footnote-2611820 +Node: Type Functions612011 +Node: I18N Functions615621 +Node: User-defined617272 +Node: Definition Syntax618084 +Ref: Definition Syntax-Footnote-1623778 +Node: Function Example623849 +Ref: Function Example-Footnote-1626771 +Node: Function Calling626793 +Node: Calling A Function627381 +Node: Variable Scope628339 +Node: Pass By Value/Reference631333 +Node: Function Caveats633977 +Ref: Function Caveats-Footnote-1636024 +Node: Return Statement636144 +Node: Dynamic Typing639123 +Node: Indirect Calls640053 +Ref: Indirect Calls-Footnote-1650308 +Node: Functions Summary650436 +Node: Library Functions653141 +Ref: Library Functions-Footnote-1656748 +Ref: Library Functions-Footnote-2656891 +Node: Library Names657062 +Ref: Library Names-Footnote-1660729 +Ref: Library Names-Footnote-2660952 +Node: General Functions661038 +Node: Strtonum Function662220 +Node: Assert Function665242 +Node: Round Function668568 +Node: Cliff Random Function670108 +Node: Ordinal Functions671124 +Ref: Ordinal Functions-Footnote-1674187 +Ref: Ordinal Functions-Footnote-2674439 +Node: Join Function674649 +Ref: Join Function-Footnote-1676419 +Node: Getlocaltime Function676619 +Node: Readfile Function680361 +Node: Shell Quoting682338 +Node: Isnumeric Function683766 +Node: Data File Management685154 +Node: Filetrans Function685786 +Node: Rewind Function689882 +Node: File Checking691791 +Ref: File Checking-Footnote-1693125 +Node: Empty Files693326 +Node: Ignoring Assigns695305 +Node: Getopt Function696855 +Ref: Getopt Function-Footnote-1712078 +Node: Passwd Functions712278 +Ref: Passwd Functions-Footnote-1721117 +Node: Group Functions721205 +Ref: Group Functions-Footnote-1729103 +Node: Walking Arrays729310 +Node: Library Functions Summary732318 +Node: Library Exercises733724 +Node: Sample Programs734189 +Node: Running Examples734959 +Node: Clones735687 +Node: Cut Program736911 +Node: Egrep Program747051 +Node: Id Program756052 +Node: Split Program765999 +Ref: Split Program-Footnote-1775892 +Node: Tee Program776065 +Node: Uniq Program778855 +Node: Wc Program786443 +Node: Bytes vs. Characters786830 +Node: Using extensions788378 +Node: wc program789132 +Node: Miscellaneous Programs793997 +Node: Dupword Program795210 +Node: Alarm Program797240 +Node: Translate Program802095 +Ref: Translate Program-Footnote-1806660 +Node: Labels Program806930 +Ref: Labels Program-Footnote-1810281 +Node: Word Sorting810365 +Node: History Sorting814437 +Node: Extract Program816662 +Node: Simple Sed824716 +Node: Igawk Program827790 +Ref: Igawk Program-Footnote-1842121 +Ref: Igawk Program-Footnote-2842323 +Ref: Igawk Program-Footnote-3842445 +Node: Anagram Program842560 +Node: Signature Program845622 +Node: Programs Summary846869 +Node: Programs Exercises848083 +Ref: Programs Exercises-Footnote-1852213 +Node: Advanced Features852299 +Node: Nondecimal Data854430 +Node: Boolean Typed Values856028 +Node: Array Sorting857909 +Node: Controlling Array Traversal858614 +Ref: Controlling Array Traversal-Footnote-1866982 +Node: Array Sorting Functions867100 +Ref: Array Sorting Functions-Footnote-1872474 +Node: Two-way I/O872670 +Ref: Two-way I/O-Footnote-1880396 +Ref: Two-way I/O-Footnote-2880583 +Node: TCP/IP Networking880665 +Node: Profiling883783 +Node: Extension Philosophy893092 +Node: Advanced Features Summary894571 +Node: Internationalization896586 +Node: I18N and L10N898260 +Node: Explaining gettext898947 +Ref: Explaining gettext-Footnote-1904839 +Ref: Explaining gettext-Footnote-2905024 +Node: Programmer i18n905189 +Ref: Programmer i18n-Footnote-1910138 +Node: Translator i18n910187 +Node: String Extraction910981 +Ref: String Extraction-Footnote-1912113 +Node: Printf Ordering912199 +Ref: Printf Ordering-Footnote-1914985 +Node: I18N Portability915049 +Ref: I18N Portability-Footnote-1917505 +Node: I18N Example917568 +Ref: I18N Example-Footnote-1920843 +Ref: I18N Example-Footnote-2920916 +Node: Gawk I18N921025 +Node: I18N Summary921674 +Node: Debugger923015 +Node: Debugging924015 +Node: Debugging Concepts924456 +Node: Debugging Terms926265 +Node: Awk Debugging928840 +Ref: Awk Debugging-Footnote-1929785 +Node: Sample Debugging Session929917 +Node: Debugger Invocation930451 +Node: Finding The Bug931837 +Node: List of Debugger Commands938311 +Node: Breakpoint Control939644 +Node: Debugger Execution Control943338 +Node: Viewing And Changing Data946700 +Node: Execution Stack950241 +Node: Debugger Info951878 +Node: Miscellaneous Debugger Commands955949 +Node: Readline Support961011 +Node: Limitations961907 +Node: Debugging Summary964461 +Node: Namespaces965740 +Node: Global Namespace966851 +Node: Qualified Names968249 +Node: Default Namespace969248 +Node: Changing The Namespace969989 +Node: Naming Rules971603 +Node: Internal Name Management973451 +Node: Namespace Example974493 +Node: Namespace And Features977055 +Node: Namespace Summary978490 +Node: Arbitrary Precision Arithmetic979967 +Node: Computer Arithmetic981454 +Ref: table-numeric-ranges985220 +Ref: table-floating-point-ranges985713 +Ref: Computer Arithmetic-Footnote-1986371 +Node: Math Definitions986428 +Ref: table-ieee-formats989404 +Node: MPFR features989971 +Node: FP Math Caution991689 +Ref: FP Math Caution-Footnote-1992761 +Node: Inexactness of computations993130 +Node: Inexact representation994161 +Node: Comparing FP Values995521 +Node: Errors accumulate996762 +Node: Strange values998218 +Ref: Strange values-Footnote-11000806 +Node: Getting Accuracy1000911 +Node: Try To Round1003621 +Node: Setting precision1004520 +Ref: table-predefined-precision-strings1005217 +Node: Setting the rounding mode1007047 +Ref: table-gawk-rounding-modes1007421 +Ref: Setting the rounding mode-Footnote-11011352 +Node: Arbitrary Precision Integers1011531 +Ref: Arbitrary Precision Integers-Footnote-11014706 +Node: Checking for MPFR1014855 +Node: POSIX Floating Point Problems1016329 +Ref: POSIX Floating Point Problems-Footnote-11020614 +Node: Floating point summary1020652 +Node: Dynamic Extensions1022842 +Node: Extension Intro1024395 +Node: Plugin License1025661 +Node: Extension Mechanism Outline1026458 +Ref: figure-load-extension1026897 +Ref: figure-register-new-function1028462 +Ref: figure-call-new-function1029554 +Node: Extension API Description1031616 +Node: Extension API Functions Introduction1033329 +Ref: table-api-std-headers1035165 +Node: General Data Types1039414 +Ref: General Data Types-Footnote-11048120 +Node: Memory Allocation Functions1048419 +Ref: Memory Allocation Functions-Footnote-11052920 +Node: Constructor Functions1053019 +Node: API Ownership of MPFR and GMP Values1056672 +Node: Registration Functions1057985 +Node: Extension Functions1058685 +Node: Exit Callback Functions1064007 +Node: Extension Version String1065257 +Node: Input Parsers1065920 +Node: Output Wrappers1078641 +Node: Two-way processors1083153 +Node: Printing Messages1085418 +Ref: Printing Messages-Footnote-11086589 +Node: Updating ERRNO1086742 +Node: Requesting Values1087481 +Ref: table-value-types-returned1088218 +Node: Accessing Parameters1089326 +Node: Symbol Table Access1090563 +Node: Symbol table by name1091075 +Ref: Symbol table by name-Footnote-11094100 +Node: Symbol table by cookie1094228 +Ref: Symbol table by cookie-Footnote-11098413 +Node: Cached values1098477 +Ref: Cached values-Footnote-11102013 +Node: Array Manipulation1102166 +Ref: Array Manipulation-Footnote-11103257 +Node: Array Data Types1103294 +Ref: Array Data Types-Footnote-11105952 +Node: Array Functions1106044 +Node: Flattening Arrays1110542 +Node: Creating Arrays1117518 +Node: Redirection API1122285 +Node: Extension API Variables1125118 +Node: Extension Versioning1125829 +Ref: gawk-api-version1126258 +Node: Extension GMP/MPFR Versioning1127989 +Node: Extension API Informational Variables1129617 +Node: Extension API Boilerplate1130690 +Node: Changes from API V11134664 +Node: Finding Extensions1136236 +Node: Extension Example1136795 +Node: Internal File Description1137593 +Node: Internal File Ops1141673 +Ref: Internal File Ops-Footnote-11153023 +Node: Using Internal File Ops1153163 +Ref: Using Internal File Ops-Footnote-11155546 +Node: Extension Samples1155820 +Node: Extension Sample File Functions1157349 +Node: Extension Sample Fnmatch1164998 +Node: Extension Sample Fork1166485 +Node: Extension Sample Inplace1167703 +Node: Extension Sample Ord1171329 +Node: Extension Sample Readdir1172165 +Ref: table-readdir-file-types1173054 +Node: Extension Sample Revout1174121 +Node: Extension Sample Rev2way1174710 +Node: Extension Sample Read write array1175450 +Node: Extension Sample Readfile1177392 +Node: Extension Sample Time1178487 +Node: Extension Sample API Tests1180239 +Node: gawkextlib1180731 +Node: Extension summary1183649 +Node: Extension Exercises1187351 +Node: Language History1188593 +Node: V7/SVR3.11190249 +Node: SVR41192401 +Node: POSIX1193835 +Node: BTL1195216 +Node: POSIX/GNU1195945 +Node: Feature History1201723 +Node: Common Extensions1218898 +Node: Ranges and Locales1220181 +Ref: Ranges and Locales-Footnote-11224797 +Ref: Ranges and Locales-Footnote-21224824 +Ref: Ranges and Locales-Footnote-31225059 +Node: Contributors1225282 +Node: History summary1231279 +Node: Installation1232659 +Node: Gawk Distribution1233603 +Node: Getting1234087 +Node: Extracting1235050 +Node: Distribution contents1236688 +Node: Unix Installation1243830 +Node: Quick Installation1244634 +Node: Compiling with MPFR1247110 +Node: Shell Startup Files1247802 +Node: Additional Configuration Options1248891 +Node: Configuration Philosophy1251206 +Node: Compiling from Git1253602 +Node: Building the Documentation1254157 +Node: Non-Unix Installation1255541 +Node: PC Installation1256001 +Node: PC Binary Installation1256839 +Node: PC Compiling1257274 +Node: PC Using1258391 +Node: Cygwin1261944 +Node: MSYS1263168 +Node: VMS Installation1263770 +Node: VMS Compilation1264489 +Ref: VMS Compilation-Footnote-11265718 +Node: VMS Dynamic Extensions1265776 +Node: VMS Installation Details1267461 +Node: VMS Running1269723 +Node: VMS GNV1274002 +Node: Bugs1274716 +Node: Bug definition1275628 +Node: Bug address1278132 +Node: Usenet1281520 +Node: Performance bugs1282529 +Node: Asking for help1285450 +Node: Maintainers1287412 +Node: Other Versions1288606 +Node: Installation summary1296458 +Node: Notes1297822 +Node: Compatibility Mode1298616 +Node: Additions1299398 +Node: Accessing The Source1300323 +Node: Adding Code1301760 +Node: New Ports1307979 +Node: Derived Files1312354 +Ref: Derived Files-Footnote-11318014 +Ref: Derived Files-Footnote-21318049 +Ref: Derived Files-Footnote-31318647 +Node: Future Extensions1318761 +Node: Implementation Limitations1319419 +Node: Extension Design1320629 +Node: Old Extension Problems1321773 +Ref: Old Extension Problems-Footnote-11323291 +Node: Extension New Mechanism Goals1323348 +Ref: Extension New Mechanism Goals-Footnote-11326712 +Node: Extension Other Design Decisions1326901 +Node: Extension Future Growth1329014 +Node: Notes summary1329620 +Node: Basic Concepts1330778 +Node: Basic High Level1331459 +Ref: figure-general-flow1331741 +Ref: figure-process-flow1332426 +Ref: Basic High Level-Footnote-11335727 +Node: Basic Data Typing1335912 +Node: Glossary1339240 +Node: Copying1371127 +Node: GNU Free Documentation License1408670 +Node: Index1433790 End Tag Table |