Closed stas-malavin closed 11 months ago
Added a new flag -P/--prefix-duplicates
, but it needs to be used along with --prefix-filename`.
$ csvtk join --prefix-filename --prefix-duplicates\
<(echo -e 'name,attr,tool\nStas,stubborn,tube\nShenwei,smart,computer') \
<(echo -e 'name,attr,food\nStas,microbiologist,sandwich\nShenwei,computer scientist,noodles') | \
csvtk pretty
name attr tool 62-attr food
------- -------- -------- ------------------ --------
Stas stubborn tube microbiologist sandwich
Shenwei smart computer computer scientist noodles
You're blasting-fast, thank you! :)
It works, confirm
Prerequisites
csvtk version
Describe your issue
I would like to have the possibility to prefix only duplicated column names. The second and third examples below showcase the desired effect of the imaginary
--prefix-duplicates
flag.It may also be a default behavior. Thank you!