csvkitHow to convert a csv file to tab delimited with csvkit?
csvkit is a suite of command-line tools for converting to and working with CSV, the king of tabular file formats. To convert a csv file to tab delimited with csvkit, the csvformat command can be used.
Example code
csvformat -t input.csv > output.tsv
Output example
column1 column2 column3
value1 value2 value3
Code explanation
csvformat: the command used to convert a csv file to tab delimited-t: the flag used to specify the output delimiter as tabinput.csv: the input csv fileoutput.tsv: the output tab delimited file
Helpful links
More of Csvkit
- How to fetch unique values with csvkit?
- How to split a csv file with csvkit?
- How to remove duplicates with csvkit?
- How to merge columns with csvkit?
- How to skip the first line with csvkit?
- How to install csvkit on a Mac?
- How to rename a column with csvkit?
- How to update specific records using csvkit?
- How to remove columns with csvkit?
- How to reorder columns with csvkit?
See more codes...