Martin,

I was thinking of that, and I may use alias' as I have a lot of 
abbreviations. The challenge is that I have my partner's books, my books, 
and then our joint books. As our finances are gradually being treated as 
one, I'd like to be able to have Assets -> mine, Assets -> hers, Assets -> 
ours, Expenses -> mine|hers|ours, etc.

A simple regex substitution works fine, so the ledger print | sed -e '//' | 
ledger -f - type of solution can work.

Mark


On Sunday, 3 January 2016 00:14:07 UTC, Martin Michlmayr wrote:
>
> * Mark Scannell <[email protected] <javascript:>> [2016-01-02 13:31]: 
> > 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. 
>
> I'm not sure what you mean by re-order the structure, but if you want 
> to change the account names, you can create an account alias. 
>
> account Assets:newname 
>     alias Assets:oldname 
>
> 2015-01-02 * Test 
>     Assets:oldname     10.00 EUR 
>     Equity 
>
> $ ledger -f d reg assets 
> 2015-01-02 Test              Assets:newname          10.00 EUR     10.00 
> EUR 
>
> -- 
> Martin Michlmayr 
> http://www.cyrius.com/ 
>

-- 

--- 
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.

Reply via email to