From mboxrd@z Thu Jan 1 00:00:00 1970 From: Doug Knight Subject: Re: Removing lines - Part II Date: Mon, 16 Apr 2007 13:36:15 -0800 Message-ID: <4623EC4F.1060605@uaf.edu> References: <462393CA.7040607@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="iso-8859-1" To: =?ISO-8859-1?Q?M=E1rio_Gamito?= Cc: linux-admin@vger.kernel.org M=E1rio, I'll try to save you some time here. The script below should do exactl= y what you asked for help with. However, as you can see, sed is a ``write only'' language. If you're going to be maintaining this code, = I would suggest rewriting it in something a bit more readable such as awk= , or perl. -------- START OF FILE -------- \|

Bourne Shell

| b remove : next P d : remove s|

Bourne Shell

.*

S=C3=A1b, 14 Abr 2007 12:31:07

|| t next N b remove -------- END OF FILE -------- If you want to fit the script on one line, replace the line feeds with = semicolons (``;''). Doug Knight P.S. I would advise against making a habit of using ``$'' or any other character that has special meanings in regular expressions as a substitution delimiter, unless you enjoy driving yourself crazy when th= ings don't work the way you expect them to. =46lorian Klien wrote: > On 16.04.2007, at 17:18, M=E1rio Gamito wrote: >> i do: >> # sed -e 's/

> href=3D"http://tuxvermelho.blogspot.com/2006/08/bourne-shell.html">B= ourne >> Shell

/