dig - Greple module for recursive search
greple -Mdig pattern --dig directories ...
greple -Mdig pattern --git ...
Option --dig searches all files under specified directories. Since it takes all following arguments, place at the end of all options.
It is possible to specify AND condition after directories, in find option format. Next command will search all C source files under the current directory.
$ greple -Mdig pattern --dig . -name *.c $ greple -Mdig pattern --dig . ( -name *.c -o -name *.h )
If more compilicated file filtering is required, combine with -Mselect module.
You can use --dig option without module declaration by setting it as autoload module in your ~/.greplerc.
autoload -Mdig --dig --git
Use --git-r to search submodules recursively.
Specify at the end of greple options, because all the rest is taken as option for find(1) command.
Search files under git control. Specify at the end of greple options, because all the rest is taken as option for git-ls-files(1) command.
Short cut for --git --recurse-submodules.
App::Greple
App::Greple::select
find(1), git-ls-files(1)
To install App::Greple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Greple
CPAN shell
perl -MCPAN -e shell install App::Greple
For more information on module installation, please visit the detailed CPAN module installation guide.