Hi Kumar, Kumar Appaiah <a.ku...@alumni.iitm.ac.in> writes:
> Now, I'd like to view a register containing ONLY the total of Incomes. For > example: > > # ledger -f test.dat reg Income > > This will display the Income:Salary and Income:Allowances separately. Is > there a way that I can get them combined? In other words, a register that > would display -10,000, -8,000 and -9,000? It looks like the -n (--collapse) option does what you want here: # ledger -f test.dat reg -n Income With your file, this gives: 16-Jan-01 Salary <Total> -10,000.00 INR -10,000.00 INR 16-Feb-01 Salary <Total> -8,000.00 INR -18,000.00 INR 16-Mar-01 Salary <Total> -9,000.00 INR -27,000.00 INR Note that this option is only documented in the man page under the balance report, not the register report. So I'm not sure if this is intended behavior, but it works! Hope that helps! Best, Richard -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.