

The data in the file is fixed width data file. When it comes to splitting a text file into multiple files in Linux, most people use the split command.08MB/sec when the number of pieces is increased to 901. You can use the split command: split -l N /path-to-file. Each entry is a single line of text, and the entry type is a single word in a fixed place in that line.By default the PREFIX of files name is x and the default size of each split. Set “Header=”M圜ustom Header Line” Echo !Header!>!xxOutFile! Set /a xxRecCount-=1 Set /a cnt=1)) This code misses few records while writing to the output file.And the same 600MB file is split at only 4.


Split text file into multiple files by lines.
