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.

340 <strong>G<strong>AWK</strong></strong>: <strong>Effective</strong> <strong>AWK</strong> <strong>Programming</strong>command-line options, string extraction. . . . . . . 164commenting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14commenting, backslash continuation and . . . . . . . 22comp.lang.awk newsgroup . . . . . . . . . . . . . . . . . . . . 280comparison expressions . . . . . . . . . . . . . . . . . . . . . . . . 87comparison expressions, as patterns . . . . . . . . . . . . 96comparison expressions, string vs. regexp. . . . . . . 90compatibility mode (gawk), extensions . . . . . . . . 260compatibility mode (gawk), file names . . . . . . . . . . 71compatibility mode (gawk), hexadecimal numbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76compatibility mode (gawk), octal numbers. . . . . . 76compatibility mode (gawk), specifying . . . . . . . . . 178compiled programs. . . . . . . . . . . . . . . . . . . . . . . 300, 308compl function (gawk) . . . . . . . . . . . . . . . . . . . . . . . . 151complement, bitwise . . . . . . . . . . . . . . . . . . . . . . . . . . 150compound statements, control statements and. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102concatenating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82conditional expressions . . . . . . . . . . . . . . . . . . . . . . . . 92configuration option,--disable-directories-fatal . . . . . . . . . . 269configuration option, --disable-lint. . . . . . . . . 269configuration option, --disable-nls . . . . . . . . . . 269configuration option, --enable-portals . . . . . . 269configuration option, --enable-switch . . . . . . . 269configuration option,--with-whiny-user-strftime. . . . . . . . . . . . 269configuration options, gawk . . . . . . . . . . . . . . . . . . . 269constants, nondecimal . . . . . . . . . . . . . . . . . . . . . . . . 169constants, types of . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75continue statement . . . . . . . . . . . . . . . . . . . . . . . . . . 107control statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102converting, case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140converting, dates to timestamps . . . . . . . . . . . . . . 147converting, during subscripting . . . . . . . . . . . . . . . 124converting, numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . 79converting, numbers, to strings . . . . . . . . . . . . . . . 152converting, strings to numbers . . . . . . . . . . . . . . . . . 79CONVFMT variable . . . . . . . . . . . . . . . . . . . . . . . . . . 79, 111CONVFMT variable, array subscripts and . . . . . . . . 124coprocesses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68, 170coprocesses, closing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71coprocesses, getline from . . . . . . . . . . . . . . . . . . . . . 56cos function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131counting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233csh utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21csh utility, |& operator, comparison with. . . . . . 170csh utility, backslash continuation and . . . . . . . . . 20csh utility, POSIXLY_CORRECT environment variable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182ctime user-defined function . . . . . . . . . . . . . . . . . . . 155currency symbols, localization . . . . . . . . . . . . . . . . 161custom.h file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270cut utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215cut.awk program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216Dd.c., See dark corner . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7dark corner . . . . . . . . . . . . . . . . . . . . . . . . . 7, 86, 87, 308dark corner, ‘^’, in FS. . . . . . . . . . . . . . . . . . . . . . . . . . 44dark corner, array subscripts. . . . . . . . . . . . . . . . . . 125dark corner, break statement . . . . . . . . . . . . . . . . . 107dark corner, close function . . . . . . . . . . . . . . . . . . . . 73dark corner, command-line arguments. . . . . . . . . . 79dark corner, continue statement. . . . . . . . . . . . . . 108dark corner, CONVFMT variable . . . . . . . . . . . . . . . . . . 79dark corner, escape sequences . . . . . . . . . . . . . . . . . 183dark corner, escape sequences, for metacharacters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27dark corner, exit statement . . . . . . . . . . . . . . . . . . 110dark corner, field separators . . . . . . . . . . . . . . . . . . . 47dark corner, FILENAME variable . . . . . . . . . . . . 56, 114dark corner, FNR/NR variables . . . . . . . . . . . . . . . . . 116dark corner, format-control characters . . . . . . 62, 63dark corner, FS as null string . . . . . . . . . . . . . . . . . . 45dark corner, input files. . . . . . . . . . . . . . . . . . . . . . . . . 37dark corner, invoking awk . . . . . . . . . . . . . . . . . . . . . 177dark corner, length function. . . . . . . . . . . . . . . . . . 133dark corner, multiline records . . . . . . . . . . . . . . . . . . 50dark corner, NF variable, decrementing . . . . . . . . . 42dark corner, OFMT variable . . . . . . . . . . . . . . . . . . . . . 61dark corner, regexp constants . . . . . . . . . . . . . . . . . . 76dark corner, regexp constants, /= operator and. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86dark corner, regexp constants, as arguments touser-defined functions . . . . . . . . . . . . . . . . . . . . . 77dark corner, split function. . . . . . . . . . . . . . . . . . . 136dark corner, strings, storing. . . . . . . . . . . . . . . . . . . . 39data, fixed-width . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48data-driven languages . . . . . . . . . . . . . . . . . . . . . . . . 301database, group, reading. . . . . . . . . . . . . . . . . . . . . . 210database, users, reading . . . . . . . . . . . . . . . . . . . . . . 206date utility, GNU . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146date utility, POSIX . . . . . . . . . . . . . . . . . . . . . . . . . . 149dates, converting to timestamps . . . . . . . . . . . . . . 147dates, information related to, localization . . . . . 162Davies, Stephen . . . . . . . . . . . . . . . . . . . . . . . . . 264, 281dcgettext function (gawk) . . . . . . . . . . . . . . . 152, 162dcgettext function (gawk), portability and . . . 165dcngettext function (gawk) . . . . . . . . . . . . . . 152, 162dcngettext function (gawk), portability and . . 165deadlocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171debugging gawk. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185debugging gawk, bug reports . . . . . . . . . . . . . . . . . . 280decimal point character, locale specific . . . . . . . . 180decrement operators . . . . . . . . . . . . . . . . . . . . . . . . . . . 86default keyword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105Deifik, Scott . . . . . . . . . . . . . . . . . . . . . . . . . . 9, 264, 281delete statement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123deleting elements in arrays. . . . . . . . . . . . . . . . . . . . 123deleting entire arrays . . . . . . . . . . . . . . . . . . . . . . . . . 123differences between gawk and awk . . . . . . . . . . . . . 134differences in awk and gawk, ARGC/ARGV variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118

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

Saved successfully!

Ooh no, something went wrong!