Books & Videos

Table of Contents

  1. Chapter 1 Background

    1. Unix History

    2. Software Tools Principles

    3. Summary

  2. Chapter 2 Getting Started

    1. Scripting Languages Versus Compiled Languages

    2. Why Use a Shell Script?

    3. A Simple Script

    4. Self-Contained Scripts: The #! First Line

    5. Basic Shell Constructs

    6. Accessing Shell Script Arguments

    7. Simple Execution Tracing

    8. Internationalization and Localization

    9. Summary

  3. Chapter 3 Searching and Substitutions

    1. Searching for Text

    2. Regular Expressions

    3. Working with Fields

    4. Summary

  4. Chapter 4 Text Processing Tools

    1. Sorting Text

    2. Removing Duplicates

    3. Reformatting Paragraphs

    4. Counting Lines, Words, and Characters

    5. Printing

    6. Extracting the First and Last Lines

    7. Summary

  5. Chapter 5 Pipelines Can Do Amazing Things

    1. Extracting Data from Structured Text Files

    2. Structured Data for the Web

    3. Cheating at Word Puzzles

    4. Word Lists

    5. Tag Lists

    6. Summary

  6. Chapter 6 Variables, Making Decisions, and Repeating Actions

    1. Variables and Arithmetic

    2. Exit Statuses

    3. The case Statement

    4. Looping

    5. Functions

    6. Summary

  7. Chapter 7 Input and Output, Files, and Command Evaluation

    1. Standard Input, Output, and Error

    2. Reading Lines with read

    3. More About Redirections

    4. The Full Story on printf

    5. Tilde Expansion and Wildcards

    6. Command Substitution

    7. Quoting

    8. Evaluation Order and eval

    9. Built-in Commands

    10. Summary

  8. Chapter 8 Production Scripts

    1. Path Searching

    2. Automating Software Builds

    3. Summary

  9. Chapter 9 Enough awk to Be Dangerous

    1. The awk Command Line

    2. The awk Programming Model

    3. Program Elements

    4. Records and Fields

    5. Patterns and Actions

    6. One-Line Programs in awk

    7. Statements

    8. User-Defined Functions

    9. String Functions

    10. Numeric Functions

    11. Summary

  10. Chapter 10 Working with Files

    1. Listing Files

    2. Updating Modification Times with touch

    3. Creating and Using Temporary Files

    4. Finding Files

    5. Running Commands: xargs

    6. Filesystem Space Information

    7. Comparing Files

    8. Summary

  11. Chapter 11 Extended Example: Merging User Databases

    1. The Problem

    2. The Password Files

    3. Merging Password Files

    4. Changing File Ownership

    5. Other Real-World Issues

    6. Summary

  12. Chapter 12 Spellchecking

    1. The spell Program

    2. The Original Unix Spellchecking Prototype

    3. Improving ispell and aspell

    4. A Spellchecker in awk

    5. Summary

  13. Chapter 13 Processes

    1. Process Creation

    2. Process Listing

    3. Process Control and Deletion

    4. Process System-Call Tracing

    5. Process Accounting

    6. Delayed Scheduling of Processes

    7. The /proc Filesystem

    8. Summary

  14. Chapter 14 Shell Portability Issues and Extensions

    1. Gotchas

    2. The bash shopt Command

    3. Common Extensions

    4. Download Information

    5. Other Extended Bourne-Style Shells

    6. Shell Versions

    7. Shell Initialization and Termination

    8. Summary

  15. Chapter 15 Secure Shell Scripts: Getting Started

    1. Tips for Secure Shell Scripts

    2. Restricted Shell

    3. Trojan Horses

    4. Setuid Shell Scripts: A Bad Idea

    5. ksh93 and Privileged Mode

    6. Summary

  16. Chapter 16 Bibliography

    1. Unix Programmer's Manuals

    2. Programming with the Unix Mindset

    3. Awk and Shell

    4. Standards

    5. Security and Cryptography

    6. Unix Internals

    7. O'Reilly Books

    8. Miscellaneous Books

  1. Colophon