drep 0.1.3

drep is grep with dynamic reloadable filter expressions. This allows filtering stream of logs/lines, while changing filters on the fly.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Each line of the filters file is an expression that starts with ~, =, !=, or !~
The matches will be done in the order they appear and if anything matches it's piped to stdout right away

Any line that starts with `!~` implies does not match regex, e.g:
!~\sfizzbuzz\n

Any line that starts with ~ implies match regex, e.g:
~\s(fizz|buzz)\n

Any line that starts with `!=` implies does not contain text, e.g:
!=fizzbuzz

Any line that starts with `=` implies contain text, e.g:
= buzz

Everything else is ignored, as you can see from plain text.