I was about to drop the m4 experiment, but.. not yet. I want to split up the big man pages into chunks that are easier to deal with, so now using m4 for that (only. Pandoc is taking care of selective content stripping and other rendering adjustments.) I've switched the suffix of m4-enabled files from .md.m4 to .m4.md - less correct but activates more useful editor highlighting.
63 lines
1.7 KiB
Markdown
63 lines
1.7 KiB
Markdown
# EXAMPLES
|
|
|
|
Two simple transactions in hledger journal format:
|
|
|
|
```journal
|
|
2015/9/30 gift received
|
|
assets:cash $20
|
|
income:gifts
|
|
|
|
2015/10/16 farmers market
|
|
expenses:food $10
|
|
assets:cash
|
|
```
|
|
|
|
Some basic reports:
|
|
|
|
```shell
|
|
$ hledger print
|
|
2015/09/30 gift received
|
|
assets:cash $20
|
|
income:gifts $-20
|
|
|
|
2015/10/16 farmers market
|
|
expenses:food $10
|
|
assets:cash $-10
|
|
```
|
|
```shell
|
|
$ hledger accounts --tree
|
|
assets
|
|
cash
|
|
expenses
|
|
food
|
|
income
|
|
gifts
|
|
```
|
|
```shell
|
|
$ hledger balance
|
|
$10 assets:cash
|
|
$10 expenses:food
|
|
$-20 income:gifts
|
|
--------------------
|
|
0
|
|
```
|
|
```shell
|
|
$ hledger register cash
|
|
2015/09/30 gift received assets:cash $20 $20
|
|
2015/10/16 farmers market assets:cash $-10 $10
|
|
```
|
|
|
|
```{.shell .bold}
|
|
$ hledger # show available commands
|
|
$ hledger add # add more transactions to the journal file
|
|
$ hledger balance # all accounts with aggregated balances
|
|
$ hledger balance --help # show help for balance command
|
|
$ hledger balance --depth 1 # only top-level accounts
|
|
$ hledger register # show account postings, with running total
|
|
$ hledger reg income # show postings to/from income accounts
|
|
$ hledger reg 'assets:some bank:checking' # show postings to/from this checking account
|
|
$ hledger print desc:shop # show transactions with shop in the description
|
|
$ hledger activity -W # show transaction counts per week as a bar chart
|
|
```
|
|
|