Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: grepp -- Perl version of grep

by Akhasha (Scribe)
on Dec 31, 2004 at 07:56 UTC ( #418486=note: print w/ replies, xml ) Need Help??


in reply to grepp -- Perl version of grep

This could prove useful - at least save me some typing. I fairly often resort to piping files through something like:
perl -ne '/regex/ && print'
or
perl -ne '/regex/ && $c++; END { print "$c\n"; }'
Thanks!


Comment on Re: grepp -- Perl version of grep
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-09-17 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (57 votes), past polls