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 split a csv file with csvkit?
- How to remove header with csvkit?
- How to extract a column from a CSV file using csvkit?
- How to remove columns with csvkit?
- How to sort a csv file with csvkit?
- How to remove duplicates with csvkit?
See more codes...