Can some one help me with shell script to extract a text block between two known strings.
The given input file is as below:
Name: abs
Some tesxt....
Some tesxt....
Some tesxt....
end of text
Name: xyz
Some tesxt....
Some tesxt....
Some tesxt....
end of text
Name: efg
Some tesxt....
Some tesxt....
Some tesxt....
end of text
output file should contain
Name: xyz
Some tesxt....
Some tesxt....
Some tesxt....
end of text
line1..
line2..
Name: abs
Some tesxt....
Some tesxt....
Some tesxt....
end of text
line1..
line2..
Name: xyz
Some tesxt....
Some tesxt....
Some tesxt....
end of text
line1..
line2..
Name: efg
Some tesxt....
Some tesxt....
Some tesxt....
end of text
how to get the output file as
line1..
line2..
Name: xyz
Some tesxt....
Some tesxt....
Some tesxt....
end of text