#!/bin/sh args=("$@") last=${args[`expr ${#args} - 3`]} cd /tmp ledger "$@" | stripreg > $last gnuplot <