That didn't seem to work, unfortunately. Just in case I'm making a mistake elsewhere in the command, here's a copy of what I tried, substituting the word "Bank" for my actual bank.
ledger print -f input_file.dat --limit '! (account =~ /Assets:Checking:Bank/)' > results.ledger ledger print -f input_file.dat --limit '! (account =~ /Checking:Bank/)' > results.ledger ledger print -f input_file.dat --limit '! (account =~ /Bank/)' > results.ledger And in each case results.ledger was identical to input_file.dat. I appreciate the response. If you have any other suggestions, I'd be keen to hear them. JP On Sat, Feb 22, 2020 at 2:15 PM John Wiegley <[email protected]> wrote: > >>>>> "jp" == jonathan prin <[email protected]> writes: > > jp> Is there a way to use PRINT and exclude transactions matching a > string? > > Please give this a try: > > ledger print --limit '! (account =~ /Account:Particular/)' > > John > > -- --- 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/CAHX2JGiHqFr1Bwsa80fZ9aTfnjC-eQrYis-X87YOrVRcTxmvnQ%40mail.gmail.com.
