Show HN: Simple tool for creating command-line bar charts
1–10 of 24 posts
Re: Show HN: Simple tool for creating command-line bar charts
#2Anyway we could use this with realtime rendering? For eg: I pipe data from top command to this script to see graphs/charts change it dynamically?
Re: Show HN: Simple tool for creating command-line bar charts
#3Anyway we could use this with realtime rendering? For eg: I pipe data from top command to this script to see graphs/charts change it dynamically?
You would probably need a wrapper script to do this. The script could periodically clear the screen and call "barchart" with the new input data, re-rendering the chart from scratch.
"barchart" is a very simple shell script that doesn't do much on its own.
Re: Show HN: Simple tool for creating command-line bar charts
#4Nice!
There is also https://github.com/dkogan/feedgnuplot
Re: Show HN: Simple tool for creating command-line bar charts
#5Anyway we could use this with realtime rendering? For eg: I pipe data from top command to this script to see graphs/charts change it dynamically?
Slightly relevant: The program "htop" displays CPU usage with bars on the command line. https://htop.dev/
Re: Show HN: Simple tool for creating command-line bar charts
#6"The script should work with any POSIX shell."
Nice work!
Re: Show HN: Simple tool for creating command-line bar charts
#7Anyway we could use this with realtime rendering? For eg: I pipe data from top command to this script to see graphs/charts change it dynamically?
watch -n1 ./barchart -w 80 dataRe: Show HN: Simple tool for creating command-line bar charts
#8sh for arg parsing and configuration detection (cols).
awk for the actual work.
No fluff. Straight to the point. Just Works.
Congrats to the author.
Re: Show HN: Simple tool for creating command-line bar charts
#9Nice! There is also https://github.com/dkogan/feedgnuplot
Nice, this is exactly what I've been looking for for a while now. Especially the real-time streaming mode. Thanks for posting!
Re: Show HN: Simple tool for creating command-line bar charts
#10I would rather use this: https://github.com/Evizero/UnicodePlots.jl along with a little scripting.