O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Introducing awk

If you want to format reports or extract chunks of data from large text files then awk will do the job. It is perfect for text scanning and manipulating data.

From my experience of all the shell filtering tools awk is the most difficult to master in its entirety. I do not know why, maybe it’s to do with its syntax, or its not very meaningful error messages. You’ll get to know the ‘ Bailing out ’ and ‘ awk: cmd. line: ’ error messages quite well as you progress through the awk language. That’s right, awk language: awk is a programming language all on its own. You may be wondering why I have included awk in a shell book. Good question, so here’s the good answer. Awk by itself may be a demon to learn, but using awk in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required