Re: sed and html
- From: levislevis85@xxxxxxxxxxxxxx
- Date: Sat, 28 Mar 2009 00:07:26 -0700 (PDT)
On Mar 24, 3:48 am, "Greg Russell" <m...@xxxxxxxxxxx> wrote:
Greetings,
I'm needing to parse some html in order to extract specific groups of
information. My goal is to replace some specific tag groupings with "@"
using sed, then extract the desired fields using awk.
My problem comes when, for instance:
s|<span id=.*style="color:#f00;">|@|g
but I only want to make the substitution for the range of those characters
on each line in the file. The substitution above works on the entire range
of characters across multiple newlines in the entire file, which omits much
of the desired information.
Is there a way to modify the above expression please, so that only the first
group of those characters on each line are replaced?
it would be better if you provide some example html
.
- References:
- sed and html
- From: Greg Russell
- sed and html
- Prev by Date: Re: Check output of grep
- Next by Date: Re: unix pipe command
- Previous by thread: Re: sed and html
- Next by thread: >>> NAME MEANINGS <<<__________________________________________
- Index(es):
Relevant Pages
|