Skip to content

apexskier/rrf

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

rrf

rrf stands for Realtime Regexp Filter.

It's a small utility for realtime filtering of text streams in your terminal using regular expressions.

Demo

Usage

rrf --help
Usage:
  rrf [OPTIONS]

  rrf will read from stdin. Usually you'll want to do something like
  `tail -f my.log | rrf`

  Once running, type a regex. Once a valid regex is entered, the output filter
  will be updated.

Application Options:
      --posix           Use POSIX ERE (egrep) syntax
      --filtered-count  Show count of filtered lines between output
      --no-highlight    Do not highlight matches in output

Help Options:
  -h, --help            Show this help message

Future plans

  • Highlighting customization?
  • Find something that will give me readline in the input prompt? Nothing I've found so far allows stateful reuse. They all block until a line is read, and I want to be able to keep streaming stdin while editing.

About

Realtime Regular expression Filter

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages