Awk Books

Master Awk Programming with Free Books

Awk Books

Awk is a versatile programming language designed for pattern scanning and processing language and often used as a data extraction and reporting tool. It’s a standard feature of most Unix-like operating systems.

awk is small, fast, simple, and has a clean comprehensible C-like input language. It has robust programming constructs including if/else, while, do/while and for C-style and array iteration.

The language is suited for:

  • Tallying information from text files and creating reports from the results
  • Adding additional functions to text editors like “vi”
  • Translating files from one format to another
  • Creating small databases
  • Performing mathematical operations on files of numeric data

We publish a series covering the best open source programming books for other popular languages. Read them here.

Effective awk Programming, 4th Edition

Effective awk Programming, 4th Edition

By Arnold Robbins (560 pages)

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.

This thoroughly revised edition 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 book is published under the terms of the GNU Free Documentation License.

Read the book here.

Awk Tutorial

Awk

By Bruce Barnett (HTML pages)

This tutorial discusses Awk, a cornerstone of UNIX shell programming.

Chapters cover:

  • Executing an Awk script
  • Which shell to use with Awk?
  • Dynamic Variables
  • Arithmetic Expressions
  • Summary of Awk Commands
  • Awk Built-in Variables: FS, OFS, NF, NR, RS, ORS, and FILENAME
  • Associative Arrays
  • Picture Perfect PRINTF Output
  • Flow Control with next and exit
  • Awk Numerical Functions
  • String Functions
  • User Defined Functions
  • Awk patterns
  • Formatting Awk programs

Readers are allowed to print copies of the tutorial for their personal use, but they are not allowed to make electronic copies, or redistribute the tutorial in any form without permission.

An Awk Primer

An Awk Primer

By Wikibooks (33 pages)

Chapters examine:

  • A Guided Tour of Awk
  • Awk Syntax
  • Awk Examples, NAWK and Awk Quick Reference
  • Resources and Licensing
  • Text and image sources, contributors, and licenses

PROGRAMMING LANGUAGE PROFILES

Ada, Assembly, Awk, Bash, C, C++, C#, Clojure, CoffeeScript, ECMAScript, Erlang, Forth, Fortran, Go, Haskell, HTML, Java, JavaScript, LaTeX, Lisp, Logo, Lua, OCaml, Pascal, Perl, PHP, Prolog, Python, R, Ruby, Rust, Scala, Scheme, Scratch, SQL, Swift, TeX, VimL

Click to rate this software
[Total: 0 Average: 0]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.