John, I'm using zsh so entered:
ledger reg ^exp and "(%tag1 | %tag2)" The results were for tag2 only. I used the group-by tag as follows: ledger reg ^exp and expr "(has_meta('tag1') or has_meta('tag2'))" --group-by tag('tag1') The results was: zsh: missing delimiter for 'u' glob qualifier Thoughts on either result? On Tuesday, February 7, 2023 at 6:08:28 PM UTC-6 jwie...@gmail.com wrote: > >>>>> "J" == Jasel17212 <ja...@thelittonfamily.com> writes: > > J> Is there a shorthand way to write the following query? > > J> ledger reg ^exp and expr "has_meta('tag1')" or ^exp and expr > J> "has_meta('tag2')" > > You may need to escape it from your shell, but this should do it: > > ledger reg ^exp & (%tag1 | %tag2) > > J> ledger reg ^exp and expr "has_meta('tag1')" or ^exp and expr > J> "has_meta('tag2')" --group-by ???? > > --group-by tag('tag1') > > 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/b34b2681-74f9-4709-9a66-f32479a789bbn%40googlegroups.com.