0.0
The project is in a healthy, maintained state
returns a csv by unique keys, can be index or name
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

 Project Readme

dorian-csv-uniq

Deduplicate CSV rows, optionally by selected keys.

Install

gem install dorian-csv-uniq

Also included in the aggregate gem:

gem install dorian

Usage

csv-uniq [options] [key ...] [file ...]

Run csv-uniq -h for generated option details and csv-uniq -v for the installed version.

Notes

  • Without keys it deduplicates whole rows. With --headers, keys can be header names.

Examples

Deduplicate rows

printf 'a,1\nb,2\na,1\n' | csv-uniq

Deduplicate by a header

csv-uniq --headers -p key input.csv