The AWK Manual
Diane Barlow Close
Arnold D. Robbins
Paul H. Rubin
Piet van Oostrum
This file documents
awk, a program that you can use to select
particular records in a file and perform operations upon them.
This is Edition 1.0 of The AWK Manual,
for the new implementation of AWK (sometimes called nawk).
Notice: This work is derived from the original
Adaptions for NAWK made by Piet van Oostrum, Dec. 1995, July 1998.
- Preface: What you can do with
awk; brief history
- This Manual: Using this manual.
Includes sample input files that you can use.
- Getting Started: A basic introduction to using
How to run an
Command line syntax.
- Reading Files: How to read files and manipulate fields.
- Printing: How to print using
awk. Describes the
Also describes redirection of output.
- One-liners: Short, sample
- Patterns: The various types of patterns
explained in detail.
- Actions: The various types of actions are
introduced here. Describes
expressions and the various operators in
detail. Also describes comparison expressions.
- Expressions: Expressions are the basic building
blocks of statements.
- Statements: The various control statements are
described in detail.
- Arrays: The description and use of arrays.
Also includes array-oriented control
- Built-in: The built-in functions are summarized here.
- User-defined: User-defined functions are described in detail.
- Built-in Variables: Built-in Variables
- Command Line: How to run
- Awk Summary
- Sample Program: A sample
awk program with a
- Glossary: An explanation of some unfamiliar terms.
This document was generated on 17 July 1998 using the
translator version 1.51a.