Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Perl as grep

by gjb (Vicar)
on Dec 02, 2003 at 15:22 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://311642]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found