Could anyone help me splitting a big file into subfiles. The file is something similar to this:
1.SYSTEM = UNIX
2.variable = value
3.>ACTIVATED 1
4.ALL: FILE1
5.ALL:FILE2
6.ALL:FILE3
7.ALL:FILE4
8.>ACTIVATED 1
9. ################*
10.>>CONDITIONS
11.################
12.MODEL:
13.<one ExeSimpleName> : <one or more Flags> : [Options]
I need to split this file into many files such that first file has only one ALL:FILE1 and second has ALL:FILE2 and third has only ALL: FILE3 and fourth ALL:FILE4
The remaining contents should be the same. Can anyone please give me an idea of doing it in perl...
Immediate help would be appreciated as I am struggling with this from few days.
Thanks
Hari.