21.07.2015 Views

GAWK: Effective AWK Programming

GAWK: Effective AWK Programming

GAWK: Effective AWK Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 <strong>G<strong>AWK</strong></strong>: <strong>Effective</strong> <strong>AWK</strong> <strong>Programming</strong>early. Often, the interpreted performance is adequate and the <strong>AWK</strong> prototype becomes theproduct.The new pgawk (profiling gawk), produces program execution counts. I recently experimentedwith an algorithm that for n lines of input, exhibited ∼ Cn 2 performance, whiletheory predicted ∼ Cn log n behavior. A few minutes poring over the ‘awkprof.out’ profilepinpointed the problem to a single line of code. pgawk is a welcome addition to myprogrammer’s toolbox.Arnold has distilled over a decade of experience writing and using <strong>AWK</strong> programs, anddeveloping gawk, into this book. If you use <strong>AWK</strong> or want to learn how, then read this book.Michael BrennanAuthor of mawk

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

Saved successfully!

Ooh no, something went wrong!