Skip to Content
The AWK Programming Language, 2nd Edition
book

The AWK Programming Language, 2nd Edition

by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger
September 2023
Intermediate to advanced
240 pages
7h 40m
English
Addison-Wesley Professional
Content preview from The AWK Programming Language, 2nd Edition

1

An Awk Tutorial

Awk is a convenient and expressive programming language that can be applied to a wide variety of computing and data-manipulation tasks. This chapter is a tutorial, designed to let you start writing your own programs as quickly as possible. The remaining chapters show how Awk can be used to solve problems from many different areas; the reference manual in Appendix A describes the whole language in detail. Throughout the book, we have tried to pick examples that you might find useful, interesting, and instructive.

1.1 Getting Started

Useful Awk programs are often short, just a line or two. Suppose you have a file called emp.data that contains three fields of information about your employees: name, pay rate in dollars per hour, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C Programming Language, 2nd Edition

C Programming Language, 2nd Edition

Brian W. Kernighan, Dennis Ritchie
Learning Modern Linux

Learning Modern Linux

Michael Hausenblas

Publisher Resources

ISBN: 9780138269876