I have a file with the contents of;
Section A
fsfs
ss
gsgs
End A
Section B
ds
ssf
End B
etc. etc.
I want to generate a file for each section, so a file called "A" and "B" etc. In each file, the text for that section. The number of lines between section start and end are variable.
Any easy way to do this?
Section A
fsfs
ss
gsgs
End A
Section B
ds
ssf
End B
etc. etc.
I want to generate a file for each section, so a file called "A" and "B" etc. In each file, the text for that section. The number of lines between section start and end are variable.
Any easy way to do this?