Page 1 of 1

Split 1 file into n files

PostPosted: Thu Oct 14, 2010 1:52 pm
by jkkarthik
Hi all,

I have the FB file which has n number of records. Each record has the header and footer.

If i have 10 records, I need to write 2 records each to the 5 files.

if i have 9 records, I need to write 2 records each to 4 files and 1 record to the fifth file.

Please help me.

Re: Split 1 file into n files

PostPosted: Thu Oct 14, 2010 2:41 pm
by NicC
Google 'dfsort tricks' and read the PDF for the first item. You will find a section on splitting files.

Re: Split 1 file into n files

PostPosted: Thu Oct 14, 2010 4:02 pm
by jkkarthik
Thanks Nic... the document is really helpful for me.