read from a specific pattern from one file and append it to another

Hi! Everyone,

Say this file1
--------------
line 1 51610183 420001010 0010CTCTLEDPPOO 2151610183
line 2 2151610183 420001010 0030A2TH2
line 3 2151610183 420001010 0040A2TH3
line 4 2151610183 420001010 0050A2TH4
line 5 2151610183 420001010 0060A1TD1
line 6 51610183 420001013 0010CTCTLEDPPOO 2151610183
line 7 51610183 420001013 0020A1TH1
line 8 51610183 420001013 0030A2TH2
line 9 51610183 420001013 0040A2TH3
line 10 51610183 420001013 0050A2TH4
line 11 51610183 420001013 0060A1TD1
line 12 51610183 420001013 0070A2TD2
line 13 2195410283 420001354 0010CTCTLEDPPOO 2954610183
line 14 2195410283 420001354 0020A1TH1
line 15 2195410283 420001354 0030A2TH2
line 16 2195410283 420001354 0040A2TH3
line 17 2195410283 420001354 0050A2TH4
line 18 2195410283 420001354 0060A1TD1
line 19 2195410283 420001354 0070A2TD2
line nn nnnnnnnnnn nnnnnnnnn nnnnnnnnn

I want to search in the file1 for the string '0010CTCTLEDPPOO'.
When found at line number 1, I want to append all the lines strting from line1 to the line just before the next apparance of
the string(in this example line6) to file2.
Once appendng from line 1 to line 5 is done, I want to come back to file1 again search for the next appearance for sting '0010CTCTLEDPPOO'
(in this example it is line 6) and then start appending the file2 again from line6 to line just before the next apparance of the string
'0010CTCTLEDPPOO'.(in the example it is line 13)
Likewise want to continue for the whole file1 irrespective of size.
I am facing a rare challange while writing a unix script for it.

Thanks in advance.

Regards,
Kinkar Ghosh