Right. For my report I also just wanted the final value for each day. I did
it like this:

ledger ... | tac | sort -usk 1,1

It reverses the lines, then takes the first value it sees for each day
(those options are "unique", and "stable", with "key" being the date
column).

On 3 May 2018 at 01:12, Shane <[email protected]> wrote:

> Unfortunately, this still doesn't solve my issue with having multiple
> lines per day for some of reports. Example of trying to plot my net worth:
>
> led reg ^ass ^lia --market --collapse --total-data
>
> ...
> 2018-03-08 3183.86
> 2018-03-08 3162.64
> 2018-03-09 3158.05
> 2018-03-09 3148.87
> 2018-03-09 3099.16
> 2018-03-10 3085.49
> 2018-03-10 3072.22
> ...
>
> The desired output:
>
> ...
> 2018-03-08 3162.64
> 2018-03-09 3099.16
> 2018-03-09 3072.22
> ...
>
> On Wednesday, May 2, 2018 at 3:03:49 PM UTC-7, Chris Berkhout wrote:
>>
>> On 2 May 2018 at 20:37, Shane <[email protected]> wrote:
>>
>>> I'm trying to plot my net income (income - taxes):
>>>
>>> led bal -e 2018-04-30 bal inc 2018 --collapse
>>>
>>
>> To plot it over time you would use the reg command:
>>
>> ledger reg -e 2018-04-30 inc 2018 -J
>>
>> --
>
> ---
> 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.
>

-- 

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