* John Wiegley <[email protected]> [2014-09-30 09:39]: > > Is it possible to do a register report for ^Expenses, but only for the > > amounts that were taken from Assets:Cash? > > I believe it would be: > > ledger -r assets:cash -d 'account =~ /^Expenses/' > > Although the totals will include everything from cash. The inverse should > also work, and then the totals will include everything from expenses...
I believe the following works best: reg '^Expenses' and expr 'any(account =~ /^Assets:Cash/)' This is based in input from John in the past. -- Martin Michlmayr http://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
