Buying Options
sed & awk, Second Edition
Print $34.95
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £26.99
Add to Cart
What is this?

Product Editions

  1. sed & awk, Second Edition - March 1997
  2. sed & awk - November 1990 (out of print)
Description
sed & awk describes two text manipulation programs that are mainstays of the UNIX programmer's toolbox. This edition covers the sed and awk programs as they are mandated by the POSIX standard and includes discussion of the GNU versions of these programs.
Full Description
Table of Contents
  1. Chapter 1 Power Tools for Editing

    1. May You Solve Interesting Problems

    2. A Stream Editor

    3. A Pattern-Matching Programming Language

    4. Four Hurdles to Mastering sed and awk

  2. Chapter 2 Understanding Basic Operations

    1. Awk, by Sed and Grep, out of Ed

    2. Command-Line Syntax

    3. Using sed

    4. Using awk

    5. Using sed and awk Together

  3. Chapter 3 Understanding Regular Expression Syntax

    1. That's an Expression

    2. A Line-Up of Characters

    3. I Never Metacharacter I Didn't Like

  4. Chapter 4 Writing sed Scripts

    1. Applying Commands in a Script

    2. A Global Perspective on Addressing

    3. Testing and Saving Output

    4. Four Types of sed Scripts

    5. Getting to the PromiSed Land

  5. Chapter 5 Basic sed Commands

    1. About the Syntax of sed Commands

    2. Comment

    3. Substitution

    4. Delete

    5. Append, Insert, and Change

    6. List

    7. Transform

    8. Print

    9. Print Line Number

    10. Next

    11. Reading and Writing Files

    12. Quit

  6. Chapter 6 Advanced sed Commands

    1. Multiline Pattern Space

    2. A Case for Study

    3. Hold That Line

    4. Advanced Flow Control Commands

    5. To Join a Phrase

  7. Chapter 7 Writing Scripts for awk

    1. Playing the Game

    2. Hello, World

    3. Awk's Programming Model

    4. Pattern Matching

    5. Records and Fields

    6. Expressions

    7. System Variables

    8. Relational and Boolean Operators

    9. Formatted Printing

    10. Passing Parameters Into a Script

    11. Information Retrieval

  8. Chapter 8 Conditionals, Loops, and Arrays

    1. Conditional Statements

    2. Looping

    3. Other Statements That Affect Flow Control

    4. Arrays

    5. An Acronym Processor

    6. System Variables That Are Arrays

  9. Chapter 9 Functions

    1. Arithmetic Functions

    2. String Functions

    3. Writing Your Own Functions

  10. Chapter 10 The Bottom Drawer

    1. The getline Function

    2. The close( ) Function

    3. The system( ) Function

    4. A Menu-Based Command Generator

    5. Directing Output to Files and Pipes

    6. Generating Columnar Reports

    7. Debugging

    8. Limitations

    9. Invoking awk Using the #! Syntax

  11. Chapter 11 A Flock of awks

    1. Original awk

    2. Freely Available awks

    3. Commercial awks

    4. Epilogue

  12. Chapter 12 Full-Featured Applications

    1. An Interactive Spelling Checker

    2. Generating a Formatted Index

    3. Spare Details of the masterindex Program

  13. Chapter 13 A Miscellany of Scripts

    1. uutot.awk—Report UUCP Statistics

    2. phonebill—Track Phone Usage

    3. combine—Extract Multipart uuencoded Binaries

    4. mailavg—Check Size of Mailboxes

    5. adj—Adjust Lines for Text Files

    6. readsource—Format Program Source Files for troff

    7. gent—Get a termcap Entry

    8. plpr—lpr Preprocessor

    9. transpose—Perform a Matrix Transposition

    10. m1—Simple Macro Processor

  1. Appendix A Quick Reference for sed

    1. Command-Line Syntax

    2. Syntax of sed Commands

    3. Command Summary for sed

  2. Appendix B Quick Reference for awk

    1. Command-Line Syntax

    2. Language Summary for awk

    3. Command Summary for awk

  3. Appendix C Supplement for Chapter 12

    1. Full Listing of spellcheck.awk

    2. Listing of masterindex Shell Script

    3. Documentation for masterindex

  4. Colophon

View Full Table of Contents
Product Details
Title:
sed & awk, Second Edition
By:
Dale Dougherty, Arnold Robbins
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
March 1997
Pages:
432
Print ISBN:
978-1-56592-225-9
| ISBN 10:
1-56592-225-5
Customer Reviews
About the Authors
  1. Dale Dougherty

    Dale Dougherty is the publisher of the O'Reilly Network and Director of O'Reilly Research. Dale has been instrumental in many of O'Reilly's most important efforts, including founding O'Reilly & Associates with Tim O'Reilly. He was the developer and publisher of Global Network Navigator (GNN), the first commercial Web site. Dale was developer and publisher of Web Review, the online magazine for Web designers, and he was O'Reilly & Associates' first editor. Dale has written and edited numerous books at O'Reilly & Associates. Dougherty is a Lecturer in the School of Information Management and Systems (SIMS) at the University of California at Berkeley.

    View Dale Dougherty's full profile page.

  2. Arnold Robbins

    Arnold Robbins, an Atlanta native, is a professional programmer and technical author. He has worked with Unix systems since 1980, when he was introduced to a PDP-11 running a version of Sixth Edition Unix. He has been a heavy AWK user since 1987, when he became involved with gawk, the GNU project's version of AWK. As a member of the POSIX 1003.2 balloting group, he helped shape the POSIX standard for AWK. He is currently the maintainer of gawk and its documentation. He is also coauthor of the sixth edition of O'Reilly's Learning the vi Editor. Since late 1997, he and his family have been living happily in Israel.

    View Arnold Robbins's full profile page.

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal featured on the cover of sed & awk is a slender loris. Lorises are nocturnal, tree- dwelling, tailless primates with thick, soft fur and large, round eyes. They are found in Southern India and Ceylon, where they live in trees, rarely descending to the ground. Lorises have been observed urinating on their hands and feetit is thought that they do this to improve their grip while climbing and to leave a scent trail.

A small animal, the slender loris is generally between 7 and 10 inches in size and weighs 12 ounces or less. It subsists on a diet of fruit, leaves, and shoots and small animals that it captures by hand. Edie Freedman designed the cover of this book, using a 19th-century engraving from the Dover Pictorial Archive. The cover layout was produced with Quark XPress 3.3 using the ITC Garamond font.

The inside layout was designed by Nancy Priest and Mary Jane Walsh. Text was prepared in SGML using the DocBook 2.1 DTD. The print version of this book was created by trans- lating the SGML source into a set of gtroff macros using a filter developed at ORA by Norman Walsh. Steve Talbott designed and wrote the underlying macro set on the basis of the GNU troff -gs macros; Lenny Muellner adapted them to SGML and implemented the book design. The GNU groff text formatter version 1.09 was used to generate PostScript output. The text and heading fonts are ITC Garamond Light and Garamond Book; the constant-width font used in this book is Letter Gothic. The illustrations that appear in the book were created in Macromedia Freehand 5.0 by Chris Reilley.

  • Book cover of sed & awk