paulfitz / daff

align and compare tables
https://paulfitz.github.io/daff
MIT License
790 stars 68 forks source link

daff on same file and highlight #185

Open gk7279 opened 1 year ago

gk7279 commented 1 year ago

Hi-

Let's say I only have 1 file.

cat ip.csv

name,age,height,id,sex abc,12,6,7,m abc,13,6,7,m def,13,7,8,f ghi,15,6,7,m

cat op.csv

name,age,height,id,sex abc,12,6,7,m abc, $\color{red}{13}$ ,6,7,m def,13,7,8,f ghi,15,6,7,m

The logic is to use the "name" column as the key and see if we can match all the other columns against the duplicate record.