Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.05 KB

File metadata and controls

34 lines (24 loc) · 1.05 KB

Go

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, starting from 1, by default try to detect the first column of numbers
  • -s ... - style, "bar-simple", "bar-horizontal-1px", "bar-vertical-1px" (default: "bar-simple")
  • -c "#" - chart symbol (default: #)
  • -w N - width of chart (default: rest of terminal width)
  • -skip regex - skip lines matching regex
  • -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