Skip to content

Instantly share code, notes, and snippets.

@tvararu
Created August 21, 2022 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tvararu/6d3706b3d9fb8465020735612ceb44ec to your computer and use it in GitHub Desktop.
Save tvararu/6d3706b3d9fb8465020735612ceb44ec to your computer and use it in GitHub Desktop.
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