Hi jwmhjwmh - thanks for posting this. I just wanted to add, for me, two important features of a utility like this are 1. to accept input from a pipe, and 2. to specify a delimiter. My usual use would be data source | processing | plot E.g. a csv, cut or awk, then either print the data or plot. The features I suggested make this workflow easier, but I don't know how common that is. I'd be interested to know how other…
The script does accept input from a pipe, just as Awk does. Specifying a delimiter seems like it should be doable. To answer your question, I mainly use this for counting lines of code: cloc --by-file --csv src/ | awk -F, '/^C/{print$5,$2}' | barchart | less (The above pipeline counts the lines of C code in files in the src directory.) EDIT: Actually, the script can pretty easily support alternative delimiters. Let's…
Show HN: Simple tool for creating command-line bar charts
21–24 of 24 posts
Re: Show HN: Simple tool for creating command-line bar charts
#22Earlier quoted context omitted.
The script does accept input from a pipe, just as Awk does. Specifying a delimiter seems like it should be doable. To answer your question, I mainly use this for counting lines of code: cloc --by-file --csv src/ | awk -F, '/^C/{print$5,$2}' | barchart | less (The above pipeline counts the lines of C code in files in the src directory.) EDIT: Actually, the script can pretty easily support alternative delimiters. Let's…
Have you tried the `tokei` tool for counting lines of code? It can also output in machine-readable formats IIRC.
Re: Show HN: Simple tool for creating command-line bar charts
#23I had some fun creating a minimal (7 lines) bash implementation for bars using reverse video mode awhile ago.
https://eskerda.com/minimal-bash-progress-bar-ansi-escape-se...