Chapter 5. Perl as a (better) awk command
A brief history of AWK | ||
Comparing basic features of | ||
Processing fields | ||
Programming with Patterns and Actions | ||
Matching ranges of records | ||
Using relational and arithmetic operators | ||
Using built-in functions | ||
Additional examples | ||
Using the AWK-to-Perl translator: | ||
Summary |
The awk
command is surely one of the most useful in the Unix toolkit. It’s even more important than grep
and sed
, because it can do everything they can do and more. That’s to be expected, because unlike those commands, awk
implements a general-purpose programming language (called AWK), which can handle many types of data-processing tasks.
This is why a Unix “power user” who’s asked ...
Get Minimal Perl: For UNIX and Linux People now with the O’Reilly learning platform.
O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.