21.07.2015 Views

GAWK: Effective AWK Programming

GAWK: Effective AWK Programming

GAWK: Effective AWK Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Index 343floating-point, numbers, <strong>AWK</strong>NUM internal type . . 288FNR variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36, 114FNR variable, changing . . . . . . . . . . . . . . . . . . . . . . . . 116for statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104for statement, in arrays . . . . . . . . . . . . . . . . . . . . . . 122force_number internal function . . . . . . . . . . . . . . . 288force_string internal function . . . . . . . . . . . . . . . 288format specifiers, mixing regular with positionalspecifiers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165format specifiers, printf statement . . . . . . . . . . . . 61format specifiers, strftime function (gawk) . . . 147format strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61formats, numeric output . . . . . . . . . . . . . . . . . . . . . . . 60formatting output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61forward slash (/) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24forward slash (/), / operator . . . . . . . . . . . . . . . . . . . 95forward slash (/), /= operator . . . . . . . . . . . . . . 85, 95forward slash (/), /= operator, vs. /=.../ regexpconstant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86forward slash (/), patterns and . . . . . . . . . . . . . . . . 97Free Documentation License (FDL) . . . . . . . . . . . 327Free Software Foundation (FSF) . . . . . . . . . . . 7, 310free_temp internal macro. . . . . . . . . . . . . . . . . . . . . 289FreeBSD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314FS variable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43, 111FS variable, --field-separator option and . . . 177FS variable, as null string. . . . . . . . . . . . . . . . . . . . . . 45FS variable, as TAB character. . . . . . . . . . . . . . . . . 180FS variable, changing value of . . . . . . . . . . . . . 43, 185FS variable, running awk programs and . . . . . . . . 216FS variable, setting from command line . . . . . . . . 45FS, containing ‘^’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44FSF (Free Software Foundation) . . . . . . . . . . . 7, 310function calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93functions, arrays as parameters to . . . . . . . . . . . . 156functions, built-in . . . . . . . . . . . . . . . . . . . . . . . . . 93, 130functions, built-in, adding to gawk . . . . . . . . . . . . 287functions, built-in, evaluation order . . . . . . . . . . . 130functions, defining . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153functions, library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186functions, library, assertions . . . . . . . . . . . . . . . . . . 190functions, library, associative arrays and . . . . . . 187functions, library, C library . . . . . . . . . . . . . . . . . . . 201functions, library, character values as numbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193functions, library, Cliff random numbers . . . . . . 193functions, library, command-line options . . . . . . 201functions, library, example program for using . . 249functions, library, group database, reading . . . . 210functions, library, managing data files . . . . . . . . . 197functions, library, managing time . . . . . . . . . . . . . 195functions, library, merging arrays into strings . . 195functions, library, nextfile statement . . . . . . . . 188functions, library, rounding numbers . . . . . . . . . . 192functions, library, user database, reading . . . . . . 206functions, names of . . . . . . . . . . . . . . . . . . . . . . 119, 153functions, recursive . . . . . . . . . . . . . . . . . . . . . . . . . . . 154functions, return values, setting . . . . . . . . . . . . . . . 290functions, string-translation. . . . . . . . . . . . . . . . . . . 152functions, undefined . . . . . . . . . . . . . . . . . . . . . . . . . . 157functions, user-defined . . . . . . . . . . . . . . . . . . . . . . . . 153functions, user-defined, calling . . . . . . . . . . . . . . . . 156functions, user-defined, counts . . . . . . . . . . . . . . . . 175functions, user-defined, library of . . . . . . . . . . . . . 186functions, user-defined, next/nextfile statementsand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108, 109GG-d . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Garfinkle, Scott . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264gawk, awk and . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3, 5gawk, bitwise operations in. . . . . . . . . . . . . . . . . . . . 151gawk, break statement in . . . . . . . . . . . . . . . . . . . . . 107gawk, built-in variables and . . . . . . . . . . . . . . . . . . . 110gawk, character classes and . . . . . . . . . . . . . . . . . . . . 31gawk, coding style in. . . . . . . . . . . . . . . . . . . . . . . . . . 284gawk, command-line options . . . . . . . . . . . . . . . . . . . 32gawk, comparison operators and. . . . . . . . . . . . . . . . 90gawk, configuring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269gawk, configuring, options. . . . . . . . . . . . . . . . . . . . . 269gawk, continue statement in . . . . . . . . . . . . . . . . . . 108gawk, debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185gawk, distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265gawk, escape sequences. . . . . . . . . . . . . . . . . . . . . . . . . 26gawk, extensions, disabling . . . . . . . . . . . . . . . . . . . . 180gawk, features, adding . . . . . . . . . . . . . . . . . . . . . . . . 284gawk, features, advanced . . . . . . . . . . . . . . . . . . . . . . 169gawk, fflush function in. . . . . . . . . . . . . . . . . . . . . . 144gawk, field separators and. . . . . . . . . . . . . . . . . . . . . 111gawk, FIELDWIDTHS variable in . . . . . . . . . . . . . . . . 111gawk, file names in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69gawk, format-control characters. . . . . . . . . . . . . 62, 63gawk, function arguments and. . . . . . . . . . . . . . . . . 130gawk, functions, adding . . . . . . . . . . . . . . . . . . . . . . . 287gawk, hexadecimal numbers and. . . . . . . . . . . . . . . . 76gawk, IGNORECASE variable in . . . . . . . . . . . . . . . . . 112gawk, implementation issues . . . . . . . . . . . . . . . . . . 284gawk, implementation issues, debugging . . . . . . . 284gawk, implementation issues, downwardcompatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284gawk, implementation issues, limits. . . . . . . . . . . . . 56gawk, implementation issues, pipes . . . . . . . . . . . . . 68gawk, installing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265gawk, internals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287gawk, internationalization and, Seeinternationalization . . . . . . . . . . . . . . . . . . . . . . 160gawk, interpreter, adding code to . . . . . . . . . 296, 299gawk, interval expressions and. . . . . . . . . . . . . . . . . . 29gawk, line continuation in . . . . . . . . . . . . . . . . . . . . . . 92gawk, LINT variable in . . . . . . . . . . . . . . . . . . . . . . . . 112gawk, list of contributors to . . . . . . . . . . . . . . . . . . . 263gawk, MS-DOS version of . . . . . . . . . . . . . . . . . . . . . 273gawk, newlines in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21gawk, next file statement in . . . . . . . . . . . . . . . . . 109gawk, nextfile statement in . . . . . . . . . . . . . 109, 188

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!