拆分大文本文件


 

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