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.

342 <strong>G<strong>AWK</strong></strong>: <strong>Effective</strong> <strong>AWK</strong> <strong>Programming</strong>exclamation point (!), ! operator . . . . . . 92, 95, 223exclamation point (!), != operator . . . . . . . . . 89, 95exclamation point (!), !~ operator . . 24, 32, 34, 76,89, 90, 95, 97exit statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109exit status, of gawk . . . . . . . . . . . . . . . . . . . . . . . . . . . 184exp function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131expand utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75expressions, as patterns . . . . . . . . . . . . . . . . . . . . . . . . 96expressions, assignment . . . . . . . . . . . . . . . . . . . . . . . . 83expressions, Boolean . . . . . . . . . . . . . . . . . . . . . . . . . . . 91expressions, comparison. . . . . . . . . . . . . . . . . . . . . . . . 87expressions, conditional . . . . . . . . . . . . . . . . . . . . . . . . 92expressions, matching, See comparison expressions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87expressions, selecting . . . . . . . . . . . . . . . . . . . . . . . . . . 92Extended Regular Expressions (EREs) . . . . . . . . . 29extension function (gawk). . . . . . . . . . . . . . . . . . . . 296extensions, Bell Laboratories awk . . . . . . . . . . . . . 259extensions, in gawk, not in POSIX awk . . . . . . . . 260extensions, mawk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282extract.awk program . . . . . . . . . . . . . . . . . . . . . . . . 246extraction, of marked strings (internationalization). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164Ffalse, logical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87FDL (Free Documentation License) . . . . . . . . . . . 327features, adding to gawk . . . . . . . . . . . . . . . . . . . . . . 284features, advanced, See advanced features . . . . . 184features, deprecated . . . . . . . . . . . . . . . . . . . . . . . . . . 184features, undocumented . . . . . . . . . . . . . . . . . . . . . . 184Fenlason, Jay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4, 263fflush function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143fflush function, unsupported. . . . . . . . . . . . . . . . . 180field numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40field operator $ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39field operators, dollar sign as. . . . . . . . . . . . . . . . . . . 39field separators. . . . . . . . . . . . . . . . . . . . . . . 43, 111, 112field separators, choice of . . . . . . . . . . . . . . . . . . . . . . 43field separators, FIELDWIDTHS variable and . . . . 111field separators, in multiline records. . . . . . . . . . . . 50field separators, on command line . . . . . . . . . . . . . . 45field separators, POSIX and . . . . . . . . . . . . . . . . 39, 47field separators, regular expressions as . . . . . . 43, 44field separators, See Also OFS . . . . . . . . . . . . . . . . . . 41field separators, spaces as . . . . . . . . . . . . . . . . . . . . . 217fields. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36, 39, 301fields, adding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41fields, changing contents of. . . . . . . . . . . . . . . . . . . . . 41fields, cutting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215fields, examining. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39fields, number of. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39fields, numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40fields, printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59fields, separating. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43fields, single-character . . . . . . . . . . . . . . . . . . . . . . . . . 45FIELDWIDTHS variable . . . . . . . . . . . . . . . . . . . . . 48, 111file descriptors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69file names, distinguishing . . . . . . . . . . . . . . . . . . . . . 114file names, in compatibility mode . . . . . . . . . . . . . . 71file names, standard streams in gawk . . . . . . . . . . . 69FILENAME variable. . . . . . . . . . . . . . . . . . . . . . . . . 36, 114FILENAME variable, getline, setting with . . . . . . . 56filenames, assignments as . . . . . . . . . . . . . . . . . . . . . 200files, .mo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161files, .mo, converting from .po . . . . . . . . . . . . . . . . 167files, .mo, specifying directory of . . . . . . . . . 161, 162files, .po. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160, 163files, .po, converting to .mo . . . . . . . . . . . . . . . . . . . 167files, /dev/... special files . . . . . . . . . . . . . . . . . . . . . 69files, /inet/ (gawk) . . . . . . . . . . . . . . . . . . . . . . . . . . . 172files, /p (gawk) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173files, as single records . . . . . . . . . . . . . . . . . . . . . . . . . . 39files, awk programs in . . . . . . . . . . . . . . . . . . . . . . . . . . 12files, awkprof.out . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173files, awkvars.out . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179files, closing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143files, descriptors, See file descriptors. . . . . . . . . . . . 69files, for process information . . . . . . . . . . . . . . . . . . . 70files, group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210files, information about, retrieving . . . . . . . . . . . . 292files, initialization and cleanup . . . . . . . . . . . . . . . . 197files, input, See input files. . . . . . . . . . . . . . . . . . . . . . 12files, log, timestamps in. . . . . . . . . . . . . . . . . . . . . . . 146files, managing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197files, managing, data file boundaries . . . . . . . . . . 197files, message object . . . . . . . . . . . . . . . . . . . . . . . . . . 161files, message object, converting from portableobject files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167files, message object, specifying directory of . . 161,162files, multiple passes over . . . . . . . . . . . . . . . . . . . . . 183files, multiple, duplicating output into . . . . . . . . 228files, output, See output files . . . . . . . . . . . . . . . . . . . 71files, password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206files, portable object . . . . . . . . . . . . . . . . . . . . . 160, 163files, portable object, converting to message objectfiles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167files, portable object, generating . . . . . . . . . . . . . . 179files, portal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173files, processing, ARGIND variable and. . . . . . . . . . 114files, reading. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198files, reading, multiline records . . . . . . . . . . . . . . . . . 49files, searching for regular expressions . . . . . . . . . 220files, skipping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199files, source, search path for . . . . . . . . . . . . . . . . . . 255files, splitting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226files, Texinfo, extracting programs from . . . . . . . 245Fish, Fred . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264fixed-width data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48flag variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92, 228floating-point. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303floating-point, numbers . . . . . . . . . . . . . . . . . . . . . . . 301

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

Saved successfully!

Ooh no, something went wrong!