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.

256 <strong>G<strong>AWK</strong></strong>: <strong>Effective</strong> <strong>AWK</strong> <strong>Programming</strong>change with new gawk releases, without requiring the system administrator toupdate it each time by adding the local functions.One user suggested that gawk be modified to automatically read these files upon startup.Instead, it would be very simple to modify igawk to do this. Since igawk can process nested‘@include’ directives, ‘default.awk’ could simply contain ‘@include’ statements for thedesired library functions.13.3.10 And Now For Something Completely DifferentThe following program was written by Davide Brini and is published on his website. It servesas his signature in the Usenet group comp.lang.awk. He supplies the following copyrightterms:Copyright c○ 2008 Davide BriniCopying and distribution of the code published in this page, with or withoutmodification, are permitted in any medium without royalty provided the copyrightnotice and this notice are preserved.Here is the program:awk ’BEGIN{O="~"~"~";o="=="=="==";o+=+o;x=O""O;while(X++

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

Saved successfully!

Ooh no, something went wrong!