csvkitHow to merge multiple files with csvkit?
csvkit is a suite of command-line tools for working with CSV, the most popular being csvstack. csvstack can be used to merge multiple CSV files into a single file.
Example code
csvstack file1.csv file2.csv file3.csv > merged.csv
Output example
Merged file saved as merged.csv
Code explanation
csvstack: the command used to merge multiple CSV filesfile1.csv,file2.csv,file3.csv: the files to be merged>: the output operator, used to save the merged file asmerged.csv
Helpful links
More of Csvkit
- How to rename a column with csvkit?
- How to use csvkit on Windows?
- How to convert a tsv file to csv with csvkit?
- How to reorder columns with csvkit?
- How to install csvkit on Debian?
- How to install csvkit on Archlinux?
- How to sort a csv file with csvkit?
- How to merge columns with csvkit?
- How to install csvkit on a Mac?
- How to split a csv file with csvkit?
See more codes...