Álvaro Ramírez
Ledger query snippets
Expenses paid in cash between two dates
ledger -f my.ledger reg "^Expenses" and expr 'any(account=~/Assets:Cash:Wallet/)' -b 02/19 -e 04/09
Bank account income between two dates
ledger -f my.ledger reg "^Assets:Bank:Acme" and expr "amount > 0" -b 02/19 -e 04/09
Formatting reg output
ledger -f my.ledger reg "^Assets:Bank:Acme" --format="%(payee) %(amount)\n"