I need to filter the text in between two patterns and output that to a different file. Please help me how to do it.
Ex:
.............
<some random text>
.............
Pattern_1
<Few lines that need to be output to different file>
Pattern_2
................
...............
<more text in the file>
..............
I want to be able to Find Pattern_1, then output the next few lines until I find Pattern_2. Let me know if my request is clear or needs detailed explanation.