How to split huge .csv files to multiple .csv files based on size?
이전 댓글 표시
I am trying to split huge .csv files (11 GB) that has both combination of text and numbers into mutiple files based on size (0.5 GB each). I tried using some of the answers in the matlab community but no luck
I hope someone can help!
댓글 수: 4
dpb
2018년 11월 21일
Shoulda' never created that large and unwieldy a text file to begin with... But you now know that, already... :)
Can you guesstimate how many lines are in the files at present? I'd probably just write a filter and copy N lines to a new file in a loop to determine that answer, then just put that in a nested loop until you run out of lines in the original. Lather, rinse, repeat...
Anjan
2018년 11월 21일
Walter Roberson
2018년 11월 21일
편집: Walter Roberson
2021년 2월 13일
Which OS? The easiest way to do this is with the unix split command , quite easy . For Windows I would look at https://www.gdgsoft.com/gsplit/
Anjan
2018년 11월 25일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Variables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!