A 09:55 29/11/01 -0500, vous avez écrit :
>Got a large text file and I want to output a certain block of lines from
>within that text file that fall between two patterns:
>
>
>This is the stuff I want outputed
>
>
>$ somecommand -start "" -stop ""
>
>would output "This is the stuff I want outputed
On Thu, Nov 29, 2001 at 10:30:25AM -0500, Brad Cox <[EMAIL PROTECTED]> wrote:
| sed '//,<\/element>/p' should come pretty close. Not tested.
Wack a -n flag in (so that stuff isn't printed, except those triggering
the "p" above).
Alternatively:
sed -e '1,/^/d' -e '/^<\/element7>$/,$d'
sed '//,<\/element>/p' should come pretty close. Not tested.
Some assembly required.
On Thursday, November 29, 2001, at 09:58 AM,
<[EMAIL PROTECTED]> wrote:
> On Thu, 29 Nov 2001, Eric Wood wrote:
>
>> Got a large text file and I want to output a certain block of lines
>> from
>> within that
On Thu, 29 Nov 2001, Eric Wood wrote:
> Got a large text file and I want to output a certain block of lines from
> within that text file that fall between two patterns:
>
>
> This is the stuff I want outputed
>
>
> $ somecommand -start "" -stop ""
>
> would output "This is the stuff I want outp
Got a large text file and I want to output a certain block of lines from
within that text file that fall between two patterns:
This is the stuff I want outputed
$ somecommand -start "" -stop ""
would output "This is the stuff I want outputed". I figured some sed guru
had this thing handy.