X-Authentication-Warning: central.caverock.co.nz: viking set sender to flying-brick.caverock.net.nz!viking using -f Date: Wed, 14 Oct 1998 15:24:59 +1300 (NZDT) From: Eric Gillespie To: opendos AT delorie DOT com Subject: Re: Sed script for stripping HTML In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: opendos AT delorie DOT com On Tue, 13 Oct 1998, Eric Gillespie wrote: .... sed script.... :] <--- close set :* <--- any number of chars of the preceding set Ooops, forgot to add the last pattern to match... > <--- to close the HTML comment. // <--- end pattern, and specify empty replace string g <--- do it right through the file... ' or " <--- depending on OS (Unix = ', DOS = ") finishes the command old.html original filename > <--- redirect (unless you want it all going to screen?) new.txt new filename :I haven't worked it out for removing stuff across lines yet (for removing :Javascript and Java...) ... after all, when Javascript is like script it would mean a multiline sed script Cheers again... /| _,.:*^*:., |\ Cheers from the Viking family, including Marmalade | |_/' viking@ `\_| | Running Linux and OpenDOS in Christchurch! | flying-brick | $FunnyMail Bilbo : Now far ahead the Road has gone, \_.caverock.net.nz_/ 5.39 in LOTR : Let others follow it who can!