How to split huge .csv files to multiple .csv files based on size?
Mostrar comentarios más antiguos
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 comentarios
dpb
el 21 de Nov. de 2018
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
el 21 de Nov. de 2018
Walter Roberson
el 21 de Nov. de 2018
Editada: Walter Roberson
el 13 de Feb. de 2021
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
el 25 de Nov. de 2018
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Variables en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!