csvkitHow to convert a tsv file to csv 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 tsv file to csv with csvkit, use the in2csv
command.
Example code
in2csv my_tsv_file.tsv > my_csv_file.csv
Output example
my_csv_file.csv
The code consists of two parts:
-
in2csv
: This is the command used to convert a tsv file to csv. -
my_tsv_file.tsv > my_csv_file.csv
: This is the file path of the tsv file to be converted, followed by the file path of the csv file to be created.
Helpful links
More of Csvkit
- How to skip the first line with csvkit?
- How to fetch unique values with csvkit?
- How to merge columns with csvkit?
- How to update specific records using csvkit?
- How to convert a csv file to tab delimited with csvkit?
- How to select specific columns with csvkit?
- How to sort a csv file with csvkit?
- How to remove duplicates with csvkit?
- How to split a csv file with csvkit?
See more codes...