Books & Videos

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. Background Details

    5. Coding Index Entries

    6. Output Format

    7. Compiling a Master Index

  4. Colophon