Skip to content

Instantly share code, notes, and snippets.

@Ikke
Forked from simonmichael/budget.ledger
Last active August 29, 2015 13:59
Show Gist options
  • Save Ikke/10596905 to your computer and use it in GitHub Desktop.
Save Ikke/10596905 to your computer and use it in GitHub Desktop.
= /^Income:salary$/
; [Accounts:checking] $ -200.00
; [Budget:food] $ 200.00
= /^Expense:food$/
[Budget:food] -1.0
[Accounts:checking] 1.0
2014/04/13 Company Inc
Accounts:checking $ 1000.00
Income:salary $-1000.00
[Budget:food] $ 200.00
[Accounts:checking] $-200.00
2014/04/13 Grocery
Expense:food $ 20.00
Accounts:checking
$ ledger -f example.txt bal ^Ac ^bu
$ 800.00 Accounts:checking
$ 180.00 Budget:food
--------------------
$ 980.00
$ ledger -f example.txt bal --real ^Ac
$ 980.00 Accounts:checking
$ledger -f example.txt reg --real ^Ac
14-Apr-13 Company Inc Accounts:checking $ 1000.00 $ 1000.00
14-Apr-13 Grocery Accounts:checking $ -20.00 $ 980.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment