Input file.txt:
Start of test case:test1
a
b
c
Date is feb 12
Start of test case:test2
m
n
o
Date is feb 13
Start of test case:test3
x
y
z
Date is feb 14
Desired output files
test1.txt:
Start of test case:test1
a
b
c
Date is feb 12
test2.txt :
Start of test case:test2
m
n
o
Date is feb 13
test3.txt:
Start of test case:test3
x
y
z
Date is feb 14