Skip to content

Instantly share code, notes, and snippets.

@tvararu
Created August 21, 2022 09:24
Ledger scripts
#!/bin/sh
figlet "expenses"
ledger --price-db prices.db -X £ --pedantic -f current.ledger --no-pager \
reg ^Exp -M --period-sort "(amount)" --effective
#!/bin/sh
figlet "net worth"
ledger --price-db prices.db -X £ --pedantic -f current.ledger --no-pager \
bal ^Ass ^Lia -n
echo "\n"
ledger --price-db prices.db -X £ --pedantic -f current.ledger --no-pager \
bal ^All -%
figlet 'income & taxes'
ledger --price-db prices.db -X £ --pedantic -f current.ledger --no-pager \
bal income tax:payable taxable -E --no-total
figlet runway
ledger --price-db prices.db -X £ --pedantic -f current.ledger --no-pager \
bal Cash:Personal ^Lia and not Mortgage and not Demonst and not Credit:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment