Created
August 21, 2022 09:24
Ledger scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
figlet "expenses" | |
ledger --price-db prices.db -X £ --pedantic -f current.ledger --no-pager \ | |
reg ^Exp -M --period-sort "(amount)" --effective |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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