Hi ,
I have a requirement as below.
My input file looks like below
line-1
line-2
line-3
$$$
line-4
line-5
$$$
line-6
line-7
line-8
line-9
$$$
line-10
line-11
line-12
$$$
I have to split this file into multiple files,
FIle-1
----------
line-1
line-2
line-3
FIle-2
----------
line-4
line-5
FIle-3
----------
line-6
line-7
line-8
line-9
FIle-4
----------
line-10
line-11
line-12
The input file can have many sets of records ( here it is 4 sets ) , it can be dynamic. The file has to be splitted by the delimiter '$$$' at the 1st 3 chars.
Please help me to get a solution for this.
Thanks
Ratheesh