使用git-bash
Use the split
command in Git Bash to split a file:
-
into files of size 500MB each:
split myLargeFile.txt -b 500m
-
into files with 10000 lines each:
split myLargeFile.txt -l 10000
//*******三万行一个文件,以数字结尾 file.txt01 file.txt02 file.txt03 ....................
split file.txt -l 3000 file.txt -d
//******保留后缀 file01.sql file02.sql
split file.sql -l 30000 -d file --additional-suffix=.sql
https://stackoverflow.com/questions/31786287/how-to-split-large-text-file-in-windows