From owner-freebsd-questions Fri Oct 8 0: 0:35 1999 Delivered-To: freebsd-questions@freebsd.org Received: from boom.calcasieu.com (boom.calcasieu.com [209.99.46.80]) by hub.freebsd.org (Postfix) with ESMTP id C07D214DC5 for ; Fri, 8 Oct 1999 00:00:31 -0700 (PDT) (envelope-from dread@calcasieu.com) Received: from coypu.bb.calcasieu.com (coypu.bb.calcasieu.com [192.168.3.21]) by boom.calcasieu.com (8.9.3/8.9.3) with ESMTP id BAA20820; Fri, 8 Oct 1999 01:58:07 -0500 (CDT) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <19991008052500.13893.rocketmail@web114.yahoomail.com> Date: Fri, 08 Oct 1999 01:58:07 -0500 (CDT) Organization: Calcasieu Lumber From: Don Read To: Johan Petersson Subject: RE: Removing unwanted text Cc: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 08-Oct-99 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. > awk '/start stuff/,/stop thingy/' Regards --- Don Read dread@calcasieu.com EDP Manager dread@texas.net Calcasieu Lumber Co. Austin TX -- Y2K is not a problem, W2K however ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message