blob: c548792c922101ec50e3fa10ba258d80620ccd38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
args=("$@")
last=${args[`expr ${#args} - 3`]}
cd /tmp
ledger "$@" | stripreg > $last
gnuplot <<EOF
set terminal png
set output "report.png"
set xdata time
set timefmt "%Y/%m/%d"
plot "$1" using 1:2 with linespoints
EOF
open report.png
|