- 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 from Hackage via stack
is recommended:
stack update
stack install vgrep
This will install vgrep
to your ~/.local/bin
directory.
To install from source:
git clone https://github.com/fmthoma/vgrep.git
cd vgrep
stack setup
stack install