On Thu, Nov 07, 2002 at 12:40:02PM +1100, Andrew Wilson wrote: > I,e : i want to capture all the text between the word "start" and the word > "end" even if it spans numerous lines.
Here ya go
$ cat t
dog
cat
start
flower
nice
end
cows that go bing
$
$ sed -n '/start/,/end/p' < t
start
flower
nice
end
$
Matt
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
