Chapter 12. The gawk
Pattern Processing Language
IN THIS CHAPTER
getline: Controlling Input 554
Coprocess: Two-Way I/O 557
Getting Input from a Network 558
The gawk
(GNU awk
) utility is a pattern-scanning and processing language that searches one or more files to see whether they contain records (usually lines) that match specified patterns. It processes lines by performing actions, such as writing the record to standard output or incrementing a counter, each time it finds a match. As opposed to procedural languages, the gawk
language is data driven: You describe the data you want to work with ...
Get A Practical Guide to Linux® Commands, Editors, and Shell Programming 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.