Author image 歌代 和正 (Kaz Utashiro)
and 3 contributors


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