Thank you, David, your solution works!

However the following solution is simpler and looks suitable:

    $ ledger bal -T 'a'

Thanks all!

суббота, 2 ноября 2013 г., 1:47:26 UTC+7 пользователь David Harding написал:
>
> On Fri, Nov 01, 2013 at 10:25:49AM -0700, Vladimir Parfinenko wrote: 
> > Is it possible to report balance of accounts without their subaccounts? 
>
> Hi, Vladimir. 
>
> Try this: 
>
>     $ ledger bal -T '(l==0)?O:a' 
>
> The -T changes the value expression to calculate the total. The 
> conditional expression, (l==0), checks the account depth---if it equals 
> zero, it displays the regular total. Else, it displays only the 
> individual account balance, a. 
>
> You can find more variables to play with in the Value Expression section 
> of the manual. 
>
> Good luck, 
>
> -Dave 
> -- 
> David A. Harding 
>

-- 

--- 
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/groups/opt_out.

Reply via email to