Re: Removing lines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux