15 lines
218 B
Bash
Executable file
15 lines
218 B
Bash
Executable file
#!/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
|