Hello Ivanov Dmitry on Wed, Jan 14, 2015 at 09:55:30PM CET, you wrote:
> Is it possible to get the sum of money, spent on that:
> 22 GAL $44 Expenses:Gasoline

Yes, that's possible by changing the balance format using the
--balance-format option (see the manual¹ for details), here's an example:

% ledger -f test1.txt \
  --exchange $ \
  --format \
  '%(strip(amount)) %(display_amount) %(ansify_if(account, blue))\n' \
  bal expenses
22 GAL $44 Expenses:Gasoline


Cheers,
Alexis

¹ 
http://ledger-cli.org/3.0/doc/ledger3.html#index-_002d_002dbalance_002dformat-FORMAT_005fSTRING-1

-- 

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