dig - Greple module for recursive search
greple -Mdig [ options ] --dig directories ...
Option --dig searches all files under directories specified after it. Since it takes all following arguments as target files or directories, use after all necessary 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 )
You can use --dig option without module declaration by setting it as autoload module in your ~/.greplerc.
autoload -Mdig --dig
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.