Page 1 of 1

How to Divide a text file in multiple files

Posted: 05 Nov 2013 01:04
by Niraj
Hi,
Want to divide a text file in to multiple files through batch script.

Example:

Input file : Big_file_name_1.txt

Output file : Small_file_name_1.txt
Small_file_name_2.txt

Regards,
Niraj

Re: How to Divide a text file in multiple files

Posted: 05 Nov 2013 02:36
by foxidrive
More information is needed.

What size is the big file?
What is the splitting keyed on - number of lines?
What filename scheme do you want?
Are there blank lines in the file? Do you need to preserve blank lines?
Does every line start with an alpha-numeric character?