Skip to content

Instantly share code, notes, and snippets.

@multidis
Forked from agaviria/Ledger_3_commands.dat
Created May 24, 2016 21:27
Show Gist options
  • Select an option

  • Save multidis/2bbd171b188046d77ed1b017e4df9358 to your computer and use it in GitHub Desktop.

Select an option

Save multidis/2bbd171b188046d77ed1b017e4df9358 to your computer and use it in GitHub Desktop.
Collection of ledger-cli commands
@smallexample
; This is a single line comment,
# and this,
% and this,
| and this,
* and this.
# Provides ledger balance until the month of "i.e. August"
# aug could be replaced by any prefix for monthly calendar.
# ledger bal -f YOURFILENAME --period "until aug"
# Provides a balance of account type "i.e. assets, expenses"
ledger -f YOURFILENAME balance assets:checking
ledger -f YOURFILENAME register expenses:food
# See account subtotals for any postings related to a specific fund
@smallexample
ledger --code-as-payee -P reg ^Assets
@end smallexample
# Or to see a particular funds expenses, the @samp{School} fund in this case
@smallexample
ledger --code-as-payee -P reg ^Expenses @@School
@end smallexample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment