Skip to content

Instantly share code, notes, and snippets.

@reimai
Last active April 13, 2016 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reimai/99a9f49471f93976ae5d to your computer and use it in GitHub Desktop.
Save reimai/99a9f49471f93976ae5d to your computer and use it in GitHub Desktop.
count smth from logs (not the most effective way, but good enough for the task in hand) and plot it on time axis
$ for m in {32..33}; do for s in {00..59}; do echo "$m$s " `grep -c "$m$s" ~/input`; done; done > ~/out
$ gnuplot -p -e "set xdata time; set timefmt '%M%S'; set format x '%M:%S'; plot '~/out' using 1:2 with points"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment