Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Oct 1999 01:58:07 -0500 (CDT)
From:      Don Read <dread@calcasieu.com>
To:        Johan Petersson <kjep@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   RE: Removing unwanted text
Message-ID:  <XFMail.991008015807.dread@calcasieu.com>
In-Reply-To: <19991008052500.13893.rocketmail@web114.yahoomail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.991008015807.dread>