diff options
Diffstat (limited to 'doc/gawk.info')
-rw-r--r-- | doc/gawk.info | 1450 |
1 files changed, 790 insertions, 660 deletions
diff --git a/doc/gawk.info b/doc/gawk.info index 0f00b0c3..0be3deca 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 @@ -21036,6 +21061,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. @@ -21045,7 +21071,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 =================================== @@ -21088,9 +21114,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 @@ -21109,7 +21179,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 @@ -21348,7 +21418,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 @@ -21493,7 +21563,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 @@ -21688,7 +21758,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': @@ -21768,7 +21838,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 @@ -22030,7 +22100,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 @@ -22066,7 +22136,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 @@ -24425,18 +24495,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. @@ -24496,11 +24558,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 @@ -24593,6 +24650,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 @@ -24657,7 +24715,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 .......................... @@ -24705,6 +24763,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 @@ -25664,7 +25780,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'. @@ -25677,6 +25794,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 @@ -25692,6 +25810,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. @@ -26002,6 +26121,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 @@ -26728,16 +26852,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 @@ -33630,8 +33755,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 @@ -35789,6 +35914,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) @@ -36145,7 +36271,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) @@ -37386,6 +37512,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) @@ -38613,609 +38740,612 @@ 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 -Node: Functions Summary651394 -Node: Library Functions654099 -Ref: Library Functions-Footnote-1657706 -Ref: Library Functions-Footnote-2657849 -Node: Library Names658020 -Ref: Library Names-Footnote-1661687 -Ref: Library Names-Footnote-2661910 -Node: General Functions661996 -Node: Strtonum Function663178 -Node: Assert Function666200 -Node: Round Function669526 -Node: Cliff Random Function671066 -Node: Ordinal Functions672082 -Ref: Ordinal Functions-Footnote-1675145 -Ref: Ordinal Functions-Footnote-2675397 -Node: Join Function675607 -Ref: Join Function-Footnote-1677377 -Node: Getlocaltime Function677577 -Node: Readfile Function681319 -Node: Shell Quoting683296 -Node: Isnumeric Function684724 -Node: Data File Management686112 -Node: Filetrans Function686744 -Node: Rewind Function690840 -Node: File Checking692749 -Ref: File Checking-Footnote-1694083 -Node: Empty Files694284 -Node: Ignoring Assigns696263 -Node: Getopt Function697813 -Ref: Getopt Function-Footnote-1713110 -Node: Passwd Functions713310 -Ref: Passwd Functions-Footnote-1722149 -Node: Group Functions722237 -Ref: Group Functions-Footnote-1730135 -Node: Walking Arrays730342 -Node: Library Functions Summary733350 -Node: Library Exercises734756 -Node: Sample Programs735221 -Node: Running Examples735991 -Node: Clones736719 -Node: Cut Program737943 -Node: Egrep Program748083 -Node: Id Program757084 -Node: Split Program767019 -Ref: Split Program-Footnote-1776912 -Node: Tee Program777085 -Node: Uniq Program779875 -Node: Wc Program787463 -Node: Bytes vs. Characters787850 -Node: Using extensions789398 -Node: wc program790152 -Node: Miscellaneous Programs795017 -Node: Dupword Program796230 -Node: Alarm Program798260 -Node: Translate Program803115 -Ref: Translate Program-Footnote-1807680 -Node: Labels Program807950 -Ref: Labels Program-Footnote-1811301 -Node: Word Sorting811385 -Node: History Sorting815457 -Node: Extract Program817682 -Node: Simple Sed825695 -Node: Igawk Program828769 -Ref: Igawk Program-Footnote-1843100 -Ref: Igawk Program-Footnote-2843302 -Ref: Igawk Program-Footnote-3843424 -Node: Anagram Program843539 -Node: Signature Program846601 -Node: Programs Summary847848 -Node: Programs Exercises849062 -Ref: Programs Exercises-Footnote-1853192 -Node: Advanced Features853278 -Node: Nondecimal Data855345 -Node: Array Sorting856936 -Node: Controlling Array Traversal857636 -Ref: Controlling Array Traversal-Footnote-1866004 -Node: Array Sorting Functions866122 -Ref: Array Sorting Functions-Footnote-1871496 -Node: Two-way I/O871692 -Ref: Two-way I/O-Footnote-1879418 -Ref: Two-way I/O-Footnote-2879605 -Node: TCP/IP Networking879687 -Node: Profiling882763 -Node: Extension Philosophy892072 -Node: Advanced Features Summary893551 -Node: Internationalization895566 -Node: I18N and L10N897240 -Node: Explaining gettext897927 -Ref: Explaining gettext-Footnote-1903819 -Ref: Explaining gettext-Footnote-2904004 -Node: Programmer i18n904169 -Ref: Programmer i18n-Footnote-1909118 -Node: Translator i18n909167 -Node: String Extraction909961 -Ref: String Extraction-Footnote-1911093 -Node: Printf Ordering911179 -Ref: Printf Ordering-Footnote-1913965 -Node: I18N Portability914029 -Ref: I18N Portability-Footnote-1916485 -Node: I18N Example916548 -Ref: I18N Example-Footnote-1919823 -Ref: I18N Example-Footnote-2919896 -Node: Gawk I18N920005 -Node: I18N Summary920627 -Node: Debugger921968 -Node: Debugging922968 -Node: Debugging Concepts923409 -Node: Debugging Terms925218 -Node: Awk Debugging927793 -Ref: Awk Debugging-Footnote-1928738 -Node: Sample Debugging Session928870 -Node: Debugger Invocation929404 -Node: Finding The Bug930790 -Node: List of Debugger Commands937264 -Node: Breakpoint Control938597 -Node: Debugger Execution Control942291 -Node: Viewing And Changing Data945653 -Node: Execution Stack949194 -Node: Debugger Info950831 -Node: Miscellaneous Debugger Commands954902 -Node: Readline Support959964 -Node: Limitations960860 -Node: Debugging Summary963414 -Node: Namespaces964693 -Node: Global Namespace965804 -Node: Qualified Names967202 -Node: Default Namespace968201 -Node: Changing The Namespace968942 -Node: Naming Rules970556 -Node: Internal Name Management972404 -Node: Namespace Example973446 -Node: Namespace And Features976008 -Node: Namespace Summary977443 -Node: Arbitrary Precision Arithmetic978920 -Node: Computer Arithmetic980407 -Ref: table-numeric-ranges984173 -Ref: table-floating-point-ranges984667 -Ref: Computer Arithmetic-Footnote-1985326 -Node: Math Definitions985383 -Ref: table-ieee-formats988699 -Ref: Math Definitions-Footnote-1989303 -Node: MPFR features989408 -Node: FP Math Caution991126 -Ref: FP Math Caution-Footnote-1992198 -Node: Inexactness of computations992567 -Node: Inexact representation993527 -Node: Comparing FP Values994887 -Node: Errors accumulate996128 -Node: Getting Accuracy997561 -Node: Try To Round1000271 -Node: Setting precision1001170 -Ref: table-predefined-precision-strings1001867 -Node: Setting the rounding mode1003698 -Ref: table-gawk-rounding-modes1004072 -Ref: Setting the rounding mode-Footnote-11008004 -Node: Arbitrary Precision Integers1008183 -Ref: Arbitrary Precision Integers-Footnote-11011358 -Node: Checking for MPFR1011507 -Node: POSIX Floating Point Problems1012981 -Ref: POSIX Floating Point Problems-Footnote-11017634 -Node: Floating point summary1017672 -Node: Dynamic Extensions1019862 -Node: Extension Intro1021415 -Node: Plugin License1022681 -Node: Extension Mechanism Outline1023478 -Ref: figure-load-extension1023917 -Ref: figure-register-new-function1025483 -Ref: figure-call-new-function1026576 -Node: Extension API Description1028639 -Node: Extension API Functions Introduction1030352 -Ref: table-api-std-headers1032188 -Node: General Data Types1036438 -Ref: General Data Types-Footnote-11045068 -Node: Memory Allocation Functions1045367 -Ref: Memory Allocation Functions-Footnote-11049868 -Node: Constructor Functions1049967 -Node: API Ownership of MPFR and GMP Values1053433 -Node: Registration Functions1054746 -Node: Extension Functions1055446 -Node: Exit Callback Functions1060768 -Node: Extension Version String1062018 -Node: Input Parsers1062681 -Node: Output Wrappers1075402 -Node: Two-way processors1079914 -Node: Printing Messages1082179 -Ref: Printing Messages-Footnote-11083350 -Node: Updating ERRNO1083503 -Node: Requesting Values1084242 -Ref: table-value-types-returned1084979 -Node: Accessing Parameters1085916 -Node: Symbol Table Access1087153 -Node: Symbol table by name1087665 -Ref: Symbol table by name-Footnote-11090690 -Node: Symbol table by cookie1090818 -Ref: Symbol table by cookie-Footnote-11095003 -Node: Cached values1095067 -Ref: Cached values-Footnote-11098603 -Node: Array Manipulation1098756 -Ref: Array Manipulation-Footnote-11099847 -Node: Array Data Types1099884 -Ref: Array Data Types-Footnote-11102542 -Node: Array Functions1102634 -Node: Flattening Arrays1107132 -Node: Creating Arrays1114108 -Node: Redirection API1118875 -Node: Extension API Variables1121708 -Node: Extension Versioning1122419 -Ref: gawk-api-version1122848 -Node: Extension GMP/MPFR Versioning1124580 -Node: Extension API Informational Variables1126208 -Node: Extension API Boilerplate1127281 -Node: Changes from API V11131255 -Node: Finding Extensions1132827 -Node: Extension Example1133386 -Node: Internal File Description1134184 -Node: Internal File Ops1138264 -Ref: Internal File Ops-Footnote-11149614 -Node: Using Internal File Ops1149754 -Ref: Using Internal File Ops-Footnote-11152137 -Node: Extension Samples1152411 -Node: Extension Sample File Functions1153940 -Node: Extension Sample Fnmatch1161589 -Node: Extension Sample Fork1163076 -Node: Extension Sample Inplace1164294 -Node: Extension Sample Ord1167920 -Node: Extension Sample Readdir1168756 -Ref: table-readdir-file-types1169645 -Node: Extension Sample Revout1170713 -Node: Extension Sample Rev2way1171302 -Node: Extension Sample Read write array1172042 -Node: Extension Sample Readfile1173984 -Node: Extension Sample Time1175079 -Node: Extension Sample API Tests1176831 -Node: gawkextlib1177323 -Node: Extension summary1180241 -Node: Extension Exercises1183943 -Node: Language History1185185 -Node: V7/SVR3.11186841 -Node: SVR41188993 -Node: POSIX1190427 -Node: BTL1191808 -Node: POSIX/GNU1192537 -Node: Feature History1198315 -Node: Common Extensions1215490 -Node: Ranges and Locales1216773 -Ref: Ranges and Locales-Footnote-11221389 -Ref: Ranges and Locales-Footnote-21221416 -Ref: Ranges and Locales-Footnote-31221651 -Node: Contributors1221874 -Node: History summary1227871 -Node: Installation1229251 -Node: Gawk Distribution1230195 -Node: Getting1230679 -Node: Extracting1231642 -Node: Distribution contents1233280 -Node: Unix Installation1240341 -Node: Quick Installation1241145 -Node: Compiling with MPFR1243565 -Node: Shell Startup Files1244255 -Node: Additional Configuration Options1245344 -Node: Configuration Philosophy1247659 -Node: Compiling from Git1250055 -Node: Building the Documentation1250610 -Node: Non-Unix Installation1251994 -Node: PC Installation1252454 -Node: PC Binary Installation1253292 -Node: PC Compiling1254165 -Node: PC Using1255282 -Node: Cygwin1258835 -Node: MSYS1260059 -Node: VMS Installation1260661 -Node: VMS Compilation1261380 -Ref: VMS Compilation-Footnote-11262609 -Node: VMS Dynamic Extensions1262667 -Node: VMS Installation Details1264352 -Node: VMS Running1266614 -Node: VMS GNV1270893 -Node: Bugs1271607 -Node: Bug definition1272519 -Node: Bug address1275455 -Node: Usenet1278843 -Node: Performance bugs1280032 -Node: Asking for help1282953 -Node: Maintainers1284920 -Node: Other Versions1286114 -Node: Installation summary1294278 -Node: Notes1295642 -Node: Compatibility Mode1296436 -Node: Additions1297218 -Node: Accessing The Source1298143 -Node: Adding Code1299580 -Node: New Ports1305772 -Node: Derived Files1310147 -Ref: Derived Files-Footnote-11315807 -Ref: Derived Files-Footnote-21315842 -Ref: Derived Files-Footnote-31316440 -Node: Future Extensions1316554 -Node: Implementation Limitations1317212 -Node: Extension Design1318422 -Node: Old Extension Problems1319566 -Ref: Old Extension Problems-Footnote-11321084 -Node: Extension New Mechanism Goals1321141 -Ref: Extension New Mechanism Goals-Footnote-11324505 -Node: Extension Other Design Decisions1324694 -Node: Extension Future Growth1326807 -Node: Notes summary1327413 -Node: Basic Concepts1328571 -Node: Basic High Level1329252 -Ref: figure-general-flow1329534 -Ref: figure-process-flow1330220 -Ref: Basic High Level-Footnote-11333522 -Node: Basic Data Typing1333707 -Node: Glossary1337035 -Node: Copying1368920 -Node: GNU Free Documentation License1406463 -Node: Index1431583 +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 +Node: Functions Summary652513 +Node: Library Functions655218 +Ref: Library Functions-Footnote-1658825 +Ref: Library Functions-Footnote-2658968 +Node: Library Names659139 +Ref: Library Names-Footnote-1662806 +Ref: Library Names-Footnote-2663029 +Node: General Functions663115 +Node: Strtonum Function664297 +Node: Assert Function667319 +Node: Round Function670645 +Node: Cliff Random Function672185 +Node: Ordinal Functions673201 +Ref: Ordinal Functions-Footnote-1676264 +Ref: Ordinal Functions-Footnote-2676516 +Node: Join Function676726 +Ref: Join Function-Footnote-1678496 +Node: Getlocaltime Function678696 +Node: Readfile Function682438 +Node: Shell Quoting684415 +Node: Isnumeric Function685843 +Node: Data File Management687231 +Node: Filetrans Function687863 +Node: Rewind Function691959 +Node: File Checking693868 +Ref: File Checking-Footnote-1695202 +Node: Empty Files695403 +Node: Ignoring Assigns697382 +Node: Getopt Function698932 +Ref: Getopt Function-Footnote-1714229 +Node: Passwd Functions714429 +Ref: Passwd Functions-Footnote-1723268 +Node: Group Functions723356 +Ref: Group Functions-Footnote-1731254 +Node: Walking Arrays731461 +Node: Library Functions Summary734469 +Node: Library Exercises735875 +Node: Sample Programs736340 +Node: Running Examples737110 +Node: Clones737838 +Node: Cut Program739062 +Node: Egrep Program749202 +Node: Id Program758203 +Node: Split Program768138 +Ref: Split Program-Footnote-1778031 +Node: Tee Program778204 +Node: Uniq Program780994 +Node: Wc Program788582 +Node: Bytes vs. Characters788969 +Node: Using extensions790517 +Node: wc program791271 +Node: Miscellaneous Programs796136 +Node: Dupword Program797349 +Node: Alarm Program799379 +Node: Translate Program804234 +Ref: Translate Program-Footnote-1808799 +Node: Labels Program809069 +Ref: Labels Program-Footnote-1812420 +Node: Word Sorting812504 +Node: History Sorting816576 +Node: Extract Program818801 +Node: Simple Sed826814 +Node: Igawk Program829888 +Ref: Igawk Program-Footnote-1844219 +Ref: Igawk Program-Footnote-2844421 +Ref: Igawk Program-Footnote-3844543 +Node: Anagram Program844658 +Node: Signature Program847720 +Node: Programs Summary848967 +Node: Programs Exercises850181 +Ref: Programs Exercises-Footnote-1854311 +Node: Advanced Features854397 +Node: Nondecimal Data856528 +Node: Boolean Typed Values858126 +Node: Array Sorting860007 +Node: Controlling Array Traversal860712 +Ref: Controlling Array Traversal-Footnote-1869080 +Node: Array Sorting Functions869198 +Ref: Array Sorting Functions-Footnote-1874572 +Node: Two-way I/O874768 +Ref: Two-way I/O-Footnote-1882494 +Ref: Two-way I/O-Footnote-2882681 +Node: TCP/IP Networking882763 +Node: Profiling885839 +Node: Extension Philosophy895148 +Node: Advanced Features Summary896627 +Node: Internationalization898642 +Node: I18N and L10N900316 +Node: Explaining gettext901003 +Ref: Explaining gettext-Footnote-1906895 +Ref: Explaining gettext-Footnote-2907080 +Node: Programmer i18n907245 +Ref: Programmer i18n-Footnote-1912194 +Node: Translator i18n912243 +Node: String Extraction913037 +Ref: String Extraction-Footnote-1914169 +Node: Printf Ordering914255 +Ref: Printf Ordering-Footnote-1917041 +Node: I18N Portability917105 +Ref: I18N Portability-Footnote-1919561 +Node: I18N Example919624 +Ref: I18N Example-Footnote-1922899 +Ref: I18N Example-Footnote-2922972 +Node: Gawk I18N923081 +Node: I18N Summary923703 +Node: Debugger925044 +Node: Debugging926044 +Node: Debugging Concepts926485 +Node: Debugging Terms928294 +Node: Awk Debugging930869 +Ref: Awk Debugging-Footnote-1931814 +Node: Sample Debugging Session931946 +Node: Debugger Invocation932480 +Node: Finding The Bug933866 +Node: List of Debugger Commands940340 +Node: Breakpoint Control941673 +Node: Debugger Execution Control945367 +Node: Viewing And Changing Data948729 +Node: Execution Stack952270 +Node: Debugger Info953907 +Node: Miscellaneous Debugger Commands957978 +Node: Readline Support963040 +Node: Limitations963936 +Node: Debugging Summary966490 +Node: Namespaces967769 +Node: Global Namespace968880 +Node: Qualified Names970278 +Node: Default Namespace971277 +Node: Changing The Namespace972018 +Node: Naming Rules973632 +Node: Internal Name Management975480 +Node: Namespace Example976522 +Node: Namespace And Features979084 +Node: Namespace Summary980519 +Node: Arbitrary Precision Arithmetic981996 +Node: Computer Arithmetic983483 +Ref: table-numeric-ranges987249 +Ref: table-floating-point-ranges987743 +Ref: Computer Arithmetic-Footnote-1988402 +Node: Math Definitions988459 +Ref: table-ieee-formats991435 +Node: MPFR features992003 +Node: FP Math Caution993721 +Ref: FP Math Caution-Footnote-1994793 +Node: Inexactness of computations995162 +Node: Inexact representation996193 +Node: Comparing FP Values997553 +Node: Errors accumulate998794 +Node: Strange values1000250 +Ref: Strange values-Footnote-11002838 +Node: Getting Accuracy1002943 +Node: Try To Round1005653 +Node: Setting precision1006552 +Ref: table-predefined-precision-strings1007249 +Node: Setting the rounding mode1009080 +Ref: table-gawk-rounding-modes1009454 +Ref: Setting the rounding mode-Footnote-11013386 +Node: Arbitrary Precision Integers1013565 +Ref: Arbitrary Precision Integers-Footnote-11016740 +Node: Checking for MPFR1016889 +Node: POSIX Floating Point Problems1018363 +Ref: POSIX Floating Point Problems-Footnote-11023016 +Node: Floating point summary1023054 +Node: Dynamic Extensions1025244 +Node: Extension Intro1026797 +Node: Plugin License1028063 +Node: Extension Mechanism Outline1028860 +Ref: figure-load-extension1029299 +Ref: figure-register-new-function1030865 +Ref: figure-call-new-function1031958 +Node: Extension API Description1034021 +Node: Extension API Functions Introduction1035734 +Ref: table-api-std-headers1037570 +Node: General Data Types1041820 +Ref: General Data Types-Footnote-11050526 +Node: Memory Allocation Functions1050825 +Ref: Memory Allocation Functions-Footnote-11055326 +Node: Constructor Functions1055425 +Node: API Ownership of MPFR and GMP Values1059078 +Node: Registration Functions1060391 +Node: Extension Functions1061091 +Node: Exit Callback Functions1066413 +Node: Extension Version String1067663 +Node: Input Parsers1068326 +Node: Output Wrappers1081047 +Node: Two-way processors1085559 +Node: Printing Messages1087824 +Ref: Printing Messages-Footnote-11088995 +Node: Updating ERRNO1089148 +Node: Requesting Values1089887 +Ref: table-value-types-returned1090624 +Node: Accessing Parameters1091733 +Node: Symbol Table Access1092970 +Node: Symbol table by name1093482 +Ref: Symbol table by name-Footnote-11096507 +Node: Symbol table by cookie1096635 +Ref: Symbol table by cookie-Footnote-11100820 +Node: Cached values1100884 +Ref: Cached values-Footnote-11104420 +Node: Array Manipulation1104573 +Ref: Array Manipulation-Footnote-11105664 +Node: Array Data Types1105701 +Ref: Array Data Types-Footnote-11108359 +Node: Array Functions1108451 +Node: Flattening Arrays1112949 +Node: Creating Arrays1119925 +Node: Redirection API1124692 +Node: Extension API Variables1127525 +Node: Extension Versioning1128236 +Ref: gawk-api-version1128665 +Node: Extension GMP/MPFR Versioning1130397 +Node: Extension API Informational Variables1132025 +Node: Extension API Boilerplate1133098 +Node: Changes from API V11137072 +Node: Finding Extensions1138644 +Node: Extension Example1139203 +Node: Internal File Description1140001 +Node: Internal File Ops1144081 +Ref: Internal File Ops-Footnote-11155431 +Node: Using Internal File Ops1155571 +Ref: Using Internal File Ops-Footnote-11157954 +Node: Extension Samples1158228 +Node: Extension Sample File Functions1159757 +Node: Extension Sample Fnmatch1167406 +Node: Extension Sample Fork1168893 +Node: Extension Sample Inplace1170111 +Node: Extension Sample Ord1173737 +Node: Extension Sample Readdir1174573 +Ref: table-readdir-file-types1175462 +Node: Extension Sample Revout1176530 +Node: Extension Sample Rev2way1177119 +Node: Extension Sample Read write array1177859 +Node: Extension Sample Readfile1179801 +Node: Extension Sample Time1180896 +Node: Extension Sample API Tests1182648 +Node: gawkextlib1183140 +Node: Extension summary1186058 +Node: Extension Exercises1189760 +Node: Language History1191002 +Node: V7/SVR3.11192658 +Node: SVR41194810 +Node: POSIX1196244 +Node: BTL1197625 +Node: POSIX/GNU1198354 +Node: Feature History1204132 +Node: Common Extensions1221307 +Node: Ranges and Locales1222590 +Ref: Ranges and Locales-Footnote-11227206 +Ref: Ranges and Locales-Footnote-21227233 +Ref: Ranges and Locales-Footnote-31227468 +Node: Contributors1227691 +Node: History summary1233688 +Node: Installation1235068 +Node: Gawk Distribution1236012 +Node: Getting1236496 +Node: Extracting1237459 +Node: Distribution contents1239097 +Node: Unix Installation1246158 +Node: Quick Installation1246962 +Node: Compiling with MPFR1249382 +Node: Shell Startup Files1250072 +Node: Additional Configuration Options1251161 +Node: Configuration Philosophy1253476 +Node: Compiling from Git1255872 +Node: Building the Documentation1256427 +Node: Non-Unix Installation1257811 +Node: PC Installation1258271 +Node: PC Binary Installation1259109 +Node: PC Compiling1259982 +Node: PC Using1261099 +Node: Cygwin1264652 +Node: MSYS1265876 +Node: VMS Installation1266478 +Node: VMS Compilation1267197 +Ref: VMS Compilation-Footnote-11268426 +Node: VMS Dynamic Extensions1268484 +Node: VMS Installation Details1270169 +Node: VMS Running1272431 +Node: VMS GNV1276710 +Node: Bugs1277424 +Node: Bug definition1278336 +Node: Bug address1281272 +Node: Usenet1284660 +Node: Performance bugs1285849 +Node: Asking for help1288770 +Node: Maintainers1290737 +Node: Other Versions1291931 +Node: Installation summary1300095 +Node: Notes1301459 +Node: Compatibility Mode1302253 +Node: Additions1303035 +Node: Accessing The Source1303960 +Node: Adding Code1305397 +Node: New Ports1311589 +Node: Derived Files1315964 +Ref: Derived Files-Footnote-11321624 +Ref: Derived Files-Footnote-21321659 +Ref: Derived Files-Footnote-31322257 +Node: Future Extensions1322371 +Node: Implementation Limitations1323029 +Node: Extension Design1324239 +Node: Old Extension Problems1325383 +Ref: Old Extension Problems-Footnote-11326901 +Node: Extension New Mechanism Goals1326958 +Ref: Extension New Mechanism Goals-Footnote-11330322 +Node: Extension Other Design Decisions1330511 +Node: Extension Future Growth1332624 +Node: Notes summary1333230 +Node: Basic Concepts1334388 +Node: Basic High Level1335069 +Ref: figure-general-flow1335351 +Ref: figure-process-flow1336037 +Ref: Basic High Level-Footnote-11339339 +Node: Basic Data Typing1339524 +Node: Glossary1342852 +Node: Copying1374739 +Node: GNU Free Documentation License1412282 +Node: Index1437402 End Tag Table |