Removing lines

Hi,

I have this site that auto generates an index.html file every 15 minute=
s
(it's a blog aggregator).

I need that every time the file is generated, all the contents between
the lines
<h4 class=3D"post-title"><a
href=3D"http://domain.com/2006/08/bourne-shell.html">Bourne Shell</a></=
h4>

and

<p><a href=3D"http://domain.com/2006/08/bourne-shell.html">S=C3=A1b, 1=
4 Abr
2007 12:31:07</a></p>

to be deleted (including these two ones).

I've tried several ways and googled but i can't do the trick.

Any help would be appreciated.

Warm Regards
--
:wq! M=E1rio Gamito


--
:wq! M=E1rio Gamito
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
gamito [ So, 15 April 2007 21:06 ] [ ID #1688016 ]

Re: Removing lines

M=E1rio Gamito wrote:
> Hi,
>
> I have this site that auto generates an index.html file every 15 min=
utes
> (it's a blog aggregator).
>
> I need that every time the file is generated, all the contents betwe=
en
> the lines
> <h4 class=3D"post-title"><a
> href=3D"http://domain.com/2006/08/bourne-shell.html">Bourne Shell</a=
></h4>
>
> and
>
> <p><a href=3D"http://domain.com/2006/08/bourne-shell.html">S=C3=A1b=
, 14 Abr
> 2007 12:31:07</a></p>
>
> to be deleted (including these two ones).
>
> I've tried several ways and googled but i can't do the trick.
>
> Any help would be appreciated.
>
> Warm Regards

sed is your friend here. Plenty of tutorials on the web.

--Adrian.



-
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Adrian Calinescu [ So, 15 April 2007 22:16 ] [ ID #1688017 ]
Linux » gmane.linux.admin » Removing lines

Vorheriges Thema: Selecting per process flags
Nächstes Thema: Monitoring traffic per user