3 #=======================================================================
5 # File ID: 6723d974-0b9f-11e4-87ab-c80aa9e67bbd
7 # Read seconds since the Epoch from stdin and create a plot with Bézier curve
8 # showing how many timestamps there are per time period. Default period is one
9 # week, but this can be changed on the command line. See ep_day(1) for command
12 # For example, to create a plot with commit activity per week in a Git
15 # git log --format=%ct | act
17 # To create a plot from Apache logs showing daily visits:
19 # access_log2epstat access.log | act -d 1
21 # License: GNU General Public License version 2 or later.
22 #=======================================================================
25 test -n "$1" && time_str
="$@"
26 tmpfile
="/tmp/act.$(date -u +"%Y
%m
%dT
%H
%M
%SZ
").$$.tmp"
27 ep_day
$time_str | ep
>"$tmpfile"; stpl
-lp -samp1000 "$tmpfile"