extracting a chunk of text from a large text file
I have a very large text file. Over 47,000 lines.
I need approx 50 consecutive lines from it.
This chunk of lines
begins with the text "----BEGIN_SEGMENT----"
and
ends with the text "----END_SEGMENT----"
Can you help me with a bash script that will remove everthing
before the text "----BEGIN_SEGMENT----"
and
after the text "----END_SEGMENT----"
So that I can extract exactly what I need.
Thanks.
|