About the Second Edition
Since this book was first published in 1990, it has become one of the most fundamental of the O’Reilly & Associates Nutshell Handbooks. Three important events occurred after it was written. The first was the publication of the POSIX standard for sed, and more importantly for awk. The second (perhaps due to the first) was the widespread availability of some version or other of new awk on all modern UNIX systems, both commercial ones and the freely available UNIX-like systems such as NetBSD, FreeBSD, and Linux. The third was the source code availability of GNU sed, and three versions of awk, instead of just gawk.
For these and other reasons, O’Reilly & Associates decided that this handbook needed to be updated. The goals of the revision were to keep the flavor of the book intact (“if it ain’t broke, don’t fix it”), reorient the awk part of the book around POSIX awk, correct mistakes, and bring the book up to date.
I would like to thank Gigi Estabrook, Chris Reilley, and Lenny Muellner of O’Reilly & Associates for their help, Marc Vauclair, the French translator of the first edition, for many helpful comments, and John Dzubera for his comments on the first edition. Michael Brennan, Henry Spencer, and Ozan Yigit acted as technical reviewers for this edition, and I would like to thank them for their input. Ozan Yigit, in particular, deserves extra thanks for forcing me to be very rigorous in my testing. Pat Thompson of Thompson Automation Software graciously provided ...