歌代 和正 (Kaz Utashiro)
and 4 contributors

NAME

dig - Greple module for recursive search

SYNOPSIS

greple -Mdig [ options ] --dig directories ...

DESCRIPTION

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