Skip to content

shell/awk function to draw an ASCII/UTF-8 graph

Notifications You must be signed in to change notification settings

patsie75/awk-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

awk-graph

Not something borrowed this time, but an original.
I'm not sure when I've written this, but it is many years ago already. Recently rediscovered and modified a bit to my current standards.
Also introduced UTF-8 style bars, so the precision has increased a bit over the old 3-level circles.

It will draw a graph based on data from stdin. First value will be the height of the graph, the rest of the values the data.

i.e.: graph 10 0 1 2 3 4 5 6 7 8 9

Here's a static image of some random data from graphtest.sh:
graph image

About

shell/awk function to draw an ASCII/UTF-8 graph

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages