Re: need a sed expert

2001-11-30 Thread Thierry ITTY
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

Re: need a sed expert

2001-11-29 Thread Cameron Simpson
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'

Re: need a sed expert

2001-11-29 Thread Brad Cox
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

Re: need a sed expert

2001-11-29 Thread cgalpin
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

need a sed expert

2001-11-29 Thread Eric Wood
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.