Filter stdin lines by a Regular Expression and output to stdout.
ISC License
stdin | rfilter <regex> [ -i ]
Filter stdin lines by a Regular Expression and output to stdout.
Implies the m
JavaScript regex flag.
Kinda like grep
but uses JavaScript regex syntax.
$ printf "aaa\nbbb\nccc\nbird\n" | rfilter b
bbb
bird
-i
Enables the JavaScript case-insensitive ('i'
) flag on the regex.--inverse
Filters by lines that do not match.