Most Popular Books

Getting Started with Awk

  • Author: Wikibooks, the open-content textbooks collection
  • Format: HTML
  • Price: free

This reference is written for a semi-knowledgable UNIX user who has just come up against a problem and has been advised to use awk to solve it. Perhaps one of the examples can be quickly modified for immediate use.

The book is a work in progress, and there may be incomplete or missing chapters.

Chapters include:

  • Getting started with awk
  • Preface
  • Which version
  • For More Info
  • References
  • Introduction
  • Some basics
  • Some Samples
  • Using regular expressions
  • Booleans
  • Start and End
  • Begin and End
  • Awk variables
  • Awk Arrays
  • Punctuation guide
  • And now for a grand example:

http://en.wikibooks.org/wiki/AWK

An Awk Primer

  • Author: Wikibooks, the open-content textbooks collection
  • Format: HTML
  • Price: free

Awk has two faces: it is a utility for performing simple text-processing tasks, and it is a programming language for performing complex text-processing tasks. Awk is useful for simple, quick-and-dirty computational programming. Anybody who can write a BASIC program can use Awk, although Awk’s syntax is different from that of BASIC. Anybody who can write a C program can use Awk with little difficulty, and those who would like to learn C may find Awk a useful stepping stone, with the caution that Awk and C have significant differences beyond their many similarities.

The book is a work in progress, and there may be incomplete or missing chapters.

Chapters include:

  • Awk Overview
  • Awk Command-Line Examples
  • Awk Program Example
  • Awk Invocation and Operation
  • Search Patterns (1)
  • Search Patterns (2)
  • Numbers and Strings
  • Variables
  • Arrays
  • Operations
  • Standard Functions
  • Control Structures
  • Output with print and printf
  • A Digression: The sprintf Function
  • Output Redirection and Pipes
  • Using Awk from the Command Line
  • Awk Program Files
  • A Note on Awk in Shell Scripts
  • Nawk
  • Awk Quick Reference Guide

http://en.wikibooks.org/wiki/An_Awk_Primer