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 convert a tsv file to csv with csvkit?
- How to fetch unique values with csvkit?
- How to select specific columns with csvkit?
- How to merge columns with csvkit?
- How to install csvkit on a Mac?
- How to merge multiple files with csvkit?
- How to convert JSON to CSV using csvkit?
- How to remove columns with csvkit?
- How to use csvkit on Windows?
- How to convert a json file to csv with csvkit?
See more codes...