I'm trying to parse an sql file using sed. I need to extract the content located between a group of lines (field1 to field 3) based on the example below. Here is an example
Create table xyz
(
field1 varchar(255),
field2 varchar(255),
field3 int
);
Create table 123
(
fieldx varchar(255),
fieldy varchar(255),
fieldz int
);
How can I extract the field lines that belong to the xyz table only using sed?
Thank you