Chapter 6. Perl as a (better) find command

6.1

Introducing hybrid find/perl programs

180

6.2

File testing capabilities of find vs. Perl

180

6.3

Finding files

184

6.4

Processing filename arguments

188

6.5

Using find | xargs vs. Perl alternatives

192

6.6

find as an argument pre-processor for Perl

197

6.7

A Unix-like, OS-portable find command

198

6.8

Summary

200

Scene: Church basement, Seattle, USA. Raining—as usual.

A burly, unshaven, heavily tattooed man is tugging at the sleeve of a woman, who is standing at a podium. She responds to the sleeve-tugger with annoyance.

“Yes Lefty, I know you’re upset that they’re not serving the tea biscuits on those lovely lace doilies anymore, but given our cash-flow situation—sorry, we’ll have to discuss this later.

Testing, testing, 1 ...

Get Minimal Perl 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.