The AWK Programming Language, 2nd Edition

Book description

Awk was developed in 1977 at Bell Labs, and it’s still a remarkably useful tool for solving a wide variety of problems quickly and efficiently. In this update of the classic Awk book, the creators of the language show you what Awk can do and teach you how to use it effectively.

Here’s what programmers today are saying: “I love Awk.” “Awk is amazing.” “It is just so damn good.” “Awk is just right.” “Awk is awesome.” “Awk has always been a language that I loved.”

It’s easy: “Simple, fast and lightweight.” “Absolutely efficient to learn because there isn’t much to learn.” “3-4 hours to learn the language from start to finish.” “I can teach it to new engineers in less than 2 hours.”

It’s productive: “Whenever I need to do a complex analysis of a semi-structured text file in less than a minute, Awk is my tool.” “Learning Awk was the best bang for buck investment of time in my entire career.” “Designed to chew through lines of text files with ease, with great defaults that minimize the amount of code you actually have to write to do anything.”

It’s always available: “AWK runs everywhere.” “A reliable Swiss Army knife that is always there when you need it.” “Many systems lack Perl or Python, but include Awk.”

Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.

.

Table of contents

  1. Cover Page
  2. About This eBook
  3. Halftitle Page
  4. Title Page
  5. Copyright Page
  6. Dedication Page
  7. Contents
  8. Preface
    1. Organization of the Book
    2. The Examples
    3. Evolution of Awk
    4. Acknowledgments
    5. Acknowledgments for the First Edition
  9. 1. An Awk Tutorial
    1. 1.1 Getting Started
    2. 1.2 Simple Output
    3. 1.3 Formatted Output
    4. 1.4 Selection
    5. 1.5 Computing with Awk
    6. 1.6 Control-Flow Statements
    7. 1.7 Arrays
    8. 1.8 Useful One-liners
    9. 1.9 What Next?
  10. 2. Awk in Action
    1. 2.1 Personal Computation
    2. 2.2 Selection
    3. 2.3 Transformation
    4. 2.4 Summarization
    5. 2.5 Personal Databases
    6. 2.6 A Personal Library
    7. 2.7 Summary
  11. 3. Exploratory Data Analysis
    1. 3.1 The Sinking of the Titanic
    2. 3.2 Beer Ratings
    3. 3.3 Grouping Data
    4. 3.4 Unicode Data
    5. 3.5 Basic Graphs and Charts
    6. 3.6 Summary
  12. 4. Data Processing
    1. 4.1 Data Transformation and Reduction
    2. 4.2 Data Validation
    3. 4.3 Bundle and Unbundle
    4. 4.4 Multiline Records
    5. 4.5 Summary
  13. 5. Reports and Databases
    1. 5.1 Generating Reports
    2. 5.2 Packaged Queries and Reports
    3. 5.3 A Relational Database System
    4. 5.4 Summary
  14. 6. Processing Words
    1. 6.1 Random Text Generation
    2. 6.2 Interactive Text-Manipulation
    3. 6.3 Text Processing
    4. 6.4 Making an Index
    5. 6.5 Summary
  15. 7. Little Languages
    1. 7.1 An Assembler and Interpreter
    2. 7.2 A Language for Drawing Graphs
    3. 7.3 A Sort Generator
    4. 7.4 A Reverse-Polish Calculator
    5. 7.5 A Different Approach
    6. 7.6 A Recursive-Descent Parser for Arithmetic Expressions
    7. 7.7 A Recursive-Descent Parser for a Subset of Awk
    8. 7.8 Summary
  16. 8. Experiments with Algorithms
    1. 8.1 Sorting
    2. 8.2 Profiling
    3. 8.3 Topological Sorting
    4. 8.4 Make: A File Updating Program
    5. 8.5 Summary
  17. 9. Epilogue
    1. 9.1 Awk as a Language
    2. 9.2 Performance
    3. 9.3 Conclusion
  18. Appendix A: Awk Reference Manual
    1. A.1 Patterns
    2. A.2 Actions
    3. A.3 User-Defined Functions
    4. A.4 Output
    5. A.5 Input
    6. A.6 Interaction with Other Programs
    7. A.7 Summary
  19. Index
  20. Code Snippets

Product information

  • Title: The AWK Programming Language, 2nd Edition
  • Author(s): Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger
  • Release date: September 2023
  • Publisher(s): Addison-Wesley Professional
  • ISBN: 9780138269876