diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2018-07-06 20:16:35 +0200 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2018-07-06 20:17:05 +0200 |
commit | 9123a3261d864c0fd2f9516f69f55d32e1561368 (patch) | |
tree | 3e47130f89b51229b5d0369daf3cdfe016724afa /doc | |
parent | 34a4929e2efb01eb5cd50c825cb2ea0d96b569c3 (diff) | |
download | fork-ledger-9123a3261d864c0fd2f9516f69f55d32e1561368.tar.gz fork-ledger-9123a3261d864c0fd2f9516f69f55d32e1561368.tar.bz2 fork-ledger-9123a3261d864c0fd2f9516f69f55d32e1561368.zip |
Document keywords "any" and "all"
Fixes #1192
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ledger3.texi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/ledger3.texi b/doc/ledger3.texi index c63ee218..484b5ef1 100644 --- a/doc/ledger3.texi +++ b/doc/ledger3.texi @@ -8159,6 +8159,19 @@ posting. A regular expression that matches against the transaction code (the text that occurs between parentheses before the payee). +@item expr any(KEYWORD =~ /REGEX/) +The @command{any} keyword is used to specify that at least one posting of +the transaction must match the expression in brackets. For example, +@samp{ledger -f d reg expr "any(account =~ /Assets:/)"} can be used to +display all transactions which involve at least one @samp{Assets:} +account. + +@item expr all(KEYWORD =~ /REGEX/) +The @command{all} keyword is used to specify that all postings of a +transactions must match the expression in brackets. For example, +@samp{ledger -f d reg expr "all(account =~ /Assets:/)"} can be used to +display all transactions where all accounts are @samp{Assets:}. + @end table The @command{query} command can be used to see how Ledger interprets |