
by Dale Dougherty, Arnold Robbins
<i>sed & awk</i> describes two text processing programs that are mainstays of the UNIX programmer's toolbox.<i>sed</i> is a "stream editor" for editing streams of text that might be too large to edit as a single file, or that might be generated on the fly as part of a larger data processing step. The most common operation done with <i>sed</i> is substitution, replacing one block of text with another.<i>awk</i> is a complete programming language. Unlike many conventional languages, <i>awk</i> is "data driven" -- you specify what kind of data you are interested in and the operations to be performed when that data is found. <i>awk</i> does many things for you, including automatically opening and closing data files, reading records, breaking the records up into fields, and counting the records. While <i>awk</i> provides the features of most conventional programming languages, it also includes some unconventional features, such as extended regular expression matching and associative arrays. <i>sed & awk</i> describes both programs in detail and includes a chapter of example <i>sed</i> and <i>awk</i> scripts.This edition covers features of <i>sed</i> and <i>awk</i> that are mandated by the POSIX standard. This most notably affects <i>awk</i>, where POSIX standardized a new variable, CONVFMT, and new functions, <i>toupper</i>() and <i>tolower</i>(). The CONVFMT variable specifies the conversion format to use when converting numbers to strings (<i>awk</i> used to use OFMT for this purpose). The <i>toupper</i>() and <i>tolower</i>() functions each take a (presumably m…
**Arnold Robbins** is a professional programmer and technical author who has worked with Unix systems since 1980 and has been using Awk since 1987. As a member of the POSIX 1003.2 balloting group, he helped shape the POSIX standard for Awk. Arnold is the maintainer of GNU Awk (gawk) and its documentation. He is the author of the fourth edition of [*Effective awk Programming*](https://openlibrary.org/works/OL546344W) and the coauthor of [*Classic Shell Scripting*](https://openlibrary.org/works/OL546333W) (both published by O’Reilly).
No reviews yet — be the first to write one from the Log screen.
No quotes yet.