Yes, I tried that command but it has 2 undesirable outcomes:
1) It strips any comments in the file that are between 2 transactions. Only comments inside a transaction are preserved. I like to insert block-style comments between transactions for documentary and journaling purposes.
2) It strips net zero transactions, such as the following:
2019/01/01 Acme Bank
Assets:Bank:Acme EUR 0 = EUR 688.68
I sometimes use single line, net zero transactions to make balance assertions and reconcile accounts against statements. This is also part of my journaling process where I am testing that all transactions for an account up to that date are present and the balance is correct.
Maybe this usage is unexpected or illegal but it works to do balance assertions. However, the `ledger print --raw` command strips these single-line balance assertion transactions from the output, probably because the transaction is net zero.
BTW, I love Ledger. It has truly transformed my life, so thanks so much for creating it!!
M.