How to split a text file into multiple files using context lines. In this tutorial we discuss splitting files after a line with a matching string or after x number of lines.
Source: LXer – Splitting Files on Context Lines on the Linux Command Line with csplit