[PYTHON] How to convert csv to tsv in CLI

Install csvkit in an environment where Python can be used.

brew install csvkit
# or
pip install csvkit

The command csvformat can be used, so execute it as follows.

csvformat -T input.csv > output.tsv

Recommended Posts

How to convert csv to tsv in CLI
How to convert 0.5 to 1056964608 in one shot
[Python] How to convert db file to csv
How to convert DateTimeField format in Django
How to read CSV files in Pandas
Convert UTF-8 CSV files to read in Excel
How to convert / restore a string with [] in python
How to convert floating point numbers to binary numbers in Python
How to convert JSON file to CSV file with Python Pandas
How to make an interactive CLI tool in Golang
Convert SDF to CSV quickly
How to convert Json file to CSV format or EXCEL format
How to develop in Python
How to read csv containing only integers in Python
How to log in automatically like 1Password from the CLI
Batch convert all xlsx files in the folder to CSV files
[Python] How to do PCA in Python
How to handle session in SQLAlchemy
Convert markdown to PDF in Python
How to use classes in Theano
How to write soberly in pandas
How to collect images in Python
How to update Spyder in Anaconda
How to use SQLite in Python
How to reflect CSS in Django
How to kill processes in bulk
How to use Mysql in python
How to convert Tensorflow model to Lite
How to wrap C in Python
How to use ChemSpider in Python
How to use PubChem in Python
How to convert from .mgz to .nii.gz
How to run TensorFlow 1.0 code in 2.0
How to handle Japanese in Python
How to log in to Docker + NGINX
How to call PyTorch in Julia
How to import CSV and TSV files into SQLite with Python
How to combine all CSVs in a folder into one CSV
How to use calculated columns in CASTable
[Introduction to Python] How to use class in Python?
How to suppress display error in matplotlib
How to access environment variables in Python
How to easily convert format from Markdown
How to dynamically define variables in Python
How to do R chartr () in Python
[Python] How to convert a 2D list to a 1D list
How to convert Python to an exe file
[Python] Convert csv file delimiters to tab delimiters
How to delete expired sessions in Django
Convert from PDF to CSV with pdfplumber
[Itertools.permutations] How to put permutations in Python
How to use Google Test in C
Convert psd file to png in Python
How to implement nested serializer in drf-flex-fields
How to work with BigQuery in Python
How to execute commands in jupyter notebook
How to do'git fetch --tags' in GitPython
How to get a stacktrace in python
How to display multiplication table in python
How to extract polygon area in Python
How to reassign index in pandas dataframe