Z
Z
zencd2014-12-11 10:40:52
Command line
zencd, 2014-12-11 10:40:52

How to draw an event distribution histogram if each event is one line in the file?

There is a file with events during the day, where each of them is presented in a simple form:
08/12 11:20:57
08/12 11:20:58 08/12
11:20:58
histogram form.
361px-Histogram_example.svg.png
Any means will do, it's good if linux shell. The task is one-time, the result is perceived by a person. You can write a Python script, but you are interested in the most efficient way to perform such a task, without programming - maybe there are some standard tools for this class of tasks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
ldv, 2014-12-11
@ldvldv

awk 'BEGIN{FS=":| " ; prev=-1}{  if (prev != $2) printf("\n%s ",$2); printf("*"); prev=$2; }' file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question