LinuxCommandLibrary

csvlook

CSV table renderer for terminal viewing

TLDR

Display CSV as table

$ csvlook [data.csv]
copy
Limit rows displayed
$ csvlook --max-rows [10] [data.csv]
copy
Limit column width
$ csvlook --max-column-width [20] [data.csv]
copy
Hide line numbers
$ csvlook --no-number [data.csv]
copy
Use different delimiter
$ csvlook -d ";" [data.csv]
copy
Read from stdin
$ cat [data.csv] | csvlook
copy

SYNOPSIS

csvlook [options] file

DESCRIPTION

csvlook renders CSV data as a fixed-width table for terminal viewing. It's part of csvkit and provides a quick way to preview CSV files in a readable format.
The tool auto-sizes columns based on content and displays data with ASCII borders, making it easy to inspect data structure and values.

PARAMETERS

-H, --no-header-row

Input has no header row.
--max-rows n
Maximum rows to display.
--max-column-width n
Truncate columns at width.
--max-columns n
Maximum columns to display.
-y n, --snifflimit n
Rows to sniff for delimiter.
--no-number
Don't display row numbers.
-d char
Field delimiter.
-q char
Quote character.
-e encoding
Input encoding.

CAVEATS

Large files may be slow to render. Wide tables may wrap in terminal. Part of csvkit, requires Python installation.

HISTORY

csvlook is part of csvkit, created by Christopher Groskopf in 2011. It provides quick data preview capabilities essential for data analysis workflows, complementing other csvkit tools for CSV manipulation.

SEE ALSO

csvcut(1), csvstat(1), column(1), less(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community