logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dgrep, degrep, dfgrep, dzgrep -- grep through files belonging to an installed Debian package

Author

       Matt Zimmerman <mdz@debian.org>

       This manpage was written by Frank Lichtenheld <frank@lichtenheld.de>.

Description

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).

Name

       dgrep, degrep, dfgrep, dzgrep -- grep through files belonging to an installed Debian package

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.

   Optionsofgrepthatarenotsupportedbydgrep-r, --recursive, -drecurse, --directories=recurse-dread, --directories=readdgrep  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.

See Also

grep(1), zgrep(1), dglob(1), regex(7), dpkg(8)

perl v5.40.0                                       2024-12-12                                           DGREP(1)

Synopsis

dgrep [mostgrepoptions] patternpackage...

       dgrep--help

See Also