17 lines
227 B
Bash
17 lines
227 B
Bash
#!/bin/sh
|
|
|
|
dir=$HOME/doc/finance
|
|
|
|
cd /tmp
|
|
|
|
ledger -M -G register "$@" > $1
|
|
|
|
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
|