Pretty and fast csv viewer for cli with cjk/emoji support.
Pretty and fast csv viewer for cli with cjk/emoji support.
csview
A high performance csv viewer with cjk/emoji support.tsv and custom delimiters.…Run csview --help to view detailed usage.
csview is available in the Arch User Repository. To install it from AUR:
yay -S csviewYou can install csview with Homebrew:
brew install csviewcsview is available from the main pkgsrc Repositories. To install simply run
pkgin install csviewor, if you prefer to build from source using pkgsrc on any of the supported platforms:
cd /usr/pkgsrc/textproc/csview
make installYou can install csview with Scoop:
scoop install csviewPre-built versions of csview for various architectures are available at Github release page.
Note that you can try the musl version (which is statically-linked) if runs into dependency related errors.
csview is also published on crates.io. If you have latest Rust toolchains installed you can use cargo to install it from source:
cargo install --locked csviewIf you want the latest version, clone this repository and run cargo build --release.
| Tool | Command | Mean Time | Min Time | Memory |
|---|---|---|---|---|
| xsv | xsv table small.csv |
2.0ms | 1.8ms | 3.9mb |
| csview | csview small.csv |
0.3ms | 0.1ms | 2.4mb |
| column | column -s, -t small.csv |
1.3ms | 1.1ms | 2.4mb |
| csvlook | csvlook small.csv |
148.1ms | 142.4ms | 27.3mb |
| Tool | Command | Mean Time | Min Time | Memory |
|---|---|---|---|---|
| xsv | xsv table medium.csv |
0.031s | 0.029s | 4.4mb |
| csview | csview medium.csv |
0.017s | 0.016s | 2.8mb |
| column | column -s, -t small.csv |
0.052s | 0.050s | 9.9mb |
| csvlook | csvlook medium.csv |
2.664s | 2.617s | 46.8mb |
large.csv (1,000,000 rows, 10 cols, 61M bytes, generated by concatenating medium.csv 100 times):| Tool | Command | Mean Time | Min Time | Memory |
|---|---|---|---|---|
| xsv | xsv table large.csv |
2.912s | 2.820s | 4.4mb |
| csview | csview large.csv |
1.686s | 1.665s | 2.8mb |
| column | column -s, -t small.csv |
5.777s | 5.759s | 767.6mb |
| csvlook | csvlook large.csv |
20.665s | 20.549s | 1105.7mb |
xsv is great. But it's aimed for analyzing and manipulating csv data.
csview is designed for formatting and viewing. See also: xsv/issues/156
The file may use a non-UTF8 encoding. You can check the file encoding using file command:
$ file -i a.csv
a.csv: application/csv; charset=iso-8859-1And then convert it to utf8:
$ iconv -f iso-8859-1 -t UTF8//TRANSLIT a.csv -o b.csv
$ csview b.csvOr do it in place:
$ iconv -f iso-8859-1 -t UTF8//TRANSLIT a.csv | csviewcsview is distributed under the terms of both the MIT License and the Apache License 2.0.
See the LICENSE-APACHE and LICENSE-MIT files for license details.
No open issues yet, or sync has not completed.