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 reorder columns with csvkit?
- How to change the encoding in csvkit?
- How to convert a tsv file to csv with csvkit?
- How to remove duplicates with csvkit?
- How to update specific records using csvkit?
- How to use csvkit on Windows?
- How to select specific columns with csvkit?
- How to change the delimiter in csvkit?
- How to merge columns with csvkit?
See more codes...