Skip to content

dorianmariecom/dorian-csv-uniq

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors