Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by msemtd (Scribe)
on Sep 13, 2002 at 08:22 UTC ( [id://197476]=note: print w/replies, xml ) Need Help??


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

Many Thanks to all who replied -- my solution to the CMD.exe problem was resolved with a WinNT batch file(!) to deal with the "*.html" argument...
@echo off :: aarunme.bat -- on an NT machine with ActiveState Perl, this fella :: will tidy up a mirror of the Slackware Book by exploding the inner +table for %%f in (*.html) do call :func1 %%f goto :EOF :func1 echo %1 perl -ni.bak -e "print if /Norman/ .. /\/BODY$/" %1 :: this line replaces the missing ">" for the closing body tag echo ^> >> %1
BTW: I really should have the 2nd regex on the closing HTML tag.
  • Comment on Re: Re: Re: Re: I'm looking for a one-liner filter 'twixt two regexes
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-26 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found