Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hey, I have a very long input file which

>id_1 some text... >id_1_2 some text..

I want to split every, bock of information along with > >id_1 some text... in the above format into a new file. Meaning there should be n new files for n > and i use ">" as pattern to split the file sections. for every ith > i want the name of the output file to be "id_name" from the first line of the file. Thanks for helping!

Replies are listed 'Best First'.
Re: splitting file into multiple files
by toolic (Bishop) on Mar 03, 2016 at 15:47 UTC
    • Read perlintro.
    • Write some code.
    • Post back here if you have specific questions about your code.
Re: splitting file into multiple files
by poj (Abbot) on Mar 03, 2016 at 16:41 UTC
Re: splitting file into multiple files
by neilwatson (Priest) on Mar 03, 2016 at 16:18 UTC