BurntSushi / xsv

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

set delimiter config before parsed by xsv #346

Closed erlangparasu closed 1 month ago

erlangparasu commented 1 month ago

i have csv file with "|" delimited data. xsv just detect it only has 1 field.

file: example1.csv

h1|h2|h3
hello|world|!

xsv headers example1.csv only return 1 field

erlangparasu commented 1 month ago

may relate:

erlangparasu commented 1 month ago

should it called .psv (Pipe Separated Values) ?

erlangparasu commented 1 month ago

Solved

xsv headers --help

xsv headers -d "|" example1.csv