拆分大文本文件


 

使用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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM