diff options
Diffstat (limited to 'raidgrep.1.asciidoc')
-rw-r--r-- | raidgrep.1.asciidoc | 29 |
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 |