パスワード生成スクリプト
[sunny256-utils.git] / act
blob0056b17feceb8d11bd724067d3ad546a091e4951
1 #!/usr/bin/env bash
3 #=======================================================================
4 # act
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
10 # line syntax.
12 # For example, to create a plot with commit activity per week in a Git
13 # repository:
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 #=======================================================================
24 time_str="-w 1"
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"