BurntSushi / xsv

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

Combine multiple csv files with the cat command? #285

Open amelinevallet opened 2 years ago

amelinevallet commented 2 years ago

Dear Andrew, I'd like to use xsv and the cat command to combine column-wise several csv files located in the same directory (from where the cmd prompt is launched). I tried the following command: xsv cat columns .csv -o myfile.csv (naively inspired from copy .csv > myfile.csv). But it did not work. Is there a way to do multiple (i.e. more than 2) file combinaison with xsv? What is the correct command then? Does it requires to have a list of filenames beforehands, or is there a way to combine all files meeting one condition (.csv extension in my example). Many thanks in advance for your help, Améline

BurntSushi commented 2 years ago

When asking questions like this, please provide the exact command you used, the input files, actual output and expected/desired output. Saying "it doesn't work" doesn't help much unfortunately.

Overload119 commented 2 years ago

I've used this command with some success before, it assumes columns are in the same order though