aswinkarthik / csvdiff

A fast diff tool for comparing csv files
https://aswinkarthik.github.io/csvdiff/
MIT License
532 stars 57 forks source link

Option to ignore only some columns #23

Closed koterpillar closed 5 years ago

koterpillar commented 5 years ago

I would like to compare a 50-column CSV file and I want to ignore the differences in a few columns only. Instead of specifying --columns 0,1,2,3,4..32,34..41,43..50 it would be nice to say --ignore-columns 33,42.

This is not the same as #20 which only controls the display of the columns.

aswinkarthik commented 5 years ago

I think we can add --ignore-columns as a flag. Either of --columns or --ignore-columns can be supplied at any given point in time.

koterpillar commented 5 years ago

Flag typically refers to a boolean option that doesn't take arguments (e.g. -f for rm), but I'm fine with an --ignore-columns option.

xbeta commented 5 years ago

👍

HarrisonMc555 commented 5 years ago

Is anyone working on this? I can take a shot at it if nobody is currently working on it. I'm not super experienced at Go, but I think I could manage this.

aswinkarthik commented 5 years ago

Sure go ahead. PRs are welcome!

Just reiterating what i said here

Only one of --columns or --ignore-columns can be specified at a given time.