An open API service indexing awesome lists of open source software.

https://github.com/apexskier/rrf

Realtime Regular expression Filter
https://github.com/apexskier/rrf

Last synced: 5 months ago
JSON representation

Realtime Regular expression Filter

Awesome Lists containing this project

README

        

# 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](./rrf-demo.mov)

## 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.