Hi folks,

Is it possible to generate an income vs expense report in one
shot using ledger?

I'm looking to generate a monthly report indicating

PERIOD INCOME EXPENSE SAVINGS RATE

where period is the month, income and expense are
the total income:* and expense:* for that month, and
savings and rate are the difference and percentage.

I can certainly see how to do it on a month by month
basis by pulling out individual components like:

  income=`register  -p ${period} --tail 1 --invert   income | tail -1 | awk 
'{print $NF}'`;
  expense=`register -p ${period} --tail 1          expenses | tail -1 | awk 
'{print $NF}'`;

where ${period} is something like 2011-12, but if there's
a way to generate the fields in one shot I'd like to hear
about it.


Jim

Reply via email to