Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

rfilter

1.1.0 • Public • Published

rfilter

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.

install

npm i rfilter

Downloadsweekly downloads

3

version

1.1.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar