dgrep(1)

dgrep1

Usage

dgrep [most grep options] pattern package ...

dgrep --help

Overview

dgrep invokes grep(1) on each file in one or more installed Debian packages.

It passes the package argument(s) to dglob(1) to retrieve a list of files in those packages. It uses dglob's substring pattern matching for the package names.

If dgrep is invoked as degrep, dfgrep or dzgrep, etc. then grep(1) with option "-E" or "-F" respectively the command zgrep(1) is used instead of grep(1).

Options

dgrep supports most of grep(1)'s options. Please refer to your grep(1) documentation (i.e. the manpage or the texinfo manual) for a complete listing. Only a few options are excluded because they do not conform with the intended behaviour, see the list below.

Options of grep that are not supported by dgrep

-r, --recursive, -d recurse, --directories=recurse
-d read, --directories=read

dgrep searches only in the "normal" files of a package. It skips all directories and symlinks. Therefore the options of grep that are specific to directories are not supported.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 10 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9
  8. 10
  9. 11
  10. 12
  11. 13

--directories since Debian 6.0 (Squeeze); --recursive since Debian 6.0 (Squeeze); -d since Debian 6.0 (Squeeze); -r since Debian 6.0 (Squeeze).

Author

Matt Zimmerman <[email protected]>

This manpage was written by Frank Lichtenheld <[email protected]>.

From debian-goodies 0.88.2 in Debian 13 (Trixie). Parsed by carta from the page's man source.