csvclean

Finds and cleans common syntax errors in CSV files. Included in csvkit. More information: <https://csvkit.readthedocs.io/en/latest/scripts/csvclean.html>.

Install

All systems
curl cmd.cat/csvclean.sh
Debian Debian
apt-get install csvkit
Ubuntu
apt-get install csvkit
image/svg+xml Kali Linux
apt-get install csvkit
Fedora
dnf install python3-csvkit
Windows (WSL2)
sudo apt-get update sudo apt-get install csvkit
OS X
brew install csvkit
Raspbian
apt-get install python3-csvkit

Finds and cleans common syntax errors in CSV files. Included in csvkit. More information: <https://csvkit.readthedocs.io/en/latest/scripts/csvclean.html>.

  • Clean a CSV file:
    csvclean bad.csv
  • List locations of syntax errors in a CSV file:
    csvclean -n bad.csv

© tl;dr; authors and contributors