On 2015-10-20 15:51 Kurt Duyck wrote:
> hi I am new to ledger-cli and would like to figure out how to get a
> monthly expenses report.
> I am using version 2.6.
>
> looking for something like this:
> ledger -f file.dat -p "monthly in 2015" reg ^expenses 
> but with this output: 
>
> 2015/01/01 - 2015/01/31 Expenses 1.000 1.000
> 2015/02/01 - 2015/02/27 Expenses 1.100 2.100
> 2015/0301 - 2015/03/31 Expenses 1.020 3.120
> ....
> 2015/10/01 - 2015/10/20 Expenses 1.050 10.005
>
> Can this be achieved? I bet there is an easy way. Just could not find
> any sample online. 

Are you maybe looking for the --collapse option? It sums all accounts
matching your supplied regex.  Thus, leaving you with a single sum for
each month - very similar to the output you show above.

Regards,
-- 
Alexander Baier

-- 

--- 
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.

Reply via email to