Skip to content

fmthoma/vgrep

Repository files navigation

vgrep -- A pager for grep

Screenshot

Usage

  • As a pager:
grep -rn data /some/path | vgrep  # -n for line numbers
  • As a drop-in replacement for grep:
vgrep data /some/path                  # recursive by default
vgrep data /some/path | vgrep default  # works with pipes, too

Installation

Installation via stack is recommended:

git clone https://github.com/fmthoma/vgrep.git
cd vgrep
stack setup
stack install

This will install vgrep to your ~/.local/bin directory.