BurntSushi / xsv

A fast CSV command line toolkit written in Rust.
The Unlicense
10.23k stars 317 forks source link

Escape square bracket in column header? #335

Open joeyhoer opened 6 months ago

joeyhoer commented 6 months ago

I have a CSV file that has a header column named "Metafield: customer_fields.your_family [json]". Is it possible to select this field by name? When I try to use:

xsv select "Metafield: customer_fields.data [json]" input.csv

I get the following error:

Could not convert 'json' to an integer: invalid digit found in string
BurntSushi commented 6 months ago

xsv select -h shows an example.