From a77f0a383567cac99da2594f23d31a8066ff2b2f Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 20 Apr 2016 07:24:51 -0700 Subject: [PATCH] doc: cli: link to hledger-rewrite add-on --- hledger/doc/commands.m4.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hledger/doc/commands.m4.md b/hledger/doc/commands.m4.md index 30a518fe0..60595ea67 100644 --- a/hledger/doc/commands.m4.md +++ b/hledger/doc/commands.m4.md @@ -877,6 +877,10 @@ $ LEDGER_FILE=unique.journal hledger print-unique ## rewrite Prints all journal entries, adding specified custom postings to matched entries. +[hledger-rewrite.hs](https://github.com/simonmichael/hledger/blob/master/extra/hledger-rewrite.hs), +in hledger's extra directory (compilation optional), adds postings to existing transactions, +optionally with an amount based on the existing transaction's first amount. See the script for more details. + ```shell $ hledger rewrite -- [QUERY] --add-posting "ACCT AMTEXPR" ... $ hledger rewrite -- ^income --add-posting '(liabilities:tax) *.33'