https://github.com/erik/vxsv
Pager for tabular data and SQL output
https://github.com/erik/vxsv
csv golang tabular-data terminal-app
Last synced: about 2 months ago
JSON representation
Pager for tabular data and SQL output
- Host: GitHub
- URL: https://github.com/erik/vxsv
- Owner: erik
- License: mit
- Created: 2017-03-16T19:56:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-29T02:02:58.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T16:49:57.054Z (almost 2 years ago)
- Topics: csv, golang, tabular-data, terminal-app
- Language: Go
- Homepage:
- Size: 77.1 KB
- Stars: 12
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vxsv
view x separated values.
A terminal viewer for tabular data (CSV, TSV, etc.) Can also be used
as a pager for scrolling through Postgres / MySQL command line output.
[](https://asciinema.org/a/109283)
## installation
```bash
go get -u github.com/erik/vxsv/cmd/vxsv
```
## usage
```
$ vxsv --help
Usage:
vxsv [--psql | --mysql | --delimiter=DELIM | --tabs]
[--no-headers] [--count=N] [PATH | -]
vxsv -h | --help
Arguments:
PATH file to load [defaults to stdin]
Options:
-h --help show this help message and exit.
-p --psql parse output of psql cli (used as a pager)
-m --mysql parse output of mysql cli
-n --count=N only read N records.
-H --no-headers don't read headers from first row (for separated values)
-d --delimiter=DELIM separator for values [default: ,].
-t --tabs use tabs as separator value.
```
### postgres
```
$ PAGER='vxsv -p' psql ...
```
### mysql
```
$ mysql ...
mysql> \P vxsv -m
```