xsv cat rows a.csv b.csv

Category: Data Science & Analysis

xsv cat rows a.csv b.csv

Stack two CSVs vertically, header once

The cat command concatenates files; rows mode stacks them vertically, appending b.csv's rows under a.csv's with the header printed once. Column counts must match or the merge fails. This is the xsv equivalent of csvstack for simple appends. Use cat columns to glue files side by side instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.