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.

262 <strong>G<strong>AWK</strong></strong>: <strong>Effective</strong> <strong>AWK</strong> <strong>Programming</strong>• The ability to use octal and hexadecimal constants in awk program source code (seeSection 5.1.2 [Octal and Hexadecimal Numbers], page 75).• The ‘|&’ operator for two-way I/O to a coprocess (see Section 10.2 [Two-Way Communicationswith Another Process], page 170).• The ‘/inet’ special files for TCP/IP networking using ‘|&’ (see Section 10.3 [Usinggawk for Network <strong>Programming</strong>], page 172).• The optional second argument to close that allows closing one end of a two-way pipeto a coprocess (see Section 10.2 [Two-Way Communications with Another Process],page 170).• The optional third argument to the match function for capturing text-matching subexpressionswithin a regexp (see Section 8.1.3 [String-Manipulation Functions], page 132).• Positional specifiers in printf formats for making translations easier (see Section 9.4.2[Rearranging printf Arguments], page 164).• The asort and asorti functions for sorting arrays (see Section 7.11 [Sorting ArrayValues and Indices with gawk], page 127).• The bindtextdomain, dcgettext and dcngettext functions for internationalization(see Section 9.3 [Internationalizing awk Programs], page 162).• The extension built-in function and the ability to add new built-in functions dynamically(see Section C.3 [Adding New Built-in Functions to gawk], page 287).• The mktime built-in function for creating timestamps (see Section 8.1.5 [Using gawk’sTimestamp Functions], page 146).• The and, or, xor, compl, lshift, rshift, and strtonum built-in functions (seeSection 8.1.6 [Bit-Manipulation Functions of gawk], page 150).• The support for ‘next file’ as two words was removed completely (see Section 6.4.9[Using gawk’s nextfile Statement], page 109).• The ‘--dump-variables’ option to print a list of all global variables (see Section 11.2[Command-Line Options], page 177).• The ‘--gen-po’ command-line option and the use of a leading underscore to markstrings that should be translated (see Section 9.4.1 [Extracting Marked Strings],page 164).• The ‘--non-decimal-data’ option to allow non-decimal input data (see Section 10.1[Allowing Nondecimal Input Data], page 169).• The ‘--profile’ option and pgawk, the profiling version of gawk, for producing executionprofiles of awk programs (see Section 10.5 [Profiling Your awk Programs], page 173).• The ‘--use-lc-numeric’ option to force gawk to use the locale’s decimal point forparsing input data (see Section 5.4 [Conversion of Strings and Numbers], page 79).• The ‘--enable-portals’ configuration option to enable special treatment of pathnamesthat begin with ‘/p’ as BSD portals (see Section 10.4 [Using gawk with BSD Portals],page 173).• The ‘--disable-directories-fatal’ configuration option which causes gawk tosilently skip directories named on the command line (see Section B.2.2 [AdditionalConfiguration Options], page 269).

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

Saved successfully!

Ooh no, something went wrong!