Monday, April 29, 2024
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 3138  / 2 Years ago, wed, november 24, 2021, 6:59:23

Is there an application or a command that could to split a csv (preserving the a table header) into smaller equal parts?



I'm trying to import a large 36mb file and the importer is going kaputz.



Here's an example of a windows application:
http://download.fyxm.net/CSV-Splitter-33994.html



I guess i could use wine to use this program but would prefer something native of ubuntu.


More From » software-recommendation

 Answers
7

You can use csvfix.



It's a command line tool for managing CSV files. The download page doesn't have any Linux binaries, but you can compile the source code from a makefile.



Here is a list of commands. In particular, the file_split command looks to be what you're after.



The manual for csvfix can be found here.


[#43730] Thursday, November 25, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lishrag

Total Points: 306
Total Questions: 109
Total Answers: 125

Location: Saint Lucia
Member since Wed, Feb 8, 2023
1 Year ago
;