aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2020-06-12 16:17:16 +0200
committerDaniel <kingdread@gmx.de>2020-06-12 16:17:16 +0200
commit44cd7b076e49415e60070ebc12c4fd31bffcb21b (patch)
tree800a13ef080c1691a0a0964a97adfd9fb1e136ef
parent918f1e4eeab94ee8850aefd7c17b48ea2adcd6d2 (diff)
downloadraidgrep-44cd7b076e49415e60070ebc12c4fd31bffcb21b.tar.gz
raidgrep-44cd7b076e49415e60070ebc12c4fd31bffcb21b.tar.bz2
raidgrep-44cd7b076e49415e60070ebc12c4fd31bffcb21b.zip
write about the new predicates in the manpage
-rw-r--r--raidgrep.1.asciidoc29
1 files changed, 27 insertions, 2 deletions
diff --git a/raidgrep.1.asciidoc b/raidgrep.1.asciidoc
index fc54f35..3165529 100644
--- a/raidgrep.1.asciidoc
+++ b/raidgrep.1.asciidoc
@@ -144,10 +144,35 @@ Those predicates can be used as-is in the filter:
Include logs in which any player matches the given player predicates. See
below for a list of player predicates.
+=== Comparative Predicates
+
+Some predicates work by comparing a log value against a given constant (or
+other computed value). Comparisons are done using the operators '<', '\<=', '=',
+'>' and '>=' - in the list below, the placeholder '<>' will be used in place
+of one of the comparison operators.
+
+*-time* '<>' 'DATE'::
+ Include logs whose timestamp is in relation to the given date. This is a
+ generalized version of the *-before* and *-after* predicates and accepts
+ the same date formats.
+
+*-duration* '<>' 'DURATION'::
+ Include logs whose duration is in relation to the given duration. The
+ duration is given as minutes and/or seconds: "42m", "42m 42s" or "42s".
+
+*count(player)* '<>' 'COUNT'::
+ Include logs whose player count is in relation to the given count. This
+ counts all players in the log.
+
+*count(player:* 'PREDICATES' *)* '<>' 'COUNT'::
+ Include logs whose player count is in relation to the given count, only
+ counting players that are matching the given player predicates. See below
+ for a list of player predicates.
+
=== Player Predicates
-The following predicates have to be wrapped in either a *any(player: ...)* or
-*all(player: ...)* construct to be accepted.
+The following predicates have to be wrapped in either a *any(player: ...)*,
+*all(player: ...)* or *count(player: ...)* construct to be accepted.
*-character* 'REGEX'::
Matches the player if the character name matches the given regular