RobertAudi / sparc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sparc: Sparklines for your shell ▄ ▇ ▂ ▁ ▅ ▃

Installation

OS X

$ brew tap RobertAudi/formulae http://0x49.0x2a.xyz/RobertAudi/homebrew-formulae.git
$ brew install sparc

Manually

$ git clone --depth 1 http://0x49.0x2a.xyz/RobertAudi/sparc.git
$ cd sparc
$ make install

Usage

$ sparc  1 2 0.4 0.1 1.3 0.7
▄ ▇ ▂ ▁ ▅ ▃
$ sparkl 1 2 0.4 0.1 1.3 0.7
▄▉▂▁▆▃
$ seq 0.0 0.5 100.0 | shuf -n 15 - | xargs sparc
▁ ▇ ▆ ▂ ▂ ▂ ▄ ▇ ▆ ▂ ▃ ▄ ▇ ▅ ▃
$ seq 0.0 0.5 100.0 | shuf -n 15 - | xargs sparkl
█▃▉▅▆▄▄▂▄▁▇▁▃▃▆
$ find . -type f -print | xargs wc -m | head -n -1 | awk '{print $1}' | shuf - | xargs sparc
$ find . -type f -print | xargs wc -m | head -n -1 | awk '{print $1}' | shuf - | xargs sparkl

Credits

About


Languages

Language:C 61.7%Language:Makefile 38.3%