tsv2csv command not found

In this troubleshooting guide we learn how to fix tsv2csv command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

tsv2csv: command not found

or when using sudo you get the following error message

sudo: tsv2csv: command not found

Solutions to tsv2csv: command not found

How To Fix tsv2csv: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu tsv2csv is provided by node-d3-dsv package.

node-d3-dsv is:

This module provides a parser and formatter for delimiter-separated values, most commonly comma-separated values (CSV) or tab-separated values (TSV).

These tabular formats are popular with spreadsheet programs such as Microsoft Excel, and are often more space-efficient than JSON.

Node.js is an event-based server-side JavaScript engine.

To fix this problem, we can install more using the command below.

sudo apt-get -y install node-d3-dsv

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install node-d3-dsv.

sudo apt -y install node-d3-dsv

Or if you have aptitude installed you can use the following command.

sudo aptitude install node-d3-dsv

Summary

In this tutorial we learn how to fix tsv2csv command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.