Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Useful addition to Perl?

by vladb (Vicar)
on Mar 04, 2004 at 22:05 UTC ( #334052=note: print w/ replies, xml ) Need Help??


in reply to Useful addition to Perl?

This may not always work for large number of files or huge directory trees, but I often use something like

perl -ne 'print if _____' `find .`
Or if you have a specific directory in mind
perl -ne 'print if _____' `find mydirectory`


_____________________
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce
the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true."

Robert Wilensky, University of California


Comment on Re: Useful addition to Perl?
Select or Download Code
Replies are listed 'Best First'.
Re: Re: Useful addition to Perl?
by tsee (Curate) on Mar 05, 2004 at 11:10 UTC
    Unfortunately, that's not portable.

      it's more portable than you think; see perl power tools

      ~Particle *accelerates*

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://334052]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2015-07-29 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls