21.07.2015 Views

GAWK: Effective AWK Programming

GAWK: Effective AWK Programming

GAWK: Effective AWK Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Index 341differences in awk and gawk, ARGIND variable . . 113differences in awk and gawk, array elements,deleting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123differences in awk and gawk, <strong>AWK</strong>PATH environmentvariable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183differences in awk and gawk, BEGIN/END patterns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100differences in awk and gawk, BINMODE variable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111, 274differences in awk and gawk, close function . . . . 73differences in awk and gawk, ERRNO variable. . . . 114differences in awk and gawk, error messages. . . . . 69differences in awk and gawk, FIELDWIDTHS variable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111differences in awk and gawk, function arguments(gawk) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130differences in awk and gawk, getline command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52differences in awk and gawk, IGNORECASE variable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111differences in awk and gawk, implementationlimitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56, 68differences in awk and gawk, input/outputoperators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56, 68differences in awk and gawk, line continuations . . 92differences in awk and gawk, LINT variable . . . . . 112differences in awk and gawk, match function . . . 135differences in awk and gawk, next/nextfilestatements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109differences in awk and gawk, print/printfstatements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63differences in awk and gawk, PROCINFO array . . . 115differences in awk and gawk, record separators . . 38differences in awk and gawk, regexp constants. . . 77differences in awk and gawk, regular expressions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32differences in awk and gawk, RS/RT variables . . . . 38differences in awk and gawk, RT variable . . . . . . . 116differences in awk and gawk, single-character fields. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45differences in awk and gawk, split function . . . 136differences in awk and gawk, strings . . . . . . . . . . . . 75differences in awk and gawk, strings, storing . . . . 39differences in awk and gawk, strtonum function(gawk) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136, 137differences in awk and gawk, TEXTDOMAIN variable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113differences in awk and gawk, trunc-mod operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82directories, changing . . . . . . . . . . . . . . . . . . . . . . . . . . 292directories, searching. . . . . . . . . . . . . . . . . . . . . 183, 255division . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81do-while statement . . . . . . . . . . . . . . . . . . . . . . . 24, 104documentation, of awk programs . . . . . . . . . . . . . . 186documentation, online . . . . . . . . . . . . . . . . . . . . . . . . . . 7documents, searching . . . . . . . . . . . . . . . . . . . . . . . . . 235dollar sign ($) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27dollar sign ($), $ field operator . . . . . . . . . . . . . 39, 94dollar sign ($), incrementing fields and arrays . . 86double quote (") . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 15double quote ("), regexp constants . . . . . . . . . . . . . 34double-precision floating-point . . . . . . . . . . . . . . . . 301Drepper, Ulrich . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9DuBois, John . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9dupnode internal function . . . . . . . . . . . . . . . . . . . . . 289dupword.awk program . . . . . . . . . . . . . . . . . . . . . . . . 236EEBCDIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194egrep utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29, 220egrep.awk program. . . . . . . . . . . . . . . . . . . . . . . . . . . 221elements in arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120elements in arrays, assigning . . . . . . . . . . . . . . . . . . 121elements in arrays, deleting . . . . . . . . . . . . . . . . . . . 123elements in arrays, order of . . . . . . . . . . . . . . . . . . . 123elements in arrays, scanning . . . . . . . . . . . . . . . . . . 122email address for bug reports, bug-gawk@gnu.org. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280EMISTERED. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172empty pattern . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100empty strings, See null strings . . . . . . . . . . . . . . . . . 44END pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99END pattern, assert user-defined function and. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192END pattern, backslash continuation and . . . . . . 224END pattern, Boolean patterns and . . . . . . . . . . . . . 97END pattern, exit statement and. . . . . . . . . . . . . . 109END pattern, next/nextfile statements and . . 100,108END pattern, operators and. . . . . . . . . . . . . . . . . . . . . 99END pattern, pgawk program . . . . . . . . . . . . . . . . . . 174END pattern, print statement and. . . . . . . . . . . . . 100endfile user-defined function. . . . . . . . . . . . . . . . . 198endgrent function (C library) . . . . . . . . . . . . . . . . 214endgrent user-defined function . . . . . . . . . . . . . . . 214endpwent function (C library) . . . . . . . . . . . . . . . . 209endpwent user-defined function . . . . . . . . . . . . . . . 209ENVIRON variable . . . . . . . . . . . . . . . . . . . . . . . . . 114, 290environment variables . . . . . . . . . . . . . . . . . . . . . . . . 114epoch, definition of . . . . . . . . . . . . . . . . . . . . . . . . . . . 309equals sign (=), = operator . . . . . . . . . . . . . . . . . . . . . 83equals sign (=), == operator . . . . . . . . . . . . . . . . 89, 95EREs (Extended Regular Expressions) . . . . . . . . . 29ERRNO variable . . . . . . . . . . . . . . . . . . . . . . . 52, 114, 290error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69error handling, ERRNO variable and . . . . . . . . . . . . 114error output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69escape processing, gsub/gensub/sub functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140escape sequences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25escape sequences, unrecognized . . . . . . . . . . . . . . . 180evaluation order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87evaluation order, concatenation . . . . . . . . . . . . . . . . 83evaluation order, functions. . . . . . . . . . . . . . . . . . . . 130examining fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

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

Saved successfully!

Ooh no, something went wrong!