Split a file by section
How would I go about splitting a file by section?
Imagine the file looks like this:
Lots of text 1
Lots of text 2
[HEY, SPLIT HERE]
Lots of text 3
lots of text 4
[HEY, SPLIT HERE]
I want to use a command that would split this file, but look for the text "[HEY, SPLIT HERE]" to get the split points.
Any thoughts?
|