xsv table data.csv

Category: Data Science & Analysis

xsv table data.csv

Render a CSV as an aligned table

The table command pretty-prints a CSV with aligned columns and trimmed cells, making it readable in the terminal. It does not modify the data, only the display. Wide rows wrap or truncate depending on terminal width, so use it on narrow slices. This is the xsv counterpart of csvlook for quick eyeballing.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.