Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Perl as grep

by gjb (Vicar)
on Dec 02, 2003 at 15:22 UTC ( #311642=note: print w/replies, xml ) Need Help??


in reply to Perl as grep

The -p argument doesn't take an argument and prints any line read. What you want is:

perl -n -e "print if /regex/" *.*

Hope this helps, -gjb-

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://311642]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2017-01-19 11:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.