SplitFile

splitfile is a command line utility to split a large textual file into smaller files.

splitfile.exe -file "c:\temp\bigfile.sql" -batch 5000
splitfile.exe -file "c:\temp\bigfile.sql" -outputpath "c:\temp\output" -batch 5000

-file
The file to split
-batch
The desired size (in lines) to export files, i.e. -batch 5000 will export files 5000 lines in length
-outputpath
(Optional) The directory path for output files. If this is not specified the files will be saved to the same directory as the input file

SplitFile will work on any file containing textual content, inclusive of multi-gigabyte text (.txt), delimited content (.tab, .csv, .dbf), sql (.sql), and so forth.

Download

splitfile.zip

splitfile-source-code.zip (Visual Studio 2015)

Digiprove sealCopyright secured by Digiprove © 2017