Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2016-07-28 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (252 votes). Check out past polls.