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 e4e11186..aba85111 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 @@ -21027,6 +21052,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. @@ -21036,7 +21062,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 =================================== @@ -21079,9 +21105,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 @@ -21100,7 +21170,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 @@ -21339,7 +21409,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 @@ -21484,7 +21554,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 @@ -21679,7 +21749,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': @@ -21759,7 +21829,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 @@ -22021,7 +22091,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 @@ -22057,7 +22127,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 @@ -24416,18 +24486,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. @@ -24487,11 +24549,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 @@ -24584,6 +24641,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 @@ -24648,7 +24706,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 .......................... @@ -24696,6 +24754,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 @@ -25648,7 +25764,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'. @@ -25661,6 +25778,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 @@ -25676,6 +25794,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. @@ -25986,6 +26105,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 @@ -26712,16 +26836,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 @@ -33601,8 +33726,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 @@ -35758,6 +35883,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) @@ -36114,7 +36240,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) @@ -37354,6 +37480,7 @@ Index * metacharacters, escape sequences for: Escape Sequences. (line 139) * 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) @@ -38579,610 +38706,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: Variables361867 -Node: Using Variables362524 -Node: Assignment Options364434 -Node: Conversion366905 -Node: Strings And Numbers367429 -Ref: Strings And Numbers-Footnote-1370492 -Node: Locale influences conversions370601 -Ref: table-locale-affects373359 -Node: All Operators373978 -Node: Arithmetic Ops374607 -Node: Concatenation377323 -Ref: Concatenation-Footnote-1380170 -Node: Assignment Ops380277 -Ref: table-assign-ops385268 -Node: Increment Ops386582 -Node: Truth Values and Conditions390042 -Node: Truth Values391116 -Node: Typing and Comparison392164 -Node: Variable Typing392984 -Ref: Variable Typing-Footnote-1399447 -Ref: Variable Typing-Footnote-2399519 -Node: Comparison Operators399596 -Ref: table-relational-ops400015 -Node: POSIX String Comparison403511 -Ref: POSIX String Comparison-Footnote-1405206 -Ref: POSIX String Comparison-Footnote-2405345 -Node: Boolean Ops405429 -Ref: Boolean Ops-Footnote-1409911 -Node: Conditional Exp410003 -Node: Function Calls411739 -Node: Precedence415616 -Node: Locales419275 -Node: Expressions Summary420907 -Node: Patterns and Actions423480 -Node: Pattern Overview424600 -Node: Regexp Patterns426277 -Node: Expression Patterns426819 -Node: Ranges430600 -Node: BEGIN/END433708 -Node: Using BEGIN/END434469 -Ref: Using BEGIN/END-Footnote-1437223 -Node: I/O And BEGIN/END437329 -Node: BEGINFILE/ENDFILE439642 -Node: Empty442873 -Node: Using Shell Variables443190 -Node: Action Overview445464 -Node: Statements447789 -Node: If Statement449637 -Node: While Statement451132 -Node: Do Statement453160 -Node: For Statement454308 -Node: Switch Statement457563 -Node: Break Statement460004 -Node: Continue Statement462096 -Node: Next Statement463923 -Node: Nextfile Statement466306 -Node: Exit Statement468995 -Node: Built-in Variables471398 -Node: User-modified472531 -Node: Auto-set480298 -Ref: Auto-set-Footnote-1497105 -Ref: Auto-set-Footnote-2497311 -Node: ARGC and ARGV497367 -Node: Pattern Action Summary501580 -Node: Arrays504010 -Node: Array Basics505339 -Node: Array Intro506183 -Ref: figure-array-elements508158 -Ref: Array Intro-Footnote-1510863 -Node: Reference to Elements510991 -Node: Assigning Elements513455 -Node: Array Example513946 -Node: Scanning an Array515705 -Node: Controlling Scanning518727 -Ref: Controlling Scanning-Footnote-1525183 -Node: Numeric Array Subscripts525499 -Node: Uninitialized Subscripts527683 -Node: Delete529302 -Ref: Delete-Footnote-1532054 -Node: Multidimensional532111 -Node: Multiscanning535206 -Node: Arrays of Arrays536797 -Node: Arrays Summary541565 -Node: Functions543658 -Node: Built-in544696 -Node: Calling Built-in545777 -Node: Numeric Functions547773 -Ref: Numeric Functions-Footnote-1551801 -Ref: Numeric Functions-Footnote-2552449 -Ref: Numeric Functions-Footnote-3552497 -Node: String Functions552769 -Ref: String Functions-Footnote-1577611 -Ref: String Functions-Footnote-2577739 -Ref: String Functions-Footnote-3577987 -Node: Gory Details578074 -Ref: table-sub-escapes579865 -Ref: table-sub-proposed581385 -Ref: table-posix-sub582749 -Ref: table-gensub-escapes584291 -Ref: Gory Details-Footnote-1585115 -Node: I/O Functions585269 -Ref: table-system-return-values591723 -Ref: I/O Functions-Footnote-1593804 -Ref: I/O Functions-Footnote-2593952 -Node: Time Functions594072 -Ref: Time Functions-Footnote-1604743 -Ref: Time Functions-Footnote-2604811 -Ref: Time Functions-Footnote-3604969 -Ref: Time Functions-Footnote-4605080 -Ref: Time Functions-Footnote-5605192 -Ref: Time Functions-Footnote-6605419 -Node: Bitwise Functions605685 -Ref: table-bitwise-ops606279 -Ref: Bitwise Functions-Footnote-1612343 -Ref: Bitwise Functions-Footnote-2612516 -Node: Type Functions612707 -Node: I18N Functions616036 -Node: User-defined617687 -Node: Definition Syntax618499 -Ref: Definition Syntax-Footnote-1624193 -Node: Function Example624264 -Ref: Function Example-Footnote-1627186 -Node: Function Calling627208 -Node: Calling A Function627796 -Node: Variable Scope628754 -Node: Pass By Value/Reference631748 -Node: Function Caveats634392 -Ref: Function Caveats-Footnote-1636439 -Node: Return Statement636559 -Node: Dynamic Typing639538 -Node: Indirect Calls640468 -Ref: Indirect Calls-Footnote-1650720 -Node: Functions Summary650848 -Node: Library Functions653553 -Ref: Library Functions-Footnote-1657160 -Ref: Library Functions-Footnote-2657303 -Node: Library Names657474 -Ref: Library Names-Footnote-1661141 -Ref: Library Names-Footnote-2661364 -Node: General Functions661450 -Node: Strtonum Function662632 -Node: Assert Function665654 -Node: Round Function668980 -Node: Cliff Random Function670520 -Node: Ordinal Functions671536 -Ref: Ordinal Functions-Footnote-1674599 -Ref: Ordinal Functions-Footnote-2674851 -Node: Join Function675061 -Ref: Join Function-Footnote-1676831 -Node: Getlocaltime Function677031 -Node: Readfile Function680773 -Node: Shell Quoting682750 -Node: Isnumeric Function684178 -Node: Data File Management685566 -Node: Filetrans Function686198 -Node: Rewind Function690294 -Node: File Checking692203 -Ref: File Checking-Footnote-1693537 -Node: Empty Files693738 -Node: Ignoring Assigns695717 -Node: Getopt Function697267 -Ref: Getopt Function-Footnote-1712490 -Node: Passwd Functions712690 -Ref: Passwd Functions-Footnote-1721529 -Node: Group Functions721617 -Ref: Group Functions-Footnote-1729515 -Node: Walking Arrays729722 -Node: Library Functions Summary732730 -Node: Library Exercises734136 -Node: Sample Programs734601 -Node: Running Examples735371 -Node: Clones736099 -Node: Cut Program737323 -Node: Egrep Program747463 -Node: Id Program756464 -Node: Split Program766399 -Ref: Split Program-Footnote-1776292 -Node: Tee Program776465 -Node: Uniq Program779255 -Node: Wc Program786843 -Node: Bytes vs. Characters787230 -Node: Using extensions788778 -Node: wc program789532 -Node: Miscellaneous Programs794397 -Node: Dupword Program795610 -Node: Alarm Program797640 -Node: Translate Program802495 -Ref: Translate Program-Footnote-1807060 -Node: Labels Program807330 -Ref: Labels Program-Footnote-1810681 -Node: Word Sorting810765 -Node: History Sorting814837 -Node: Extract Program817062 -Node: Simple Sed825075 -Node: Igawk Program828149 -Ref: Igawk Program-Footnote-1842480 -Ref: Igawk Program-Footnote-2842682 -Ref: Igawk Program-Footnote-3842804 -Node: Anagram Program842919 -Node: Signature Program845981 -Node: Programs Summary847228 -Node: Programs Exercises848442 -Ref: Programs Exercises-Footnote-1852572 -Node: Advanced Features852658 -Node: Nondecimal Data854725 -Node: Array Sorting856316 -Node: Controlling Array Traversal857016 -Ref: Controlling Array Traversal-Footnote-1865384 -Node: Array Sorting Functions865502 -Ref: Array Sorting Functions-Footnote-1870876 -Node: Two-way I/O871072 -Ref: Two-way I/O-Footnote-1878798 -Ref: Two-way I/O-Footnote-2878985 -Node: TCP/IP Networking879067 -Node: Profiling882143 -Node: Extension Philosophy891452 -Node: Advanced Features Summary892931 -Node: Internationalization894946 -Node: I18N and L10N896620 -Node: Explaining gettext897307 -Ref: Explaining gettext-Footnote-1903199 -Ref: Explaining gettext-Footnote-2903384 -Node: Programmer i18n903549 -Ref: Programmer i18n-Footnote-1908498 -Node: Translator i18n908547 -Node: String Extraction909341 -Ref: String Extraction-Footnote-1910473 -Node: Printf Ordering910559 -Ref: Printf Ordering-Footnote-1913345 -Node: I18N Portability913409 -Ref: I18N Portability-Footnote-1915865 -Node: I18N Example915928 -Ref: I18N Example-Footnote-1919203 -Ref: I18N Example-Footnote-2919276 -Node: Gawk I18N919385 -Node: I18N Summary920007 -Node: Debugger921348 -Node: Debugging922348 -Node: Debugging Concepts922789 -Node: Debugging Terms924598 -Node: Awk Debugging927173 -Ref: Awk Debugging-Footnote-1928118 -Node: Sample Debugging Session928250 -Node: Debugger Invocation928784 -Node: Finding The Bug930170 -Node: List of Debugger Commands936644 -Node: Breakpoint Control937977 -Node: Debugger Execution Control941671 -Node: Viewing And Changing Data945033 -Node: Execution Stack948574 -Node: Debugger Info950211 -Node: Miscellaneous Debugger Commands954282 -Node: Readline Support959344 -Node: Limitations960240 -Node: Debugging Summary962794 -Node: Namespaces964073 -Node: Global Namespace965184 -Node: Qualified Names966582 -Node: Default Namespace967581 -Node: Changing The Namespace968322 -Node: Naming Rules969936 -Node: Internal Name Management971784 -Node: Namespace Example972826 -Node: Namespace And Features975388 -Node: Namespace Summary976823 -Node: Arbitrary Precision Arithmetic978300 -Node: Computer Arithmetic979787 -Ref: table-numeric-ranges983553 -Ref: table-floating-point-ranges984047 -Ref: Computer Arithmetic-Footnote-1984706 -Node: Math Definitions984763 -Ref: table-ieee-formats988079 -Ref: Math Definitions-Footnote-1988683 -Node: MPFR features988788 -Node: FP Math Caution990506 -Ref: FP Math Caution-Footnote-1991578 -Node: Inexactness of computations991947 -Node: Inexact representation992907 -Node: Comparing FP Values994267 -Node: Errors accumulate995508 -Node: Getting Accuracy996941 -Node: Try To Round999651 -Node: Setting precision1000550 -Ref: table-predefined-precision-strings1001247 -Node: Setting the rounding mode1003078 -Ref: table-gawk-rounding-modes1003452 -Ref: Setting the rounding mode-Footnote-11007384 -Node: Arbitrary Precision Integers1007563 -Ref: Arbitrary Precision Integers-Footnote-11010738 -Node: Checking for MPFR1010887 -Node: POSIX Floating Point Problems1012361 -Ref: POSIX Floating Point Problems-Footnote-11016646 -Node: Floating point summary1016684 -Node: Dynamic Extensions1018874 -Node: Extension Intro1020427 -Node: Plugin License1021693 -Node: Extension Mechanism Outline1022490 -Ref: figure-load-extension1022929 -Ref: figure-register-new-function1024495 -Ref: figure-call-new-function1025588 -Node: Extension API Description1027651 -Node: Extension API Functions Introduction1029364 -Ref: table-api-std-headers1031200 -Node: General Data Types1035450 -Ref: General Data Types-Footnote-11044080 -Node: Memory Allocation Functions1044379 -Ref: Memory Allocation Functions-Footnote-11048880 -Node: Constructor Functions1048979 -Node: API Ownership of MPFR and GMP Values1052445 -Node: Registration Functions1053758 -Node: Extension Functions1054458 -Node: Exit Callback Functions1059780 -Node: Extension Version String1061030 -Node: Input Parsers1061693 -Node: Output Wrappers1074414 -Node: Two-way processors1078926 -Node: Printing Messages1081191 -Ref: Printing Messages-Footnote-11082362 -Node: Updating ERRNO1082515 -Node: Requesting Values1083254 -Ref: table-value-types-returned1083991 -Node: Accessing Parameters1084928 -Node: Symbol Table Access1086165 -Node: Symbol table by name1086677 -Ref: Symbol table by name-Footnote-11089702 -Node: Symbol table by cookie1089830 -Ref: Symbol table by cookie-Footnote-11094015 -Node: Cached values1094079 -Ref: Cached values-Footnote-11097615 -Node: Array Manipulation1097768 -Ref: Array Manipulation-Footnote-11098859 -Node: Array Data Types1098896 -Ref: Array Data Types-Footnote-11101554 -Node: Array Functions1101646 -Node: Flattening Arrays1106144 -Node: Creating Arrays1113120 -Node: Redirection API1117887 -Node: Extension API Variables1120720 -Node: Extension Versioning1121431 -Ref: gawk-api-version1121860 -Node: Extension GMP/MPFR Versioning1123592 -Node: Extension API Informational Variables1125220 -Node: Extension API Boilerplate1126293 -Node: Changes from API V11130267 -Node: Finding Extensions1131839 -Node: Extension Example1132398 -Node: Internal File Description1133196 -Node: Internal File Ops1137276 -Ref: Internal File Ops-Footnote-11148626 -Node: Using Internal File Ops1148766 -Ref: Using Internal File Ops-Footnote-11151149 -Node: Extension Samples1151423 -Node: Extension Sample File Functions1152952 -Node: Extension Sample Fnmatch1160601 -Node: Extension Sample Fork1162088 -Node: Extension Sample Inplace1163306 -Node: Extension Sample Ord1166932 -Node: Extension Sample Readdir1167768 -Ref: table-readdir-file-types1168657 -Node: Extension Sample Revout1169725 -Node: Extension Sample Rev2way1170314 -Node: Extension Sample Read write array1171054 -Node: Extension Sample Readfile1172996 -Node: Extension Sample Time1174091 -Node: Extension Sample API Tests1175843 -Node: gawkextlib1176335 -Node: Extension summary1179253 -Node: Extension Exercises1182955 -Node: Language History1184197 -Node: V7/SVR3.11185853 -Node: SVR41188005 -Node: POSIX1189439 -Node: BTL1190820 -Node: POSIX/GNU1191549 -Node: Feature History1197327 -Node: Common Extensions1214502 -Node: Ranges and Locales1215785 -Ref: Ranges and Locales-Footnote-11220401 -Ref: Ranges and Locales-Footnote-21220428 -Ref: Ranges and Locales-Footnote-31220663 -Node: Contributors1220886 -Node: History summary1226883 -Node: Installation1228263 -Node: Gawk Distribution1229207 -Node: Getting1229691 -Node: Extracting1230654 -Node: Distribution contents1232292 -Node: Unix Installation1239353 -Node: Quick Installation1240157 -Node: Compiling with MPFR1242577 -Node: Shell Startup Files1243267 -Node: Additional Configuration Options1244356 -Node: Configuration Philosophy1246671 -Node: Compiling from Git1249067 -Node: Building the Documentation1249622 -Node: Non-Unix Installation1251006 -Node: PC Installation1251466 -Node: PC Binary Installation1252304 -Node: PC Compiling1252739 -Node: PC Using1253856 -Node: Cygwin1257409 -Node: MSYS1258633 -Node: VMS Installation1259235 -Node: VMS Compilation1259954 -Ref: VMS Compilation-Footnote-11261183 -Node: VMS Dynamic Extensions1261241 -Node: VMS Installation Details1262926 -Node: VMS Running1265188 -Node: VMS GNV1269467 -Node: Bugs1270181 -Node: Bug definition1271093 -Node: Bug address1274029 -Node: Usenet1277417 -Node: Performance bugs1278606 -Node: Asking for help1281527 -Node: Maintainers1283494 -Node: Other Versions1284688 -Node: Installation summary1292540 -Node: Notes1293904 -Node: Compatibility Mode1294698 -Node: Additions1295480 -Node: Accessing The Source1296405 -Node: Adding Code1297842 -Node: New Ports1304034 -Node: Derived Files1308409 -Ref: Derived Files-Footnote-11314069 -Ref: Derived Files-Footnote-21314104 -Ref: Derived Files-Footnote-31314702 -Node: Future Extensions1314816 -Node: Implementation Limitations1315474 -Node: Extension Design1316684 -Node: Old Extension Problems1317828 -Ref: Old Extension Problems-Footnote-11319346 -Node: Extension New Mechanism Goals1319403 -Ref: Extension New Mechanism Goals-Footnote-11322767 -Node: Extension Other Design Decisions1322956 -Node: Extension Future Growth1325069 -Node: Notes summary1325675 -Node: Basic Concepts1326833 -Node: Basic High Level1327514 -Ref: figure-general-flow1327796 -Ref: figure-process-flow1328482 -Ref: Basic High Level-Footnote-11331784 -Node: Basic Data Typing1331969 -Node: Glossary1335297 -Node: Copying1367182 -Node: GNU Free Documentation License1404725 -Node: Index1429845 +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: Variables362267 +Node: Using Variables362924 +Node: Assignment Options364834 +Node: Conversion367305 +Node: Strings And Numbers367829 +Ref: Strings And Numbers-Footnote-1370892 +Node: Locale influences conversions371001 +Ref: table-locale-affects373759 +Node: All Operators374378 +Node: Arithmetic Ops375007 +Node: Concatenation377723 +Ref: Concatenation-Footnote-1380570 +Node: Assignment Ops380677 +Ref: table-assign-ops385668 +Node: Increment Ops386982 +Node: Truth Values and Conditions390442 +Node: Truth Values391516 +Node: Typing and Comparison392564 +Node: Variable Typing393384 +Ref: Variable Typing-Footnote-1399847 +Ref: Variable Typing-Footnote-2399919 +Node: Comparison Operators399996 +Ref: table-relational-ops400415 +Node: POSIX String Comparison403911 +Ref: POSIX String Comparison-Footnote-1405606 +Ref: POSIX String Comparison-Footnote-2405745 +Node: Boolean Ops405829 +Ref: Boolean Ops-Footnote-1410311 +Node: Conditional Exp410403 +Node: Function Calls412139 +Node: Precedence416016 +Node: Locales419675 +Node: Expressions Summary421307 +Node: Patterns and Actions423880 +Node: Pattern Overview425000 +Node: Regexp Patterns426677 +Node: Expression Patterns427219 +Node: Ranges431000 +Node: BEGIN/END434108 +Node: Using BEGIN/END434869 +Ref: Using BEGIN/END-Footnote-1437623 +Node: I/O And BEGIN/END437729 +Node: BEGINFILE/ENDFILE440042 +Node: Empty443273 +Node: Using Shell Variables443590 +Node: Action Overview445864 +Node: Statements448189 +Node: If Statement450037 +Node: While Statement451532 +Node: Do Statement453560 +Node: For Statement454708 +Node: Switch Statement457963 +Node: Break Statement460404 +Node: Continue Statement462496 +Node: Next Statement464323 +Node: Nextfile Statement466706 +Node: Exit Statement469395 +Node: Built-in Variables471798 +Node: User-modified472931 +Node: Auto-set480698 +Ref: Auto-set-Footnote-1497505 +Ref: Auto-set-Footnote-2497711 +Node: ARGC and ARGV497767 +Node: Pattern Action Summary501980 +Node: Arrays504410 +Node: Array Basics505739 +Node: Array Intro506583 +Ref: figure-array-elements508558 +Ref: Array Intro-Footnote-1511263 +Node: Reference to Elements511391 +Node: Assigning Elements513855 +Node: Array Example514346 +Node: Scanning an Array516105 +Node: Controlling Scanning519127 +Ref: Controlling Scanning-Footnote-1525583 +Node: Numeric Array Subscripts525899 +Node: Uninitialized Subscripts528083 +Node: Delete529702 +Ref: Delete-Footnote-1532454 +Node: Multidimensional532511 +Node: Multiscanning535606 +Node: Arrays of Arrays537197 +Node: Arrays Summary541965 +Node: Functions544058 +Node: Built-in545096 +Node: Calling Built-in546249 +Node: Boolean Functions548245 +Node: Numeric Functions548799 +Ref: Numeric Functions-Footnote-1552826 +Ref: Numeric Functions-Footnote-2553474 +Ref: Numeric Functions-Footnote-3553522 +Node: String Functions553794 +Ref: String Functions-Footnote-1578636 +Ref: String Functions-Footnote-2578764 +Ref: String Functions-Footnote-3579012 +Node: Gory Details579099 +Ref: table-sub-escapes580890 +Ref: table-sub-proposed582410 +Ref: table-posix-sub583774 +Ref: table-gensub-escapes585316 +Ref: Gory Details-Footnote-1586140 +Node: I/O Functions586294 +Ref: table-system-return-values592748 +Ref: I/O Functions-Footnote-1594829 +Ref: I/O Functions-Footnote-2594977 +Node: Time Functions595097 +Ref: Time Functions-Footnote-1605768 +Ref: Time Functions-Footnote-2605836 +Ref: Time Functions-Footnote-3605994 +Ref: Time Functions-Footnote-4606105 +Ref: Time Functions-Footnote-5606217 +Ref: Time Functions-Footnote-6606444 +Node: Bitwise Functions606710 +Ref: table-bitwise-ops607304 +Ref: Bitwise Functions-Footnote-1613368 +Ref: Bitwise Functions-Footnote-2613541 +Node: Type Functions613732 +Node: I18N Functions617152 +Node: User-defined618803 +Node: Definition Syntax619615 +Ref: Definition Syntax-Footnote-1625309 +Node: Function Example625380 +Ref: Function Example-Footnote-1628302 +Node: Function Calling628324 +Node: Calling A Function628912 +Node: Variable Scope629870 +Node: Pass By Value/Reference632864 +Node: Function Caveats635508 +Ref: Function Caveats-Footnote-1637555 +Node: Return Statement637675 +Node: Dynamic Typing640654 +Node: Indirect Calls641584 +Ref: Indirect Calls-Footnote-1651839 +Node: Functions Summary651967 +Node: Library Functions654672 +Ref: Library Functions-Footnote-1658279 +Ref: Library Functions-Footnote-2658422 +Node: Library Names658593 +Ref: Library Names-Footnote-1662260 +Ref: Library Names-Footnote-2662483 +Node: General Functions662569 +Node: Strtonum Function663751 +Node: Assert Function666773 +Node: Round Function670099 +Node: Cliff Random Function671639 +Node: Ordinal Functions672655 +Ref: Ordinal Functions-Footnote-1675718 +Ref: Ordinal Functions-Footnote-2675970 +Node: Join Function676180 +Ref: Join Function-Footnote-1677950 +Node: Getlocaltime Function678150 +Node: Readfile Function681892 +Node: Shell Quoting683869 +Node: Isnumeric Function685297 +Node: Data File Management686685 +Node: Filetrans Function687317 +Node: Rewind Function691413 +Node: File Checking693322 +Ref: File Checking-Footnote-1694656 +Node: Empty Files694857 +Node: Ignoring Assigns696836 +Node: Getopt Function698386 +Ref: Getopt Function-Footnote-1713609 +Node: Passwd Functions713809 +Ref: Passwd Functions-Footnote-1722648 +Node: Group Functions722736 +Ref: Group Functions-Footnote-1730634 +Node: Walking Arrays730841 +Node: Library Functions Summary733849 +Node: Library Exercises735255 +Node: Sample Programs735720 +Node: Running Examples736490 +Node: Clones737218 +Node: Cut Program738442 +Node: Egrep Program748582 +Node: Id Program757583 +Node: Split Program767518 +Ref: Split Program-Footnote-1777411 +Node: Tee Program777584 +Node: Uniq Program780374 +Node: Wc Program787962 +Node: Bytes vs. Characters788349 +Node: Using extensions789897 +Node: wc program790651 +Node: Miscellaneous Programs795516 +Node: Dupword Program796729 +Node: Alarm Program798759 +Node: Translate Program803614 +Ref: Translate Program-Footnote-1808179 +Node: Labels Program808449 +Ref: Labels Program-Footnote-1811800 +Node: Word Sorting811884 +Node: History Sorting815956 +Node: Extract Program818181 +Node: Simple Sed826194 +Node: Igawk Program829268 +Ref: Igawk Program-Footnote-1843599 +Ref: Igawk Program-Footnote-2843801 +Ref: Igawk Program-Footnote-3843923 +Node: Anagram Program844038 +Node: Signature Program847100 +Node: Programs Summary848347 +Node: Programs Exercises849561 +Ref: Programs Exercises-Footnote-1853691 +Node: Advanced Features853777 +Node: Nondecimal Data855908 +Node: Boolean Typed Values857506 +Node: Array Sorting859387 +Node: Controlling Array Traversal860092 +Ref: Controlling Array Traversal-Footnote-1868460 +Node: Array Sorting Functions868578 +Ref: Array Sorting Functions-Footnote-1873952 +Node: Two-way I/O874148 +Ref: Two-way I/O-Footnote-1881874 +Ref: Two-way I/O-Footnote-2882061 +Node: TCP/IP Networking882143 +Node: Profiling885219 +Node: Extension Philosophy894528 +Node: Advanced Features Summary896007 +Node: Internationalization898022 +Node: I18N and L10N899696 +Node: Explaining gettext900383 +Ref: Explaining gettext-Footnote-1906275 +Ref: Explaining gettext-Footnote-2906460 +Node: Programmer i18n906625 +Ref: Programmer i18n-Footnote-1911574 +Node: Translator i18n911623 +Node: String Extraction912417 +Ref: String Extraction-Footnote-1913549 +Node: Printf Ordering913635 +Ref: Printf Ordering-Footnote-1916421 +Node: I18N Portability916485 +Ref: I18N Portability-Footnote-1918941 +Node: I18N Example919004 +Ref: I18N Example-Footnote-1922279 +Ref: I18N Example-Footnote-2922352 +Node: Gawk I18N922461 +Node: I18N Summary923083 +Node: Debugger924424 +Node: Debugging925424 +Node: Debugging Concepts925865 +Node: Debugging Terms927674 +Node: Awk Debugging930249 +Ref: Awk Debugging-Footnote-1931194 +Node: Sample Debugging Session931326 +Node: Debugger Invocation931860 +Node: Finding The Bug933246 +Node: List of Debugger Commands939720 +Node: Breakpoint Control941053 +Node: Debugger Execution Control944747 +Node: Viewing And Changing Data948109 +Node: Execution Stack951650 +Node: Debugger Info953287 +Node: Miscellaneous Debugger Commands957358 +Node: Readline Support962420 +Node: Limitations963316 +Node: Debugging Summary965870 +Node: Namespaces967149 +Node: Global Namespace968260 +Node: Qualified Names969658 +Node: Default Namespace970657 +Node: Changing The Namespace971398 +Node: Naming Rules973012 +Node: Internal Name Management974860 +Node: Namespace Example975902 +Node: Namespace And Features978464 +Node: Namespace Summary979899 +Node: Arbitrary Precision Arithmetic981376 +Node: Computer Arithmetic982863 +Ref: table-numeric-ranges986629 +Ref: table-floating-point-ranges987123 +Ref: Computer Arithmetic-Footnote-1987782 +Node: Math Definitions987839 +Ref: table-ieee-formats990815 +Node: MPFR features991383 +Node: FP Math Caution993101 +Ref: FP Math Caution-Footnote-1994173 +Node: Inexactness of computations994542 +Node: Inexact representation995573 +Node: Comparing FP Values996933 +Node: Errors accumulate998174 +Node: Strange values999630 +Ref: Strange values-Footnote-11002218 +Node: Getting Accuracy1002323 +Node: Try To Round1005033 +Node: Setting precision1005932 +Ref: table-predefined-precision-strings1006629 +Node: Setting the rounding mode1008460 +Ref: table-gawk-rounding-modes1008834 +Ref: Setting the rounding mode-Footnote-11012766 +Node: Arbitrary Precision Integers1012945 +Ref: Arbitrary Precision Integers-Footnote-11016120 +Node: Checking for MPFR1016269 +Node: POSIX Floating Point Problems1017743 +Ref: POSIX Floating Point Problems-Footnote-11022028 +Node: Floating point summary1022066 +Node: Dynamic Extensions1024256 +Node: Extension Intro1025809 +Node: Plugin License1027075 +Node: Extension Mechanism Outline1027872 +Ref: figure-load-extension1028311 +Ref: figure-register-new-function1029877 +Ref: figure-call-new-function1030970 +Node: Extension API Description1033033 +Node: Extension API Functions Introduction1034746 +Ref: table-api-std-headers1036582 +Node: General Data Types1040832 +Ref: General Data Types-Footnote-11049538 +Node: Memory Allocation Functions1049837 +Ref: Memory Allocation Functions-Footnote-11054338 +Node: Constructor Functions1054437 +Node: API Ownership of MPFR and GMP Values1058090 +Node: Registration Functions1059403 +Node: Extension Functions1060103 +Node: Exit Callback Functions1065425 +Node: Extension Version String1066675 +Node: Input Parsers1067338 +Node: Output Wrappers1080059 +Node: Two-way processors1084571 +Node: Printing Messages1086836 +Ref: Printing Messages-Footnote-11088007 +Node: Updating ERRNO1088160 +Node: Requesting Values1088899 +Ref: table-value-types-returned1089636 +Node: Accessing Parameters1090745 +Node: Symbol Table Access1091982 +Node: Symbol table by name1092494 +Ref: Symbol table by name-Footnote-11095519 +Node: Symbol table by cookie1095647 +Ref: Symbol table by cookie-Footnote-11099832 +Node: Cached values1099896 +Ref: Cached values-Footnote-11103432 +Node: Array Manipulation1103585 +Ref: Array Manipulation-Footnote-11104676 +Node: Array Data Types1104713 +Ref: Array Data Types-Footnote-11107371 +Node: Array Functions1107463 +Node: Flattening Arrays1111961 +Node: Creating Arrays1118937 +Node: Redirection API1123704 +Node: Extension API Variables1126537 +Node: Extension Versioning1127248 +Ref: gawk-api-version1127677 +Node: Extension GMP/MPFR Versioning1129409 +Node: Extension API Informational Variables1131037 +Node: Extension API Boilerplate1132110 +Node: Changes from API V11136084 +Node: Finding Extensions1137656 +Node: Extension Example1138215 +Node: Internal File Description1139013 +Node: Internal File Ops1143093 +Ref: Internal File Ops-Footnote-11154443 +Node: Using Internal File Ops1154583 +Ref: Using Internal File Ops-Footnote-11156966 +Node: Extension Samples1157240 +Node: Extension Sample File Functions1158769 +Node: Extension Sample Fnmatch1166418 +Node: Extension Sample Fork1167905 +Node: Extension Sample Inplace1169123 +Node: Extension Sample Ord1172749 +Node: Extension Sample Readdir1173585 +Ref: table-readdir-file-types1174474 +Node: Extension Sample Revout1175542 +Node: Extension Sample Rev2way1176131 +Node: Extension Sample Read write array1176871 +Node: Extension Sample Readfile1178813 +Node: Extension Sample Time1179908 +Node: Extension Sample API Tests1181660 +Node: gawkextlib1182152 +Node: Extension summary1185070 +Node: Extension Exercises1188772 +Node: Language History1190014 +Node: V7/SVR3.11191670 +Node: SVR41193822 +Node: POSIX1195256 +Node: BTL1196637 +Node: POSIX/GNU1197366 +Node: Feature History1203144 +Node: Common Extensions1220319 +Node: Ranges and Locales1221602 +Ref: Ranges and Locales-Footnote-11226218 +Ref: Ranges and Locales-Footnote-21226245 +Ref: Ranges and Locales-Footnote-31226480 +Node: Contributors1226703 +Node: History summary1232700 +Node: Installation1234080 +Node: Gawk Distribution1235024 +Node: Getting1235508 +Node: Extracting1236471 +Node: Distribution contents1238109 +Node: Unix Installation1245170 +Node: Quick Installation1245974 +Node: Compiling with MPFR1248394 +Node: Shell Startup Files1249084 +Node: Additional Configuration Options1250173 +Node: Configuration Philosophy1252488 +Node: Compiling from Git1254884 +Node: Building the Documentation1255439 +Node: Non-Unix Installation1256823 +Node: PC Installation1257283 +Node: PC Binary Installation1258121 +Node: PC Compiling1258556 +Node: PC Using1259673 +Node: Cygwin1263226 +Node: MSYS1264450 +Node: VMS Installation1265052 +Node: VMS Compilation1265771 +Ref: VMS Compilation-Footnote-11267000 +Node: VMS Dynamic Extensions1267058 +Node: VMS Installation Details1268743 +Node: VMS Running1271005 +Node: VMS GNV1275284 +Node: Bugs1275998 +Node: Bug definition1276910 +Node: Bug address1279846 +Node: Usenet1283234 +Node: Performance bugs1284423 +Node: Asking for help1287344 +Node: Maintainers1289311 +Node: Other Versions1290505 +Node: Installation summary1298357 +Node: Notes1299721 +Node: Compatibility Mode1300515 +Node: Additions1301297 +Node: Accessing The Source1302222 +Node: Adding Code1303659 +Node: New Ports1309851 +Node: Derived Files1314226 +Ref: Derived Files-Footnote-11319886 +Ref: Derived Files-Footnote-21319921 +Ref: Derived Files-Footnote-31320519 +Node: Future Extensions1320633 +Node: Implementation Limitations1321291 +Node: Extension Design1322501 +Node: Old Extension Problems1323645 +Ref: Old Extension Problems-Footnote-11325163 +Node: Extension New Mechanism Goals1325220 +Ref: Extension New Mechanism Goals-Footnote-11328584 +Node: Extension Other Design Decisions1328773 +Node: Extension Future Growth1330886 +Node: Notes summary1331492 +Node: Basic Concepts1332650 +Node: Basic High Level1333331 +Ref: figure-general-flow1333613 +Ref: figure-process-flow1334299 +Ref: Basic High Level-Footnote-11337601 +Node: Basic Data Typing1337786 +Node: Glossary1341114 +Node: Copying1373001 +Node: GNU Free Documentation License1410544 +Node: Index1435664 End Tag Table |