ledger/scripts/report
2004-07-29 17:25:28 -04:00

17 lines
249 B
Bash
Executable file

#!/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