NAME
dig - Greple module for recursive search
SYNOPSIS
greple -Mdig pattern --dig directories ...
greple -Mdig pattern --git ...
DESCRIPTION
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.
OPTIONS
- --dig directories find-option
-
Specify at the end of greple options, because all the rest is taken as option for find(1) command.
- --git ls-files-option
-
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.
- --git-r ls-files-option
-
Short cut for --git --recurse-submodules.