how can i split a very large file into many small files on the basis of some pattern in a line of a file using perl.
Ex. file:
CONECT 592 593 594
CONECT 595 596 597
CONECT 597 598
END
CONECT 591 593 594
CONECT 595 596 596
CONECT 597 598
END
CONECT 592 593 594
CONECT 594 596 598
CONECT 597 598
END
i have to make many seprate files fron the a single file. Output files start line should be ‘CONECT‘ & end line should be ‘END‘. it is a large file (1gb)
Hope this will help you