| 1 |
diff |
| 2 |
|
| 3 |
Compares a particular account's transactions in two input files. It |
| 4 |
shows any transactions to this account which are in one file but not in |
| 5 |
the other. |
| 6 |
|
| 7 |
Flags: |
| 8 |
no command-specific flags |
| 9 |
|
| 10 |
More precisely: for each posting affecting this account in either file, |
| 11 |
this command looks for a corresponding posting in the other file which |
| 12 |
posts the same amount to the same account (ignoring date, description, |
| 13 |
etc). |
| 14 |
|
| 15 |
Since it compares postings, not transactions, this also works when |
| 16 |
multiple bank transactions have been combined into a single journal |
| 17 |
entry. |
| 18 |
|
| 19 |
This command is useful eg if you have downloaded an account's |
| 20 |
transactions from your bank (eg as CSV data): when hledger and your bank |
| 21 |
disagree about the account balance, you can compare the bank data with |
| 22 |
your journal to find out the cause. |
| 23 |
|
| 24 |
Examples: |
| 25 |
|
| 26 |
$ hledger diff -f $LEDGER_FILE -f bank.csv assets:bank:giro |
| 27 |
These transactions are in the first file only: |
| 28 |
|
| 29 |
2014/01/01 Opening Balances |
| 30 |
assets:bank:giro EUR ... |
| 31 |
... |
| 32 |
equity:opening balances EUR -... |
| 33 |
|
| 34 |
These transactions are in the second file only: |