Article 5PV9B LXer: An AWK histogram with scaling

LXer: An AWK histogram with scaling

by
LXer
from LinuxQuestions.org on (#5PV9B)
Published at LXer:

It's not hard to build a frequency-of-occurrence histogram with AWK, but scaling the histogram bars is a little bit trickier. By "scaling" I mean setting the longest bar to a defined character length in the terminal, and adjusting the lengths of all the shorter bars proportionally.

Read More...latest?d=yIl2AUoC8zA latest?i=SGiZpjAg9tA:64_OAPyG8N4:F7zBnMy latest?i=SGiZpjAg9tA:64_OAPyG8N4:V_sGLiP latest?d=qj6IDK7rITs latest?i=SGiZpjAg9tA:64_OAPyG8N4:gIN9vFwSGiZpjAg9tA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments