AWK Language Programming - Table of Contents
AWK Language Programming
A User's Guide for GNU AWK
Edition 1.0
January 1996
Arnold D. Robbins Based on The GAWK Manual, by Robbins, Close, Rubin, and Stallman
- Preface
- 1. Introduction
- 2. Getting Started with
awk - 3. Useful One Line Programs
- 4. Regular Expressions
- 5. Reading Input Files
- 6. Printing Output
- 7. Expressions
- 7.1 Constant Expressions
- 7.2 Using Regular Expression Constants
- 7.3 Variables
- 7.4 Conversion of Strings and Numbers
- 7.5 Arithmetic Operators
- 7.6 String Concatenation
- 7.7 Assignment Expressions
- 7.8 Increment and Decrement Operators
- 7.9 True and False in
awk - 7.10 Variable Typing and Comparison Expressions
- 7.11 Boolean Expressions
- 7.12 Conditional Expressions
- 7.13 Function Calls
- 7.14 Operator Precedence (How Operators Nest)
- 8. Patterns and Actions
- 9. Control Statements in Actions
- 10. Built-in Variables
- 11. Arrays in
awk- 11.1 Introduction to Arrays
- 11.2 Referring to an Array Element
- 11.3 Assigning Array Elements
- 11.4 Basic Array Example
- 11.5 Scanning All Elements of an Array
- 11.6 The
deleteStatement - 11.7 Using Numbers to Subscript Arrays
- 11.8 Using Uninitialized Variables as Subscripts
- 11.9 Multi-dimensional Arrays
- 11.10 Scanning Multi-dimensional Arrays
- 12. Built-in Functions
- 13. User-defined Functions
- 14. Running
awk - 15. A Library of
awkFunctions- 15.1 Simulating
gawk-specific Features - 15.2 Implementing
nextfileas a Function - 15.3 Assertions
- 15.4 Translating Between Characters and Numbers
- 15.5 Merging an Array Into a String
- 15.6 Turning Dates Into Timestamps
- 15.7 Managing the Time of Day
- 15.8 Noting Data File Boundaries
- 15.9 Processing Command Line Options
- 15.10 Reading the User Database
- 15.11 Reading the Group Database
- 15.12 Naming Library Function Global Variables
- 15.1 Simulating
- 16. Practical
awkPrograms- 16.1 Re-inventing Wheels for Fun and Profit
- 16.2 A Grab Bag of
awkPrograms- 16.2.1 Finding Duplicated Words in a Document
- 16.2.2 An Alarm Clock Program
- 16.2.3 Transliterating Characters
- 16.2.4 Printing Mailing Labels
- 16.2.5 Generating Word Usage Counts
- 16.2.6 Removing Duplicates from Unsorted Text
- 16.2.7 Extracting Programs from Texinfo Source Files
- 16.2.8 A Simple Stream Editor
- 16.2.9 An Easy Way to Use Library Functions
- 17. The Evolution of the
awkLanguage - A.
gawkSummary - B. Installing
gawk- B.1 The
gawkDistribution - B.2 Compiling and Installing
gawkon Unix - B.3 How to Compile and Install
gawkon VMS - B.4 MS-DOS and OS/2 Installation and Compilation
- B.5 Installing
gawkon the Atari ST - B.6 Installing
gawkon an Amiga - B.7 Reporting Problems and Bugs
- B.8 Other Freely Available
awkImplementations
- B.1 The
- C. Implementation Notes
- D. Glossary
- GNU GENERAL PUBLIC LICENSE
- Index
This document was generated on 27 January 1999 using texi2html 1.55k.