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 337\ (backslash), \x escape sequence . . . . . . . . . . . . . . 25\ (backslash), \y operator (gawk) . . . . . . . . . . . . . . 31\ (backslash), as field separators . . . . . . . . . . . . . . . 46\ (backslash), continuing lines and . . . . . . . . 21, 224\ (backslash), continuing lines and, comments and. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22\ (backslash), continuing lines and, in csh . . 20, 21\ (backslash), gsub/gensub/sub functions and. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140\ (backslash), in character lists . . . . . . . . . . . . . . . . 29\ (backslash), in escape sequences . . . . . . . . . . 25, 26\ (backslash), in escape sequences, POSIX and. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26\ (backslash), regexp constants . . . . . . . . . . . . . . . . 34|| (vertical bar) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28| (vertical bar), | operator (I/O) . . . . . . . 54, 67, 95| (vertical bar), |& operator (I/O) . . 56, 68, 95, 170| (vertical bar), |& operator (I/O), pipes, closing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73| (vertical bar), |& operator (I/O), two-waycommunications. . . . . . . . . . . . . . . . . . . . . . . . . . 173| (vertical bar), || operator . . . . . . . . . . . . . . . . 91, 95~~ (tilde), ~ operator . . . . . . 32, 34, 76, 89, 90, 95, 97Aaccessing fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39account information . . . . . . . . . . . . . . . . . . . . . 206, 210actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101actions, control statements in . . . . . . . . . . . . . . . . . 102actions, default . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18actions, empty. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18adding, features to gawk . . . . . . . . . . . . . . . . . . . . . . 284adding, fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41adding, functions to gawk . . . . . . . . . . . . . . . . . . . . . 287advanced features, buffering . . . . . . . . . . . . . . . . . . 145advanced features, close function. . . . . . . . . . . . . . 73advanced features, constants, values of . . . . . . . . . 76advanced features, data files as single record . . . 39advanced features, fixed-width data . . . . . . . . . . . . 48advanced features, FNR/NR variables . . . . . . . . . . . 116advanced features, gawk . . . . . . . . . . . . . . . . . . . . . . 169advanced features, gawk, BSD portals . . . . . . . . . 173advanced features, gawk, network programming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172advanced features, gawk, nondecimal input data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169advanced features, gawk, processes, communicatingwith . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170advanced features, network connections, See Alsonetworks, connections . . . . . . . . . . . . . . . . . . . . 169advanced features, null strings, matching. . . . . . 143advanced features, operators, precedence . . . . . . . 87advanced features, piping into sh . . . . . . . . . . . . . . 68advanced features, regexp constants . . . . . . . . . . . . 86Aho, Alfred . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4, 263alarm clock example program . . . . . . . . . . . . . . . . . 236alarm.awk program. . . . . . . . . . . . . . . . . . . . . . . . . . . 236algorithms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301Alpha (DEC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7amazing awk assembler (aaa) . . . . . . . . . . . . . . . . . 306amazingly workable formatter (awf). . . . . . . . . . . 306ambiguity, syntactic: /= operator vs. /=.../ regexpconstant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86ampersand (&), && operator . . . . . . . . . . . . . . . . . . . . 91ampersand (&), &&operator . . . . . . . . . . . . . . . . . . . . . 95ampersand (&), gsub/gensub/sub functions and. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140AND bitwise operation . . . . . . . . . . . . . . . . . . . . . . . 150and Boolean-logic operator . . . . . . . . . . . . . . . . . . . . 91and function (gawk). . . . . . . . . . . . . . . . . . . . . . . . . . . 151ANSI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306archeologists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280ARGC/ARGV variables. . . . . . . . . . . . . . . . . . . . . . 113, 116ARGC/ARGV variables, command-line arguments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182ARGC/ARGV variables, portability and . . . . . . . . . . . 14ARGIND variable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113ARGIND variable, command-line arguments. . . . . 182arguments, command-line . . . . . . . . . . . 113, 116, 182arguments, command-line, invoking awk . . . . . . . 177arguments, in function calls . . . . . . . . . . . . . . . . . . . . 93arguments, processing . . . . . . . . . . . . . . . . . . . . . . . . 201arguments, retrieving . . . . . . . . . . . . . . . . . . . . . . . . . 289arithmetic operators . . . . . . . . . . . . . . . . . . . . . . . . . . . 81arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119arrays, as parameters to functions . . . . . . . . . . . . 156arrays, associative . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119arrays, associative, clearing . . . . . . . . . . . . . . . . . . . 288arrays, associative, library functions and . . . . . . 187arrays, deleting entire contents. . . . . . . . . . . . . . . . 123arrays, elements, assigning . . . . . . . . . . . . . . . . . . . . 121arrays, elements, deleting . . . . . . . . . . . . . . . . . . . . . 123arrays, elements, installing. . . . . . . . . . . . . . . . . . . . 288arrays, elements, order of . . . . . . . . . . . . . . . . . . . . . 123arrays, elements, referencing . . . . . . . . . . . . . . . . . . 120arrays, elements, retrieving number of . . . . . . . . 132arrays, for statement and . . . . . . . . . . . . . . . . . . . . 122arrays, IGNORECASE variable and . . . . . . . . . . . . . . 120arrays, indexing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119arrays, merging into strings . . . . . . . . . . . . . . . . . . . 195arrays, multidimensional . . . . . . . . . . . . . . . . . . . . . . 125arrays, multidimensional, scanning . . . . . . . . . . . . 127arrays, names of . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119arrays, scanning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122arrays, sorting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127arrays, sorting, IGNORECASE variable and . . . . . . 129arrays, sparse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120arrays, subscripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124arrays, subscripts, uninitialized variables as . . . 125

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

Saved successfully!

Ooh no, something went wrong!