The any() command did it. Thanks. On Tuesday, December 29, 2020 at 8:25:41 AM UTC-5 Martin Michlmayr wrote:
> * Martin Michlmayr <[email protected]> [2020-12-29 21:09]: > > reg Expenses:Entertainment:Streaming -l "any(account =~ > /Liabilities:Credit Card:VISA/)" > > > > > I tried using the -r and --limit option, but it did not work. > > > > No, you need: any(account =~ /.../) > > Just to make this clearer. Let's say you have a transaction with two > postings, accounts A and B. > > reg A --related/-r *shows* the other account (B), but the query is on A > > with any(), you query on A (reg A), but you can additionally require > that at least one account in the transaction involves B. > > -- > Martin Michlmayr > https://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]. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/9316eccd-0b93-48e2-9310-75147f91a022n%40googlegroups.com.
