As part of a larger script I run this when I want to get a month-to-month 
total:

ledger -X '$' -O --real --monthly --collapse register assets or liabilities 
-F '%(ansify_if(format_date(date, "%Y-%m"), green if color and date > 
today)) %(ansify_if(justify(scrub(display_total), 4 + int(total_width), 
true, color), bold if should_bold))\n'

On Friday, September 28, 2018 at 1:03:50 PM UTC-7, Scott Carpenter wrote:
>
> I  see some previous postings about this but hoping I can be forgiven for 
> starting another.
>
> I'd like to be able to run a report for ne tworth over years or months. 
> Normally let's say I have:
>
> ledger bal ^assets ^liabilities --depth 1 
>
> And:
>
>           $ 8,270.61  assets
>          $ -4,424.04  liabilities
> --------------------
>           $ 3,846.57
>
> I'd like to get total only, and get a listing with one total per year or 
> month period. Is this possible out of the box? It doesn't necessarily have 
> to be one total per line or all that clean, as long as I can parse it. I'd 
> just like to make one ledger call rather than many from ledgerbil. (
> https://github.com/scarpent/ledgerbil) Yearly might not be so bad when 
> making multiple calls, but monthly would be a lot.
>
> Thanks!
>
>
>

-- 

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