summaryrefslogtreecommitdiff
path: root/scripts/report
blob: be90f896a16eac216f32d2115d1a8779f91434a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

cd /tmp
ledger -j reg "$@" > report

gnuplot <<EOF
set terminal png
set output "report.png"
set xdata time
set timefmt "%Y/%m/%d"
plot "report" using 1:2 with linespoints
EOF

rm -f report
open report.png