I've a text file with many lines where are many messages beginning with XX and ending with bracket ")" (each one)
I'd like to split it so each message is saved to separate file (e.g. file names with increasing number)
so file1 will have:
XX sfjsklf
sfsfsfsf
(sdfsdfsf
sfsfsf
gfdfgdgdghdh)
file2:
XX 902wriwirj
sdfs
sdfsf
(sdfsdfs
sfsf)
etc.
I'd like to split it so each message is saved to separate file (e.g. file names with increasing number)
so file1 will have:
XX sfjsklf
sfsfsfsf
(sdfsdfsf
sfsfsf
gfdfgdgdghdh)
file2:
XX 902wriwirj
sdfs
sdfsf
(sdfsdfs
sfsf)
etc.