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
- Host: GitHub
- URL: https://github.com/apexskier/rrf
- Owner: apexskier
- Created: 2020-12-19T15:45:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-25T17:57:30.000Z (over 4 years ago)
- Last Synced: 2024-12-28T08:40:27.434Z (7 months ago)
- Language: Go
- Size: 5.75 MB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
## 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 outputHelp 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.