Skip to Content
Minimal Perl
book

Minimal Perl

by Tim Maher
October 2006
Beginner
504 pages
12h 58m
English
Manning Publications
Content preview from Minimal Perl

Chapter 5. Perl as a (better) awk command

5.1

A brief history of AWK

122

5.2

Comparing basic features of awk and Perl

123

5.3

Processing fields

130

5.4

Programming with Patterns and Actions

138

5.5

Matching ranges of records

151

5.6

Using relational and arithmetic operators

157

5.7

Using built-in functions

159

5.8

Additional examples

165

5.9

Using the AWK-to-Perl translator: a2p

175

5.10

Summary

175

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 ...

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

Beginning Perl

Beginning Perl

Curtis Ovid Poe
Think Perl 6

Think Perl 6

Laurent Rosenfeld, Allen B. Downey
Perl by Example

Perl by Example

Ellie Quigley
Learning Perl 6

Learning Perl 6

brian d foy

Publisher Resources

ISBN: 9781932394504Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link