You could try to use regexes for this. Something like this: ledger reg "expr" "payee =~/.*netflix.*/" and "expr" "account =~ /.*Streaming/"
On Tue, Dec 29, 2020 at 7:16 AM Savo Lazic <[email protected]> wrote: > > Here is an example ledger: > > 2015-03-16 NETFLIX.COM > Expenses:Entertainment:Streaming > Liabilities:Credit Card:VISA $-7.99 > 2015-04-16 NETFLIX.COM > Expenses:Entertainment:Streaming > Liabilities:Credit Card:Mastercard $-7.99 > > I know how to individually filter for Streaming and VISA. I am not able to > figure out how to pull out all the records of Netflix being payed for by VISA > only using the account (Streaming) and related account (VISA) identifiers. I > do not want to use payee as that changes over time. > > I tried using the -r and --limit option, but it did not work. > > Thanks. > > -- > > --- > 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/c85e0003-c359-4cbc-9c88-b0c766e5c3e7n%40googlegroups.com. -- Regards, jnduli -- --- 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/CADuqppGYgvf7-pm31Jiru%2BdB0EWDm24A%2BgPWcyWdyq2s1FHYaQ%40mail.gmail.com.
