vgrep: Visual Global Regex Print
Test regular expressions in real time. Powered by grep.

Installation
Note that vgrep assumes and depends on a local grep installation.
Option 1 — Go install
go install github.com/bjluckow/vgrep@latest
Make sure $GOPATH/bin or $HOME/go/bin is in your PATH.
Option 2 — build locally
git clone https://github.com/bjluckow/vgrep
cd vgrep
go build
Then move the binary somewhere in your PATH:
mv vgrep ~/.local/bin/
Usage
vgrep reads from stdin for Unix-style composability.
Pipe input:
cat file.txt | vgrep
Or pass a file:
vgrep file.txt
Then, type a regular expression to match lines as per grep.
Press Enter to emit results to stdout.
Press Esc or Ctrl+C to cancel.
Flags
Run vgrep --help to view native flags.
vgrep directly wraps grep. You can pass raw flags to grep after --:
vgrep -d -- -i