Table of Contents
Newsgroups: comp.unix.shell Date: Thu, 12 Oct 2006 07:39:52 -0500
> Is there any pattern matching command in linux so that I can extract > couple of line based on starting and end delimeter. > > Eg: > I want to extract the 2 lines based on the starting delemeter '(' and > ending delemeter ')' .
sed -n '/(/,/)/p' file
awk '/\(/,/\)/' file
Ed Morton