diff options
Diffstat (limited to 'doc/gawk.info')
-rw-r--r-- | doc/gawk.info | 1452 |
1 files changed, 791 insertions, 661 deletions
diff --git a/doc/gawk.info b/doc/gawk.info index cf7167f6..4f768252 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -382,6 +382,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()'. @@ -491,6 +493,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"]. @@ -554,6 +557,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. @@ -3227,7 +3231,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 @@ -7024,8 +7030,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 @@ -12862,6 +12868,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 @@ -12874,7 +12881,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 -------------------------------- @@ -12918,9 +12925,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 @@ -12946,7 +12968,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()' @@ -13044,7 +13066,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 @@ -13629,7 +13651,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. @@ -13779,7 +13801,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 @@ -13997,7 +14019,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 @@ -14314,7 +14336,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. @@ -14497,7 +14519,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 @@ -14521,6 +14543,9 @@ contexts. '"number"' X is a number. + '"number|bool"' + X is a Boolean typed value (*note Boolean Typed Values::). + '"string"' X is a string. @@ -14595,7 +14620,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 @@ -15274,7 +15299,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 @@ -21028,6 +21053,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. @@ -21037,7 +21063,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 =================================== @@ -21080,9 +21106,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 @@ -21101,7 +21171,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 @@ -21340,7 +21410,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 @@ -21485,7 +21555,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 @@ -21680,7 +21750,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': @@ -21760,7 +21830,7 @@ 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 @@ -22022,7 +22092,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 @@ -22058,7 +22128,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 @@ -24417,18 +24487,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. @@ -24488,11 +24550,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 @@ -24585,6 +24642,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 @@ -24649,7 +24707,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 .......................... @@ -24697,6 +24755,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 @@ -25649,7 +25765,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'. @@ -25662,6 +25779,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 @@ -25677,6 +25795,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. @@ -25987,6 +26106,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 @@ -26713,16 +26837,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 @@ -33615,8 +33740,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 @@ -35774,6 +35899,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) @@ -36130,7 +36256,7 @@ Index * dark corner, length() function: String Functions. (line 200) * dark corner, split() function: String Functions. (line 379) * 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) @@ -37371,6 +37497,7 @@ Index * metacharacters, in regular expressions: Regexp Operators. (line 6) * minimum precision required by MPFR library: Auto-set. (line 279) * Minshall, Greg: Getopt Function. (line 105) +* 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) @@ -38598,610 +38725,613 @@ Index Tag Table: Node: Top1200 -Node: Foreword345313 -Node: Foreword449755 -Node: Preface51287 -Ref: Preface-Footnote-154146 -Ref: Preface-Footnote-254255 -Ref: Preface-Footnote-354489 -Node: History54631 -Node: Names56983 -Ref: Names-Footnote-158087 -Node: This Manual58234 -Ref: This Manual-Footnote-164873 -Node: Conventions64973 -Node: Manual History67342 -Ref: Manual History-Footnote-170339 -Ref: Manual History-Footnote-270380 -Node: How To Contribute70454 -Node: Acknowledgments71380 -Node: Getting Started76317 -Node: Running gawk78756 -Node: One-shot79946 -Node: Read Terminal81209 -Node: Long83202 -Node: Executable Scripts84715 -Ref: Executable Scripts-Footnote-187348 -Node: Comments87451 -Node: Quoting89935 -Node: DOS Quoting95461 -Node: Sample Data Files97517 -Node: Very Simple100112 -Node: Two Rules106214 -Node: More Complex108099 -Node: Statements/Lines110431 -Ref: Statements/Lines-Footnote-1114915 -Node: Other Features115180 -Node: When116116 -Ref: When-Footnote-1117870 -Node: Intro Summary117935 -Node: Invoking Gawk118819 -Node: Command Line120333 -Node: Options121131 -Ref: Options-Footnote-1139045 -Ref: Options-Footnote-2139276 -Node: Other Arguments139301 -Node: Naming Standard Input143312 -Node: Environment Variables144522 -Node: AWKPATH Variable145080 -Ref: AWKPATH Variable-Footnote-1148492 -Ref: AWKPATH Variable-Footnote-2148526 -Node: AWKLIBPATH Variable148897 -Ref: AWKLIBPATH Variable-Footnote-1150594 -Node: Other Environment Variables150969 -Node: Exit Status154790 -Node: Include Files155467 -Node: Loading Shared Libraries159157 -Node: Obsolete160585 -Node: Undocumented161277 -Node: Invoking Summary161574 -Node: Regexp164415 -Node: Regexp Usage165869 -Node: Escape Sequences167906 -Node: Regexp Operators174147 -Node: Regexp Operator Details174632 -Ref: Regexp Operator Details-Footnote-1181996 -Node: Interval Expressions182143 -Ref: Interval Expressions-Footnote-1184343 -Node: Bracket Expressions184441 -Ref: table-char-classes186917 -Node: Leftmost Longest190244 -Node: Computed Regexps191547 -Node: GNU Regexp Operators194974 -Node: Case-sensitivity198711 -Ref: Case-sensitivity-Footnote-1201577 -Ref: Case-sensitivity-Footnote-2201812 -Node: Regexp Summary201920 -Node: Reading Files203386 -Node: Records205655 -Node: awk split records206730 -Node: gawk split records211430 -Ref: gawk split records-Footnote-1216504 -Node: Fields216541 -Node: Nonconstant Fields219282 -Ref: Nonconstant Fields-Footnote-1221518 -Node: Changing Fields221722 -Node: Field Separators227753 -Node: Default Field Splitting230451 -Node: Regexp Field Splitting231569 -Node: Single Character Fields235246 -Node: Command Line Field Separator236306 -Node: Full Line Fields239524 -Ref: Full Line Fields-Footnote-1241046 -Ref: Full Line Fields-Footnote-2241092 -Node: Field Splitting Summary241193 -Node: Constant Size243267 -Node: Fixed width data243999 -Node: Skipping intervening247466 -Node: Allowing trailing data248264 -Node: Fields with fixed data249301 -Node: Splitting By Content250819 -Ref: Splitting By Content-Footnote-1254655 -Node: More CSV254818 -Node: FS versus FPAT256433 -Node: Testing field creation257593 -Node: Multiple Line259218 -Node: Getline265495 -Node: Plain Getline267964 -Node: Getline/Variable270537 -Node: Getline/File271688 -Node: Getline/Variable/File273076 -Ref: Getline/Variable/File-Footnote-1274681 -Node: Getline/Pipe274769 -Node: Getline/Variable/Pipe277473 -Node: Getline/Coprocess278608 -Node: Getline/Variable/Coprocess279875 -Node: Getline Notes280617 -Node: Getline Summary283414 -Ref: table-getline-variants283838 -Node: Read Timeout284587 -Ref: Read Timeout-Footnote-1288493 -Node: Retrying Input288551 -Node: Command-line directories289750 -Node: Input Summary290656 -Node: Input Exercises293828 -Node: Printing294262 -Node: Print296096 -Node: Print Examples297553 -Node: Output Separators300333 -Node: OFMT302350 -Node: Printf303706 -Node: Basic Printf304491 -Node: Control Letters306065 -Node: Format Modifiers311229 -Node: Printf Examples317244 -Node: Redirection319730 -Node: Special FD326571 -Ref: Special FD-Footnote-1329739 -Node: Special Files329813 -Node: Other Inherited Files330430 -Node: Special Network331431 -Node: Special Caveats332291 -Node: Close Files And Pipes333240 -Ref: table-close-pipe-return-values340147 -Ref: Close Files And Pipes-Footnote-1340961 -Ref: Close Files And Pipes-Footnote-2341109 -Node: Nonfatal341261 -Node: Output Summary343599 -Node: Output Exercises344821 -Node: Expressions345500 -Node: Values346688 -Node: Constants347366 -Node: Scalar Constants348057 -Ref: Scalar Constants-Footnote-1350567 -Node: Nondecimal-numbers350817 -Node: Regexp Constants353818 -Node: Using Constant Regexps354344 -Node: Standard Regexp Constants354966 -Node: Strong Regexp Constants358154 -Node: Variables361869 -Node: Using Variables362526 -Node: Assignment Options364436 -Node: Conversion366907 -Node: Strings And Numbers367431 -Ref: Strings And Numbers-Footnote-1370494 -Node: Locale influences conversions370603 -Ref: table-locale-affects373361 -Node: All Operators373980 -Node: Arithmetic Ops374609 -Node: Concatenation377325 -Ref: Concatenation-Footnote-1380172 -Node: Assignment Ops380279 -Ref: table-assign-ops385270 -Node: Increment Ops386584 -Node: Truth Values and Conditions390044 -Node: Truth Values391118 -Node: Typing and Comparison392166 -Node: Variable Typing392986 -Ref: Variable Typing-Footnote-1399449 -Ref: Variable Typing-Footnote-2399521 -Node: Comparison Operators399598 -Ref: table-relational-ops400017 -Node: POSIX String Comparison403513 -Ref: POSIX String Comparison-Footnote-1405208 -Ref: POSIX String Comparison-Footnote-2405347 -Node: Boolean Ops405431 -Ref: Boolean Ops-Footnote-1409913 -Node: Conditional Exp410005 -Node: Function Calls411741 -Node: Precedence415618 -Node: Locales419277 -Node: Expressions Summary420909 -Node: Patterns and Actions423482 -Node: Pattern Overview424602 -Node: Regexp Patterns426279 -Node: Expression Patterns426821 -Node: Ranges430602 -Node: BEGIN/END433710 -Node: Using BEGIN/END434471 -Ref: Using BEGIN/END-Footnote-1437225 -Node: I/O And BEGIN/END437331 -Node: BEGINFILE/ENDFILE439644 -Node: Empty442875 -Node: Using Shell Variables443192 -Node: Action Overview445466 -Node: Statements447791 -Node: If Statement449639 -Node: While Statement451134 -Node: Do Statement453162 -Node: For Statement454310 -Node: Switch Statement457565 -Node: Break Statement460006 -Node: Continue Statement462098 -Node: Next Statement463925 -Node: Nextfile Statement466308 -Node: Exit Statement468997 -Node: Built-in Variables471400 -Node: User-modified472533 -Node: Auto-set480300 -Ref: Auto-set-Footnote-1497107 -Ref: Auto-set-Footnote-2497313 -Node: ARGC and ARGV497369 -Node: Pattern Action Summary501582 -Node: Arrays504012 -Node: Array Basics505341 -Node: Array Intro506185 -Ref: figure-array-elements508160 -Ref: Array Intro-Footnote-1510865 -Node: Reference to Elements510993 -Node: Assigning Elements513457 -Node: Array Example513948 -Node: Scanning an Array515707 -Node: Controlling Scanning518729 -Ref: Controlling Scanning-Footnote-1525185 -Node: Numeric Array Subscripts525501 -Node: Uninitialized Subscripts527685 -Node: Delete529304 -Ref: Delete-Footnote-1532056 -Node: Multidimensional532113 -Node: Multiscanning535208 -Node: Arrays of Arrays536799 -Node: Arrays Summary541567 -Node: Functions543660 -Node: Built-in544698 -Node: Calling Built-in545779 -Node: Numeric Functions547775 -Ref: Numeric Functions-Footnote-1551803 -Ref: Numeric Functions-Footnote-2552451 -Ref: Numeric Functions-Footnote-3552499 -Node: String Functions552771 -Ref: String Functions-Footnote-1577613 -Ref: String Functions-Footnote-2577741 -Ref: String Functions-Footnote-3577989 -Node: Gory Details578076 -Ref: table-sub-escapes579867 -Ref: table-sub-proposed581387 -Ref: table-posix-sub582751 -Ref: table-gensub-escapes584293 -Ref: Gory Details-Footnote-1585117 -Node: I/O Functions585271 -Ref: table-system-return-values591725 -Ref: I/O Functions-Footnote-1593806 -Ref: I/O Functions-Footnote-2593954 -Node: Time Functions594074 -Ref: Time Functions-Footnote-1604745 -Ref: Time Functions-Footnote-2604813 -Ref: Time Functions-Footnote-3604971 -Ref: Time Functions-Footnote-4605082 -Ref: Time Functions-Footnote-5605194 -Ref: Time Functions-Footnote-6605421 -Node: Bitwise Functions605687 -Ref: table-bitwise-ops606281 -Ref: Bitwise Functions-Footnote-1612345 -Ref: Bitwise Functions-Footnote-2612518 -Node: Type Functions612709 -Node: I18N Functions616038 -Node: User-defined617689 -Node: Definition Syntax618501 -Ref: Definition Syntax-Footnote-1624195 -Node: Function Example624266 -Ref: Function Example-Footnote-1627188 -Node: Function Calling627210 -Node: Calling A Function627798 -Node: Variable Scope628756 -Node: Pass By Value/Reference631750 -Node: Function Caveats634394 -Ref: Function Caveats-Footnote-1636441 -Node: Return Statement636561 -Node: Dynamic Typing639540 -Node: Indirect Calls640470 -Ref: Indirect Calls-Footnote-1650722 -Node: Functions Summary650850 -Node: Library Functions653555 -Ref: Library Functions-Footnote-1657162 -Ref: Library Functions-Footnote-2657305 -Node: Library Names657476 -Ref: Library Names-Footnote-1661143 -Ref: Library Names-Footnote-2661366 -Node: General Functions661452 -Node: Strtonum Function662634 -Node: Assert Function665656 -Node: Round Function668982 -Node: Cliff Random Function670522 -Node: Ordinal Functions671538 -Ref: Ordinal Functions-Footnote-1674601 -Ref: Ordinal Functions-Footnote-2674853 -Node: Join Function675063 -Ref: Join Function-Footnote-1676833 -Node: Getlocaltime Function677033 -Node: Readfile Function680775 -Node: Shell Quoting682752 -Node: Isnumeric Function684180 -Node: Data File Management685568 -Node: Filetrans Function686200 -Node: Rewind Function690296 -Node: File Checking692205 -Ref: File Checking-Footnote-1693539 -Node: Empty Files693740 -Node: Ignoring Assigns695719 -Node: Getopt Function697269 -Ref: Getopt Function-Footnote-1712566 -Node: Passwd Functions712766 -Ref: Passwd Functions-Footnote-1721605 -Node: Group Functions721693 -Ref: Group Functions-Footnote-1729591 -Node: Walking Arrays729798 -Node: Library Functions Summary732806 -Node: Library Exercises734212 -Node: Sample Programs734677 -Node: Running Examples735447 -Node: Clones736175 -Node: Cut Program737399 -Node: Egrep Program747539 -Node: Id Program756540 -Node: Split Program766475 -Ref: Split Program-Footnote-1776368 -Node: Tee Program776541 -Node: Uniq Program779331 -Node: Wc Program786919 -Node: Bytes vs. Characters787306 -Node: Using extensions788854 -Node: wc program789608 -Node: Miscellaneous Programs794473 -Node: Dupword Program795686 -Node: Alarm Program797716 -Node: Translate Program802571 -Ref: Translate Program-Footnote-1807136 -Node: Labels Program807406 -Ref: Labels Program-Footnote-1810757 -Node: Word Sorting810841 -Node: History Sorting814913 -Node: Extract Program817138 -Node: Simple Sed825151 -Node: Igawk Program828225 -Ref: Igawk Program-Footnote-1842556 -Ref: Igawk Program-Footnote-2842758 -Ref: Igawk Program-Footnote-3842880 -Node: Anagram Program842995 -Node: Signature Program846057 -Node: Programs Summary847304 -Node: Programs Exercises848518 -Ref: Programs Exercises-Footnote-1852648 -Node: Advanced Features852734 -Node: Nondecimal Data854801 -Node: Array Sorting856392 -Node: Controlling Array Traversal857092 -Ref: Controlling Array Traversal-Footnote-1865460 -Node: Array Sorting Functions865578 -Ref: Array Sorting Functions-Footnote-1870952 -Node: Two-way I/O871148 -Ref: Two-way I/O-Footnote-1878874 -Ref: Two-way I/O-Footnote-2879061 -Node: TCP/IP Networking879143 -Node: Profiling882219 -Node: Extension Philosophy891528 -Node: Advanced Features Summary893007 -Node: Internationalization895022 -Node: I18N and L10N896696 -Node: Explaining gettext897383 -Ref: Explaining gettext-Footnote-1903275 -Ref: Explaining gettext-Footnote-2903460 -Node: Programmer i18n903625 -Ref: Programmer i18n-Footnote-1908574 -Node: Translator i18n908623 -Node: String Extraction909417 -Ref: String Extraction-Footnote-1910549 -Node: Printf Ordering910635 -Ref: Printf Ordering-Footnote-1913421 -Node: I18N Portability913485 -Ref: I18N Portability-Footnote-1915941 -Node: I18N Example916004 -Ref: I18N Example-Footnote-1919279 -Ref: I18N Example-Footnote-2919352 -Node: Gawk I18N919461 -Node: I18N Summary920083 -Node: Debugger921424 -Node: Debugging922424 -Node: Debugging Concepts922865 -Node: Debugging Terms924674 -Node: Awk Debugging927249 -Ref: Awk Debugging-Footnote-1928194 -Node: Sample Debugging Session928326 -Node: Debugger Invocation928860 -Node: Finding The Bug930246 -Node: List of Debugger Commands936720 -Node: Breakpoint Control938053 -Node: Debugger Execution Control941747 -Node: Viewing And Changing Data945109 -Node: Execution Stack948650 -Node: Debugger Info950287 -Node: Miscellaneous Debugger Commands954358 -Node: Readline Support959420 -Node: Limitations960316 -Node: Debugging Summary962870 -Node: Namespaces964149 -Node: Global Namespace965260 -Node: Qualified Names966658 -Node: Default Namespace967657 -Node: Changing The Namespace968398 -Node: Naming Rules970012 -Node: Internal Name Management971860 -Node: Namespace Example972902 -Node: Namespace And Features975464 -Node: Namespace Summary976899 -Node: Arbitrary Precision Arithmetic978376 -Node: Computer Arithmetic979863 -Ref: table-numeric-ranges983629 -Ref: table-floating-point-ranges984123 -Ref: Computer Arithmetic-Footnote-1984782 -Node: Math Definitions984839 -Ref: table-ieee-formats988155 -Ref: Math Definitions-Footnote-1988759 -Node: MPFR features988864 -Node: FP Math Caution990582 -Ref: FP Math Caution-Footnote-1991654 -Node: Inexactness of computations992023 -Node: Inexact representation992983 -Node: Comparing FP Values994343 -Node: Errors accumulate995584 -Node: Getting Accuracy997017 -Node: Try To Round999727 -Node: Setting precision1000626 -Ref: table-predefined-precision-strings1001323 -Node: Setting the rounding mode1003154 -Ref: table-gawk-rounding-modes1003528 -Ref: Setting the rounding mode-Footnote-11007460 -Node: Arbitrary Precision Integers1007639 -Ref: Arbitrary Precision Integers-Footnote-11010814 -Node: Checking for MPFR1010963 -Node: POSIX Floating Point Problems1012437 -Ref: POSIX Floating Point Problems-Footnote-11016722 -Node: Floating point summary1016760 -Node: Dynamic Extensions1018950 -Node: Extension Intro1020503 -Node: Plugin License1021769 -Node: Extension Mechanism Outline1022566 -Ref: figure-load-extension1023005 -Ref: figure-register-new-function1024571 -Ref: figure-call-new-function1025664 -Node: Extension API Description1027727 -Node: Extension API Functions Introduction1029440 -Ref: table-api-std-headers1031276 -Node: General Data Types1035526 -Ref: General Data Types-Footnote-11044156 -Node: Memory Allocation Functions1044455 -Ref: Memory Allocation Functions-Footnote-11048956 -Node: Constructor Functions1049055 -Node: API Ownership of MPFR and GMP Values1052521 -Node: Registration Functions1053834 -Node: Extension Functions1054534 -Node: Exit Callback Functions1059856 -Node: Extension Version String1061106 -Node: Input Parsers1061769 -Node: Output Wrappers1074490 -Node: Two-way processors1079002 -Node: Printing Messages1081267 -Ref: Printing Messages-Footnote-11082438 -Node: Updating ERRNO1082591 -Node: Requesting Values1083330 -Ref: table-value-types-returned1084067 -Node: Accessing Parameters1085004 -Node: Symbol Table Access1086241 -Node: Symbol table by name1086753 -Ref: Symbol table by name-Footnote-11089778 -Node: Symbol table by cookie1089906 -Ref: Symbol table by cookie-Footnote-11094091 -Node: Cached values1094155 -Ref: Cached values-Footnote-11097691 -Node: Array Manipulation1097844 -Ref: Array Manipulation-Footnote-11098935 -Node: Array Data Types1098972 -Ref: Array Data Types-Footnote-11101630 -Node: Array Functions1101722 -Node: Flattening Arrays1106220 -Node: Creating Arrays1113196 -Node: Redirection API1117963 -Node: Extension API Variables1120796 -Node: Extension Versioning1121507 -Ref: gawk-api-version1121936 -Node: Extension GMP/MPFR Versioning1123668 -Node: Extension API Informational Variables1125296 -Node: Extension API Boilerplate1126369 -Node: Changes from API V11130343 -Node: Finding Extensions1131915 -Node: Extension Example1132474 -Node: Internal File Description1133272 -Node: Internal File Ops1137352 -Ref: Internal File Ops-Footnote-11148702 -Node: Using Internal File Ops1148842 -Ref: Using Internal File Ops-Footnote-11151225 -Node: Extension Samples1151499 -Node: Extension Sample File Functions1153028 -Node: Extension Sample Fnmatch1160677 -Node: Extension Sample Fork1162164 -Node: Extension Sample Inplace1163382 -Node: Extension Sample Ord1167008 -Node: Extension Sample Readdir1167844 -Ref: table-readdir-file-types1168733 -Node: Extension Sample Revout1169801 -Node: Extension Sample Rev2way1170390 -Node: Extension Sample Read write array1171130 -Node: Extension Sample Readfile1173072 -Node: Extension Sample Time1174167 -Node: Extension Sample API Tests1175919 -Node: gawkextlib1176411 -Node: Extension summary1179329 -Node: Extension Exercises1183031 -Node: Language History1184273 -Node: V7/SVR3.11185929 -Node: SVR41188081 -Node: POSIX1189515 -Node: BTL1190896 -Node: POSIX/GNU1191625 -Node: Feature History1197403 -Node: Common Extensions1214578 -Node: Ranges and Locales1215861 -Ref: Ranges and Locales-Footnote-11220477 -Ref: Ranges and Locales-Footnote-21220504 -Ref: Ranges and Locales-Footnote-31220739 -Node: Contributors1220962 -Node: History summary1226959 -Node: Installation1228339 -Node: Gawk Distribution1229283 -Node: Getting1229767 -Node: Extracting1230730 -Node: Distribution contents1232368 -Node: Unix Installation1239429 -Node: Quick Installation1240233 -Node: Compiling with MPFR1242653 -Node: Shell Startup Files1243343 -Node: Additional Configuration Options1244432 -Node: Configuration Philosophy1246747 -Node: Compiling from Git1249143 -Node: Building the Documentation1249698 -Node: Non-Unix Installation1251082 -Node: PC Installation1251542 -Node: PC Binary Installation1252380 -Node: PC Compiling1253253 -Node: PC Using1254370 -Node: Cygwin1257923 -Node: MSYS1259147 -Node: VMS Installation1259749 -Node: VMS Compilation1260468 -Ref: VMS Compilation-Footnote-11261697 -Node: VMS Dynamic Extensions1261755 -Node: VMS Installation Details1263440 -Node: VMS Running1265702 -Node: VMS GNV1269981 -Node: Bugs1270695 -Node: Bug definition1271607 -Node: Bug address1274543 -Node: Usenet1277931 -Node: Performance bugs1279120 -Node: Asking for help1282041 -Node: Maintainers1284008 -Node: Other Versions1285202 -Node: Installation summary1293366 -Node: Notes1294730 -Node: Compatibility Mode1295524 -Node: Additions1296306 -Node: Accessing The Source1297231 -Node: Adding Code1298668 -Node: New Ports1304860 -Node: Derived Files1309235 -Ref: Derived Files-Footnote-11314895 -Ref: Derived Files-Footnote-21314930 -Ref: Derived Files-Footnote-31315528 -Node: Future Extensions1315642 -Node: Implementation Limitations1316300 -Node: Extension Design1317510 -Node: Old Extension Problems1318654 -Ref: Old Extension Problems-Footnote-11320172 -Node: Extension New Mechanism Goals1320229 -Ref: Extension New Mechanism Goals-Footnote-11323593 -Node: Extension Other Design Decisions1323782 -Node: Extension Future Growth1325895 -Node: Notes summary1326501 -Node: Basic Concepts1327659 -Node: Basic High Level1328340 -Ref: figure-general-flow1328622 -Ref: figure-process-flow1329308 -Ref: Basic High Level-Footnote-11332610 -Node: Basic Data Typing1332795 -Node: Glossary1336123 -Node: Copying1368008 -Node: GNU Free Documentation License1405551 -Node: Index1430671 +Node: Foreword345584 +Node: Foreword450026 +Node: Preface51558 +Ref: Preface-Footnote-154417 +Ref: Preface-Footnote-254526 +Ref: Preface-Footnote-354760 +Node: History54902 +Node: Names57254 +Ref: Names-Footnote-158358 +Node: This Manual58505 +Ref: This Manual-Footnote-165144 +Node: Conventions65244 +Node: Manual History67613 +Ref: Manual History-Footnote-170610 +Ref: Manual History-Footnote-270651 +Node: How To Contribute70725 +Node: Acknowledgments71651 +Node: Getting Started76588 +Node: Running gawk79027 +Node: One-shot80217 +Node: Read Terminal81480 +Node: Long83473 +Node: Executable Scripts84986 +Ref: Executable Scripts-Footnote-187619 +Node: Comments87722 +Node: Quoting90206 +Node: DOS Quoting95732 +Node: Sample Data Files97788 +Node: Very Simple100383 +Node: Two Rules106485 +Node: More Complex108370 +Node: Statements/Lines110702 +Ref: Statements/Lines-Footnote-1115186 +Node: Other Features115451 +Node: When116387 +Ref: When-Footnote-1118141 +Node: Intro Summary118206 +Node: Invoking Gawk119090 +Node: Command Line120604 +Node: Options121402 +Ref: Options-Footnote-1139316 +Ref: Options-Footnote-2139547 +Node: Other Arguments139572 +Node: Naming Standard Input143583 +Node: Environment Variables144793 +Node: AWKPATH Variable145351 +Ref: AWKPATH Variable-Footnote-1148763 +Ref: AWKPATH Variable-Footnote-2148797 +Node: AWKLIBPATH Variable149168 +Ref: AWKLIBPATH Variable-Footnote-1150865 +Node: Other Environment Variables151240 +Node: Exit Status155192 +Node: Include Files155869 +Node: Loading Shared Libraries159559 +Node: Obsolete160987 +Node: Undocumented161679 +Node: Invoking Summary161976 +Node: Regexp164817 +Node: Regexp Usage166271 +Node: Escape Sequences168308 +Node: Regexp Operators174549 +Node: Regexp Operator Details175034 +Ref: Regexp Operator Details-Footnote-1182398 +Node: Interval Expressions182545 +Ref: Interval Expressions-Footnote-1184745 +Node: Bracket Expressions184843 +Ref: table-char-classes187319 +Node: Leftmost Longest190646 +Node: Computed Regexps191949 +Node: GNU Regexp Operators195376 +Node: Case-sensitivity199113 +Ref: Case-sensitivity-Footnote-1201979 +Ref: Case-sensitivity-Footnote-2202214 +Node: Regexp Summary202322 +Node: Reading Files203788 +Node: Records206057 +Node: awk split records207132 +Node: gawk split records211832 +Ref: gawk split records-Footnote-1216906 +Node: Fields216943 +Node: Nonconstant Fields219684 +Ref: Nonconstant Fields-Footnote-1221920 +Node: Changing Fields222124 +Node: Field Separators228155 +Node: Default Field Splitting230853 +Node: Regexp Field Splitting231971 +Node: Single Character Fields235648 +Node: Command Line Field Separator236708 +Node: Full Line Fields239926 +Ref: Full Line Fields-Footnote-1241448 +Ref: Full Line Fields-Footnote-2241494 +Node: Field Splitting Summary241595 +Node: Constant Size243669 +Node: Fixed width data244401 +Node: Skipping intervening247868 +Node: Allowing trailing data248666 +Node: Fields with fixed data249703 +Node: Splitting By Content251221 +Ref: Splitting By Content-Footnote-1255057 +Node: More CSV255220 +Node: FS versus FPAT256835 +Node: Testing field creation257995 +Node: Multiple Line259620 +Node: Getline265897 +Node: Plain Getline268366 +Node: Getline/Variable270939 +Node: Getline/File272090 +Node: Getline/Variable/File273478 +Ref: Getline/Variable/File-Footnote-1275083 +Node: Getline/Pipe275171 +Node: Getline/Variable/Pipe277875 +Node: Getline/Coprocess279010 +Node: Getline/Variable/Coprocess280277 +Node: Getline Notes281019 +Node: Getline Summary283816 +Ref: table-getline-variants284240 +Node: Read Timeout284989 +Ref: Read Timeout-Footnote-1288895 +Node: Retrying Input288953 +Node: Command-line directories290152 +Node: Input Summary291058 +Node: Input Exercises294230 +Node: Printing294664 +Node: Print296498 +Node: Print Examples297955 +Node: Output Separators300735 +Node: OFMT302752 +Node: Printf304108 +Node: Basic Printf304893 +Node: Control Letters306467 +Node: Format Modifiers311629 +Node: Printf Examples317644 +Node: Redirection320130 +Node: Special FD326971 +Ref: Special FD-Footnote-1330139 +Node: Special Files330213 +Node: Other Inherited Files330830 +Node: Special Network331831 +Node: Special Caveats332691 +Node: Close Files And Pipes333640 +Ref: table-close-pipe-return-values340547 +Ref: Close Files And Pipes-Footnote-1341361 +Ref: Close Files And Pipes-Footnote-2341509 +Node: Nonfatal341661 +Node: Output Summary343999 +Node: Output Exercises345221 +Node: Expressions345900 +Node: Values347088 +Node: Constants347766 +Node: Scalar Constants348457 +Ref: Scalar Constants-Footnote-1350967 +Node: Nondecimal-numbers351217 +Node: Regexp Constants354218 +Node: Using Constant Regexps354744 +Node: Standard Regexp Constants355366 +Node: Strong Regexp Constants358554 +Node: Variables362269 +Node: Using Variables362926 +Node: Assignment Options364836 +Node: Conversion367307 +Node: Strings And Numbers367831 +Ref: Strings And Numbers-Footnote-1370894 +Node: Locale influences conversions371003 +Ref: table-locale-affects373761 +Node: All Operators374380 +Node: Arithmetic Ops375009 +Node: Concatenation377725 +Ref: Concatenation-Footnote-1380572 +Node: Assignment Ops380679 +Ref: table-assign-ops385670 +Node: Increment Ops386984 +Node: Truth Values and Conditions390444 +Node: Truth Values391518 +Node: Typing and Comparison392566 +Node: Variable Typing393386 +Ref: Variable Typing-Footnote-1399849 +Ref: Variable Typing-Footnote-2399921 +Node: Comparison Operators399998 +Ref: table-relational-ops400417 +Node: POSIX String Comparison403913 +Ref: POSIX String Comparison-Footnote-1405608 +Ref: POSIX String Comparison-Footnote-2405747 +Node: Boolean Ops405831 +Ref: Boolean Ops-Footnote-1410313 +Node: Conditional Exp410405 +Node: Function Calls412141 +Node: Precedence416018 +Node: Locales419677 +Node: Expressions Summary421309 +Node: Patterns and Actions423882 +Node: Pattern Overview425002 +Node: Regexp Patterns426679 +Node: Expression Patterns427221 +Node: Ranges431002 +Node: BEGIN/END434110 +Node: Using BEGIN/END434871 +Ref: Using BEGIN/END-Footnote-1437625 +Node: I/O And BEGIN/END437731 +Node: BEGINFILE/ENDFILE440044 +Node: Empty443275 +Node: Using Shell Variables443592 +Node: Action Overview445866 +Node: Statements448191 +Node: If Statement450039 +Node: While Statement451534 +Node: Do Statement453562 +Node: For Statement454710 +Node: Switch Statement457965 +Node: Break Statement460406 +Node: Continue Statement462498 +Node: Next Statement464325 +Node: Nextfile Statement466708 +Node: Exit Statement469397 +Node: Built-in Variables471800 +Node: User-modified472933 +Node: Auto-set480700 +Ref: Auto-set-Footnote-1497507 +Ref: Auto-set-Footnote-2497713 +Node: ARGC and ARGV497769 +Node: Pattern Action Summary501982 +Node: Arrays504412 +Node: Array Basics505741 +Node: Array Intro506585 +Ref: figure-array-elements508560 +Ref: Array Intro-Footnote-1511265 +Node: Reference to Elements511393 +Node: Assigning Elements513857 +Node: Array Example514348 +Node: Scanning an Array516107 +Node: Controlling Scanning519129 +Ref: Controlling Scanning-Footnote-1525585 +Node: Numeric Array Subscripts525901 +Node: Uninitialized Subscripts528085 +Node: Delete529704 +Ref: Delete-Footnote-1532456 +Node: Multidimensional532513 +Node: Multiscanning535608 +Node: Arrays of Arrays537199 +Node: Arrays Summary541967 +Node: Functions544060 +Node: Built-in545098 +Node: Calling Built-in546251 +Node: Boolean Functions548247 +Node: Numeric Functions548801 +Ref: Numeric Functions-Footnote-1552828 +Ref: Numeric Functions-Footnote-2553476 +Ref: Numeric Functions-Footnote-3553524 +Node: String Functions553796 +Ref: String Functions-Footnote-1578638 +Ref: String Functions-Footnote-2578766 +Ref: String Functions-Footnote-3579014 +Node: Gory Details579101 +Ref: table-sub-escapes580892 +Ref: table-sub-proposed582412 +Ref: table-posix-sub583776 +Ref: table-gensub-escapes585318 +Ref: Gory Details-Footnote-1586142 +Node: I/O Functions586296 +Ref: table-system-return-values592750 +Ref: I/O Functions-Footnote-1594831 +Ref: I/O Functions-Footnote-2594979 +Node: Time Functions595099 +Ref: Time Functions-Footnote-1605770 +Ref: Time Functions-Footnote-2605838 +Ref: Time Functions-Footnote-3605996 +Ref: Time Functions-Footnote-4606107 +Ref: Time Functions-Footnote-5606219 +Ref: Time Functions-Footnote-6606446 +Node: Bitwise Functions606712 +Ref: table-bitwise-ops607306 +Ref: Bitwise Functions-Footnote-1613370 +Ref: Bitwise Functions-Footnote-2613543 +Node: Type Functions613734 +Node: I18N Functions617154 +Node: User-defined618805 +Node: Definition Syntax619617 +Ref: Definition Syntax-Footnote-1625311 +Node: Function Example625382 +Ref: Function Example-Footnote-1628304 +Node: Function Calling628326 +Node: Calling A Function628914 +Node: Variable Scope629872 +Node: Pass By Value/Reference632866 +Node: Function Caveats635510 +Ref: Function Caveats-Footnote-1637557 +Node: Return Statement637677 +Node: Dynamic Typing640656 +Node: Indirect Calls641586 +Ref: Indirect Calls-Footnote-1651841 +Node: Functions Summary651969 +Node: Library Functions654674 +Ref: Library Functions-Footnote-1658281 +Ref: Library Functions-Footnote-2658424 +Node: Library Names658595 +Ref: Library Names-Footnote-1662262 +Ref: Library Names-Footnote-2662485 +Node: General Functions662571 +Node: Strtonum Function663753 +Node: Assert Function666775 +Node: Round Function670101 +Node: Cliff Random Function671641 +Node: Ordinal Functions672657 +Ref: Ordinal Functions-Footnote-1675720 +Ref: Ordinal Functions-Footnote-2675972 +Node: Join Function676182 +Ref: Join Function-Footnote-1677952 +Node: Getlocaltime Function678152 +Node: Readfile Function681894 +Node: Shell Quoting683871 +Node: Isnumeric Function685299 +Node: Data File Management686687 +Node: Filetrans Function687319 +Node: Rewind Function691415 +Node: File Checking693324 +Ref: File Checking-Footnote-1694658 +Node: Empty Files694859 +Node: Ignoring Assigns696838 +Node: Getopt Function698388 +Ref: Getopt Function-Footnote-1713685 +Node: Passwd Functions713885 +Ref: Passwd Functions-Footnote-1722724 +Node: Group Functions722812 +Ref: Group Functions-Footnote-1730710 +Node: Walking Arrays730917 +Node: Library Functions Summary733925 +Node: Library Exercises735331 +Node: Sample Programs735796 +Node: Running Examples736566 +Node: Clones737294 +Node: Cut Program738518 +Node: Egrep Program748658 +Node: Id Program757659 +Node: Split Program767594 +Ref: Split Program-Footnote-1777487 +Node: Tee Program777660 +Node: Uniq Program780450 +Node: Wc Program788038 +Node: Bytes vs. Characters788425 +Node: Using extensions789973 +Node: wc program790727 +Node: Miscellaneous Programs795592 +Node: Dupword Program796805 +Node: Alarm Program798835 +Node: Translate Program803690 +Ref: Translate Program-Footnote-1808255 +Node: Labels Program808525 +Ref: Labels Program-Footnote-1811876 +Node: Word Sorting811960 +Node: History Sorting816032 +Node: Extract Program818257 +Node: Simple Sed826270 +Node: Igawk Program829344 +Ref: Igawk Program-Footnote-1843675 +Ref: Igawk Program-Footnote-2843877 +Ref: Igawk Program-Footnote-3843999 +Node: Anagram Program844114 +Node: Signature Program847176 +Node: Programs Summary848423 +Node: Programs Exercises849637 +Ref: Programs Exercises-Footnote-1853767 +Node: Advanced Features853853 +Node: Nondecimal Data855984 +Node: Boolean Typed Values857582 +Node: Array Sorting859463 +Node: Controlling Array Traversal860168 +Ref: Controlling Array Traversal-Footnote-1868536 +Node: Array Sorting Functions868654 +Ref: Array Sorting Functions-Footnote-1874028 +Node: Two-way I/O874224 +Ref: Two-way I/O-Footnote-1881950 +Ref: Two-way I/O-Footnote-2882137 +Node: TCP/IP Networking882219 +Node: Profiling885295 +Node: Extension Philosophy894604 +Node: Advanced Features Summary896083 +Node: Internationalization898098 +Node: I18N and L10N899772 +Node: Explaining gettext900459 +Ref: Explaining gettext-Footnote-1906351 +Ref: Explaining gettext-Footnote-2906536 +Node: Programmer i18n906701 +Ref: Programmer i18n-Footnote-1911650 +Node: Translator i18n911699 +Node: String Extraction912493 +Ref: String Extraction-Footnote-1913625 +Node: Printf Ordering913711 +Ref: Printf Ordering-Footnote-1916497 +Node: I18N Portability916561 +Ref: I18N Portability-Footnote-1919017 +Node: I18N Example919080 +Ref: I18N Example-Footnote-1922355 +Ref: I18N Example-Footnote-2922428 +Node: Gawk I18N922537 +Node: I18N Summary923159 +Node: Debugger924500 +Node: Debugging925500 +Node: Debugging Concepts925941 +Node: Debugging Terms927750 +Node: Awk Debugging930325 +Ref: Awk Debugging-Footnote-1931270 +Node: Sample Debugging Session931402 +Node: Debugger Invocation931936 +Node: Finding The Bug933322 +Node: List of Debugger Commands939796 +Node: Breakpoint Control941129 +Node: Debugger Execution Control944823 +Node: Viewing And Changing Data948185 +Node: Execution Stack951726 +Node: Debugger Info953363 +Node: Miscellaneous Debugger Commands957434 +Node: Readline Support962496 +Node: Limitations963392 +Node: Debugging Summary965946 +Node: Namespaces967225 +Node: Global Namespace968336 +Node: Qualified Names969734 +Node: Default Namespace970733 +Node: Changing The Namespace971474 +Node: Naming Rules973088 +Node: Internal Name Management974936 +Node: Namespace Example975978 +Node: Namespace And Features978540 +Node: Namespace Summary979975 +Node: Arbitrary Precision Arithmetic981452 +Node: Computer Arithmetic982939 +Ref: table-numeric-ranges986705 +Ref: table-floating-point-ranges987199 +Ref: Computer Arithmetic-Footnote-1987858 +Node: Math Definitions987915 +Ref: table-ieee-formats990891 +Node: MPFR features991459 +Node: FP Math Caution993177 +Ref: FP Math Caution-Footnote-1994249 +Node: Inexactness of computations994618 +Node: Inexact representation995649 +Node: Comparing FP Values997009 +Node: Errors accumulate998250 +Node: Strange values999706 +Ref: Strange values-Footnote-11002294 +Node: Getting Accuracy1002399 +Node: Try To Round1005109 +Node: Setting precision1006008 +Ref: table-predefined-precision-strings1006705 +Node: Setting the rounding mode1008536 +Ref: table-gawk-rounding-modes1008910 +Ref: Setting the rounding mode-Footnote-11012842 +Node: Arbitrary Precision Integers1013021 +Ref: Arbitrary Precision Integers-Footnote-11016196 +Node: Checking for MPFR1016345 +Node: POSIX Floating Point Problems1017819 +Ref: POSIX Floating Point Problems-Footnote-11022104 +Node: Floating point summary1022142 +Node: Dynamic Extensions1024332 +Node: Extension Intro1025885 +Node: Plugin License1027151 +Node: Extension Mechanism Outline1027948 +Ref: figure-load-extension1028387 +Ref: figure-register-new-function1029953 +Ref: figure-call-new-function1031046 +Node: Extension API Description1033109 +Node: Extension API Functions Introduction1034822 +Ref: table-api-std-headers1036658 +Node: General Data Types1040908 +Ref: General Data Types-Footnote-11049614 +Node: Memory Allocation Functions1049913 +Ref: Memory Allocation Functions-Footnote-11054414 +Node: Constructor Functions1054513 +Node: API Ownership of MPFR and GMP Values1058166 +Node: Registration Functions1059479 +Node: Extension Functions1060179 +Node: Exit Callback Functions1065501 +Node: Extension Version String1066751 +Node: Input Parsers1067414 +Node: Output Wrappers1080135 +Node: Two-way processors1084647 +Node: Printing Messages1086912 +Ref: Printing Messages-Footnote-11088083 +Node: Updating ERRNO1088236 +Node: Requesting Values1088975 +Ref: table-value-types-returned1089712 +Node: Accessing Parameters1090821 +Node: Symbol Table Access1092058 +Node: Symbol table by name1092570 +Ref: Symbol table by name-Footnote-11095595 +Node: Symbol table by cookie1095723 +Ref: Symbol table by cookie-Footnote-11099908 +Node: Cached values1099972 +Ref: Cached values-Footnote-11103508 +Node: Array Manipulation1103661 +Ref: Array Manipulation-Footnote-11104752 +Node: Array Data Types1104789 +Ref: Array Data Types-Footnote-11107447 +Node: Array Functions1107539 +Node: Flattening Arrays1112037 +Node: Creating Arrays1119013 +Node: Redirection API1123780 +Node: Extension API Variables1126613 +Node: Extension Versioning1127324 +Ref: gawk-api-version1127753 +Node: Extension GMP/MPFR Versioning1129485 +Node: Extension API Informational Variables1131113 +Node: Extension API Boilerplate1132186 +Node: Changes from API V11136160 +Node: Finding Extensions1137732 +Node: Extension Example1138291 +Node: Internal File Description1139089 +Node: Internal File Ops1143169 +Ref: Internal File Ops-Footnote-11154519 +Node: Using Internal File Ops1154659 +Ref: Using Internal File Ops-Footnote-11157042 +Node: Extension Samples1157316 +Node: Extension Sample File Functions1158845 +Node: Extension Sample Fnmatch1166494 +Node: Extension Sample Fork1167981 +Node: Extension Sample Inplace1169199 +Node: Extension Sample Ord1172825 +Node: Extension Sample Readdir1173661 +Ref: table-readdir-file-types1174550 +Node: Extension Sample Revout1175618 +Node: Extension Sample Rev2way1176207 +Node: Extension Sample Read write array1176947 +Node: Extension Sample Readfile1178889 +Node: Extension Sample Time1179984 +Node: Extension Sample API Tests1181736 +Node: gawkextlib1182228 +Node: Extension summary1185146 +Node: Extension Exercises1188848 +Node: Language History1190090 +Node: V7/SVR3.11191746 +Node: SVR41193898 +Node: POSIX1195332 +Node: BTL1196713 +Node: POSIX/GNU1197442 +Node: Feature History1203220 +Node: Common Extensions1220395 +Node: Ranges and Locales1221678 +Ref: Ranges and Locales-Footnote-11226294 +Ref: Ranges and Locales-Footnote-21226321 +Ref: Ranges and Locales-Footnote-31226556 +Node: Contributors1226779 +Node: History summary1232776 +Node: Installation1234156 +Node: Gawk Distribution1235100 +Node: Getting1235584 +Node: Extracting1236547 +Node: Distribution contents1238185 +Node: Unix Installation1245246 +Node: Quick Installation1246050 +Node: Compiling with MPFR1248470 +Node: Shell Startup Files1249160 +Node: Additional Configuration Options1250249 +Node: Configuration Philosophy1252564 +Node: Compiling from Git1254960 +Node: Building the Documentation1255515 +Node: Non-Unix Installation1256899 +Node: PC Installation1257359 +Node: PC Binary Installation1258197 +Node: PC Compiling1259070 +Node: PC Using1260187 +Node: Cygwin1263740 +Node: MSYS1264964 +Node: VMS Installation1265566 +Node: VMS Compilation1266285 +Ref: VMS Compilation-Footnote-11267514 +Node: VMS Dynamic Extensions1267572 +Node: VMS Installation Details1269257 +Node: VMS Running1271519 +Node: VMS GNV1275798 +Node: Bugs1276512 +Node: Bug definition1277424 +Node: Bug address1280360 +Node: Usenet1283748 +Node: Performance bugs1284937 +Node: Asking for help1287858 +Node: Maintainers1289825 +Node: Other Versions1291019 +Node: Installation summary1299183 +Node: Notes1300547 +Node: Compatibility Mode1301341 +Node: Additions1302123 +Node: Accessing The Source1303048 +Node: Adding Code1304485 +Node: New Ports1310677 +Node: Derived Files1315052 +Ref: Derived Files-Footnote-11320712 +Ref: Derived Files-Footnote-21320747 +Ref: Derived Files-Footnote-31321345 +Node: Future Extensions1321459 +Node: Implementation Limitations1322117 +Node: Extension Design1323327 +Node: Old Extension Problems1324471 +Ref: Old Extension Problems-Footnote-11325989 +Node: Extension New Mechanism Goals1326046 +Ref: Extension New Mechanism Goals-Footnote-11329410 +Node: Extension Other Design Decisions1329599 +Node: Extension Future Growth1331712 +Node: Notes summary1332318 +Node: Basic Concepts1333476 +Node: Basic High Level1334157 +Ref: figure-general-flow1334439 +Ref: figure-process-flow1335125 +Ref: Basic High Level-Footnote-11338427 +Node: Basic Data Typing1338612 +Node: Glossary1341940 +Node: Copying1373827 +Node: GNU Free Documentation License1411370 +Node: Index1436490 End Tag Table |