GAWK: Effective AWK Programming
GAWK: Effective AWK Programming
GAWK: Effective AWK Programming
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
352 <strong>G<strong>AWK</strong></strong>: <strong>Effective</strong> <strong>AWK</strong> <strong>Programming</strong>Unix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314Unix awk, backslashes in escape sequences. . . . . . 26Unix awk, close function and . . . . . . . . . . . . . . . . . . 73Unix awk, password files, field separators and. . . 46Unix, awk scripts and . . . . . . . . . . . . . . . . . . . . . . . . . . 13unsigned integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301update_ERRNO internal function . . . . . . . . . . . . . . . 290update_ERRNO_saved internal function . . . . . . . . 290user database, reading . . . . . . . . . . . . . . . . . . . . . . . . 206user-defined, functions . . . . . . . . . . . . . . . . . . . . . . . . 153user-defined, functions, counts . . . . . . . . . . . . . . . . 175user-defined, variables . . . . . . . . . . . . . . . . . . . . . . . . . 78user-modifiable variables. . . . . . . . . . . . . . . . . . . . . . 110users, information about, printing. . . . . . . . . . . . . 224users, information about, retrieving . . . . . . . . . . . 206USR1 signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176Vvalues, numeric . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301values, string . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301variable typing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22, 301variables, assigning on command line. . . . . . . . . . . 78variables, built-in . . . . . . . . . . . . . . . . . . . . . . . . . 78, 110variables, built-in, -v option, setting with . . . . . 178variables, built-in, conveying information. . . . . . 113variables, flag. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92variables, getline command into, using . . . 53, 54,56variables, global, for library functions . . . . . . . . . 186variables, global, printing list of. . . . . . . . . . . . . . . 179variables, initializing . . . . . . . . . . . . . . . . . . . . . . . . . . . 78variables, names of . . . . . . . . . . . . . . . . . . . . . . . . . . . 119variables, private . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186variables, setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178variables, shadowing . . . . . . . . . . . . . . . . . . . . . . . . . . 154variables, types of . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84variables, types of, comparison expressions and. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87variables, uninitialized, as array subscripts . . . . 125variables, user-defined . . . . . . . . . . . . . . . . . . . . . . . . . 78vertical bar (|) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28vertical bar (|), | operator (I/O) . . . . . . . . . . . 54, 95vertical bar (|), |& I/O operator (I/O). . . . . . . . 170vertical bar (|), |& operator (I/O). . . . . . . . . . 56, 95vertical bar (|), |& operator (I/O), two-waycommunications. . . . . . . . . . . . . . . . . . . . . . . . . . 173vertical bar (|), || operator . . . . . . . . . . . . . . . . 91, 95Vinschen, Corinna . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9vname internal variable . . . . . . . . . . . . . . . . . . . . . . . 288Ww utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48Wall, Larry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119, 297Wallin, Anders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9warnings, issuing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180wc utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233wc.awk program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233Weinberger, Peter . . . . . . . . . . . . . . . . . . . . . . . . . . 4, 263while statement . . . . . . . . . . . . . . . . . . . . . . . . . . 24, 103whitespace, as field separators . . . . . . . . . . . . . . . . . 43whitespace, functions, calling . . . . . . . . . . . . . . . . . 130whitespace, newlines as . . . . . . . . . . . . . . . . . . . . . . . 180Wildenhues, Ralf . . . . . . . . . . . . . . . . . . . . . . . . 264, 281Williams, Kent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264Woehlke, Matthew . . . . . . . . . . . . . . . . . . . . . . . . . . . 264Woods, John . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263word boundaries, matching . . . . . . . . . . . . . . . . . . . . 31word, regexp definition of . . . . . . . . . . . . . . . . . . . . . . 31word-boundary operator (gawk) . . . . . . . . . . . . . . . . 31wordfreq.awk program . . . . . . . . . . . . . . . . . . . . . . . 243words, counting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233words, duplicate, searching for . . . . . . . . . . . . . . . . 235words, usage counts, generating . . . . . . . . . . . . . . . 242Xxgettext utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290XOR bitwise operation . . . . . . . . . . . . . . . . . . . . . . . 150xor function (gawk). . . . . . . . . . . . . . . . . . . . . . . . . . . 151ZZaretskii, Eli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9, 281zero, negative vs. positive. . . . . . . . . . . . . . . . . . . . . 304zerofile.awk program . . . . . . . . . . . . . . . . . . . . . . . 200Zoulas, Christos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264