vgrep

command module
v0.0.0-...-e0b5bee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

README

vgrep: Visual Global Regex Print

Test regular expressions in real time. Powered by grep. demo


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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL