linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Removing lines
@ 2007-04-15 19:06 Mário Gamito
  2007-04-15 20:16 ` Adrian Calinescu
  0 siblings, 1 reply; 2+ messages in thread
From: Mário Gamito @ 2007-04-15 19:06 UTC (permalink / raw)
  To: linux-admin

Hi,

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

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

and

 <p><a href="http://domain.com/2006/08/bourne-shell.html">Sáb, 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
-- 
:wq! Mário Gamito


-- 
:wq! Mário Gamito
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Removing lines
  2007-04-15 19:06 Removing lines Mário Gamito
@ 2007-04-15 20:16 ` Adrian Calinescu
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Calinescu @ 2007-04-15 20:16 UTC (permalink / raw)
  To: linux-admin

Mário Gamito wrote:
 > Hi,
 >
 > I have this site that auto generates an index.html file every 15 minutes
 > (it's a blog aggregator).
 >
 > I need that every time the file is generated, all the contents between
 > the lines
 > <h4 class="post-title"><a
 > href="http://domain.com/2006/08/bourne-shell.html">Bourne Shell</a></h4>
 >
 > and
 >
 >  <p><a href="http://domain.com/2006/08/bourne-shell.html">Sáb, 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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-15 20:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-15 19:06 Removing lines Mário Gamito
2007-04-15 20:16 ` Adrian Calinescu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).