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

Re: I'm looking for a one-liner filter 'twixt two regexes

by msemtd (Scribe)
on Sep 05, 2002 at 11:31 UTC ( [id://195337]=note: print w/replies, xml ) Need Help??


in reply to I'm looking for a one-liner filter 'twixt two regexes

Um, I have tried this fella...
perl -pi.bak -e "/end_reg/ && print && last; /start_reg/ && $inside++; + next unless inside;" *.html
but it doesn't output anything! Any ideas?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 06:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found