Fishrock123 / rfilter

Filter stdin lines by a Regular Expression and output to stdout.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI Status

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.

Example

$ printf "aaa\nbbb\nccc\nbird\n" | rfilter b
bbb
bird

Options

  • -i Enables the JavaScript case-insensitive ('i') flag on the regex.
  • --inverse Filters by lines that do not match.

About

Filter stdin lines by a Regular Expression and output to stdout.

License:ISC License


Languages

Language:JavaScript 100.0%