Summary

This chapter introduced awk programming. awk is one of the most powerful text-filtering tools available in UNIX. By using awk, it is possible to modify and transform text in ways that are difficult or impossible using only the shell.

Some of the important topics covered in this chapter include:

  • Field editing

  • Pattern specific actions

  • Using STDIN as input

  • Variables

  • Numeric and assignment expressions

  • Using flow control

In addition to these topics, awk offers features such as multiple–line editing, arrays, and functions. If you are interested in learning more about these topics, consult one of the following sources:

Get Sams Teach Yourself Shell Programming in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.