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