Cover of sed & awk

sed & awk

by Dale Dougherty and Arnold RobbinsFirst published 1990

<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 mixed case) string argument and return a new version of the string with all letters translated to the corresponding case.In addition, this edition covers GNU <i>sed</i>, newly available since the first edition. It also updates the first edition coverage of Bell Labs <i>nawk</i> and GNU <i>awk</i> (<i>gawk</i>), covers <i>mawk</i>, an additional freely available implementation of <i>awk</i>, and briefly discusses three commercial versions of <i>awk</i>, MKS <i>awk</i>, Thompson Automation <i>awk</i> (<i>tawk</i>), and Videosoft (VSAwk).

Buy at Booktopia (opens in a new tab, affiliate link)

Opens Booktopia in a new tab.

Gigglefit is an affiliate of Booktopia: we may earn a commission if you buy through our links, at no extra cost to you. We don’t sell books or show price or stock.

  • UNIX (Computer operating system)

Book details

First published
1990
Publisher
O’Reilly Media
This edition
1997
Format
Paperback
Pages
432
Language
English
ISBN-13
9781565922259
ISBN-10
1565922255

Editions

Different printings of the same book.

  • Paperback · O’Reilly Media · 1997 · 432 pages

    ISBN 9781565922259

  • O'Reilly Media, Incorporated · 1997

    ISBN 9781449301880

  • Paperback · O’Reilly Media · 1991 · 394 pages

    ISBN 9780937175590

More by Dale Dougherty and Arnold Robbins

More on these topics