Chapter 6. The awk
Utility
What's awk
? What's nawk
? What's gawk
?
Awk
is a UNIX programming language used for manipulating data and generating reports. Nawk
is a newer version of awk
, and gawk
is the GNU version used on Linux.
The data may come from standard input, one or more files, or as output from a process. Awk
can be used at the command line for simple operations, or it can be written into programs for larger applications. Because awk
can manipulate data, it is an indispensable tool used in shell scripts and for managing small databases.
Awk
scans a file (or input) line by line, from the first to the last line, searching for lines that match a ...
Get UNIX® Shells by Example Fourth 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.