Skip to content

msoap/t-plot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 (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