Martin, I do need to check out more beancount one day.
I'm now trying something like this: ledger -f main.ledger --limit xyz print | <potential filtering> | ledger -f - -f prices.ledger --display xyz bal Then I can just use sed or whatever I'd like. Mark On Saturday, 2 January 2016 21:35:59 UTC, Martin Blais wrote: > > You could easly write a wrapper script that applies your renames to > another file and then runs your report on that. > Always generate & delete the intermediate file. > > Beancount's approach would be different: A plugin would be used to rewrite > the account names in the transactions data structures directly. > > > > On Sat, Jan 2, 2016 at 4:31 PM, Mark Scannell <[email protected] > <javascript:>> wrote: > >> Hello all -- >> >> Is it possible to apply a regular expression to rename accounts? >> >> I have a complex structure of three account sets, all with >> Ass|Lia|Inc|Exp|Equ, and sub-categories in Assets (Current, Pension, and >> Fixed). I'd like to apply a regular expression to re-order the structure of >> the accounts for reporting purposes, without changing the underlying data. >> >> I know I can do this in the source data, but I'd rather not do that. >> >> Thanks! >> >> Mark >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Ledger" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
