xsv cat columns a.csv b.csv

Category: Data Science & Analysis

xsv cat columns a.csv b.csv

Join two CSVs side by side, row by row

The cat columns mode merges files horizontally, placing b.csv's columns to the right of a.csv's, matched by row position. Both files need the same number of rows for the alignment to make sense. This is a positional join, unlike xsv join which matches on key values. Header rows are combined into one.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.