Effective AWK Programming

A User's Guide for GNU AWK

by Arnold Robbins

DescriptionTable of ContentsDetailsHashtagsReport an issue

Book Description

When processing text files, the awk language is ideal for handling data extraction, reporting, and data-reformatting jobs. This practical guide serves as both a reference and tutorial for POSIX-standard awk and for the GNU implementation, called gawk. This book is useful for novices and awk experts alike.

In this thoroughly revised 5th edition, author and gawk lead developer Arnold Robbins describes the awk language and gawk program in detail, shows you how to use awk and gawk for problem solving, and then dives into specific features of gawk. System administrators, programmers, webmasters, and other power users will find everything they need to know about awk and gawk.

You will learn how to:
- Format text and use regular expressions in awk and gawk
- Process data using awk's operators and built-in functions
- Manage data relationships using associative arrays
- Define your own functions
- "Think in awk" with two full chapters of sample functions and programs
- Take advantage of gawk's many advanced features
- Debug awk programs with the gawk built-in debugger
- Extend gawk by writing new functions in C or C++

This open book is licensed under a GNU Free Documentation License (GNU FDL). You can download Effective AWK Programming ebook for free in PDF format (3.6 MB).

Table of Contents

Chapter 1
Getting Started with awk
Chapter 2
Running awk and gawk
Chapter 3
Regular Expressions
Chapter 4
Reading Input Files
Chapter 5
Printing Output
Chapter 6
Chapter 7
Patterns, Actions, and Variables
Chapter 8
Arrays in awk
Chapter 9
Chapter 10
A Library of awk Functions
Chapter 11
Practical awk Programs
Chapter 12
Advanced Features of gawk
Chapter 13
Internationalization with gawk
Chapter 14
Debugging awk Programs
Chapter 15
Namespaces in gawk
Chapter 16
Arithmetic and Arbitrary-Precision Arithmetic with gawk
Chapter 17
Writing Extensions for gawk
Appendix A
The Evolution of the awk Language
Appendix B
Installing gawk
Appendix C
Implementation Notes
Appendix D
Basic Programming Concepts

Book Details

Computer Science
Free Software Foundation, O'Reilly Media
ISBN13 Digital
ISBN10 Digital
PDF Size
3.6 MB

Related Books

Programming Languages and Systems
This book constitutes the proceedings of the 27th European Symposium on Programming, ESOP 2018, which took place in Thessaloniki, Greece in April 2018, held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2018. The 36 papers presented in this volume were carefully reviewed and selected from 114 submissions. The ...
This book is a modern guide for all C++ programmers to learn Threading Building Blocks (TBB). Written by TBB and parallel programming experts, this book reflects their collective decades of experience in developing and teaching parallel programming with TBB, offering their insights in an approachable manner. Throughout the book the authors present ...
XcalableMP PGAS Programming Language
XcalableMP is a directive-based parallel programming language based on Fortran and C, supporting a Partitioned Global Address Space (PGAS) model for distributed memory parallel systems. This open book presents XcalableMP language from its programming model and basic concept to the experience and performance of applications described in XcalableMP....
Data Parallel C++
Learn how to accelerate C++ programs using data parallelism. This open book enables C++ programmers to be at the forefront of this exciting and important new development that is helping to push computing to new levels. It is full of practical advice, detailed explanations, and code examples to illustrate key topics. Data parallelism in C++ enables...
Programming Persistent Memory
Beginning and experienced programmers will use this comprehensive guide to persistent memory programming. You will understand how persistent memory brings together several new software/hardware requirements, and offers great promise for better performance and faster application startup times - a huge leap forward in byte-addressable capacity compar...
Programming for Computations - Python
This book presents computer programming as a key method for solving mathematical problems. This second edition of the well-received book has been extensively revised: All code is now written in Python version 3.6 (no longer version 2.7). In addition, the two first chapters of the previous edition have been extended and split up into five new chapte...