You will find the answer at the seder grab bag

http://spazioinwind.libero.it/seders/

go to the tutorial and then the one liners. I think you want

sed -n '/start/,/end/p' 


on Thu, Nov 07, 2002 at 12:40:02PM +1100, Andrew Wilson <[EMAIL PROTECTED]> 
wrote:
> 
> Hi guys, 
> I hopefully have an easy sed question for the poor souls that have mastered
> sed.
> All i need is the sed command with paramaters that will pull out everyline
> between 2 points.
> 
> I,e : i want to capture all the text between the word "start" and the word
> "end" even if it spans numerous lines.
> 
> Thanks for your help guys ive had a bit of a study and couldnt come up with
> much.
> 
> 
> Regards 
> Andrew Wilson,
> 
> 
> Netway Networks Pty Ltd 
> (T) 8920 8877 
> (F) 8920 8866 
> 
> 
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to