From owner-freebsd-questions Thu Oct 7 22:33:21 1999 Delivered-To: freebsd-questions@freebsd.org Received: from deepblue.big-blue.net (deepblue.big-blue.net [208.237.121.168]) by hub.freebsd.org (Postfix) with ESMTP id 73B46153FD for ; Thu, 7 Oct 1999 22:33:16 -0700 (PDT) (envelope-from alex@big-blue.net) Received: from big-blue.net (localhost.big-blue.net [127.0.0.1]) by deepblue.big-blue.net (8.9.3/8.9.3) with ESMTP id BAA04750; Fri, 8 Oct 1999 01:30:05 -0400 (EDT) (envelope-from alex@big-blue.net) Message-ID: <37FD815D.D557313E@big-blue.net> Date: Fri, 08 Oct 1999 01:30:05 -0400 From: Alex V P X-Mailer: Mozilla 4.61 [en] (X11; I; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Johan Petersson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Removing unwanted text References: <19991008052500.13893.rocketmail@web114.yahoomail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Johan Petersson wrote: > Hi everyone, > > I am trying to create a filter that removes (or > filters out) part of a text. The idea would be > something like this: > > lynx -dump URL | (filter goes here) > textfile > > The part of the downloaded text that I want to keep > always begins and ends with the same phrases (though > the starting and ending phrases are not the same), > and I want to keep all the lines in between but not > those before and after. I've tried to work a bit with > grep and diff, but I couldn't get i working. > > Does anyone have any ideas how to do this? > > Best regards > Johan > > ===== > > __________________________________________________ > Do You Yahoo!? > Bid and sell for free at http://auctions.yahoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message use perl ;-) can u send example of the file and what needs to stay? ;-) alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message