Closed verajosemanuel closed 3 years ago
As documented in xsv select -h
, you need to quote the field names. The -
character indicates a range of fields. For example:
$ xsv select '"customer-name","customer-id"' my.csv
customer-name,customer-id
foo,bar
Found solution here: https://github.com/BurntSushi/xsv/issues/251
I have a lot of csv to process with same header. My issue is that some column names are hyphen separated as here:
customer-name,customer-id,customer-account.....
I am unable to process it with XSV as all I get is:is there any way to force reading the header properly (not involving header rewriting) ?
Regards