t-plot

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 9 Imported by: 0

README

t-plot

It's simple utility for plot bar chart from numbers in the terminal. By default it's plot chart from stdin, one number per line and add bar chart to the end of line.

Installation

go install github.com/msoap/t-plot@latest

Options

  • -k N - column number for plot (default: 1)
  • -c "#" - chart symbol (default: #)
  • -w N - width of chart (default: rest of terminal width)
  • -h - print help and exit

Examples

# plot chart from stdin by file size in ls (column 5)
$ ls -l | t-plot -k 5

# chart by file sizes from du
$ du -s some_path/* | t-plot

Screenshot

image

Documentation

Overview

Options:

  • `-k N` - column number for plot (default: 1)
  • `-c "#"` - chart character (default: `#`)
  • `-w N` - width of chart (default: rest of terminal width using $COLUMNS)
  • `-h` - print help and exit

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL