{
    "mode": "man",
    "parameter": "zfgrep",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/zfgrep/1/json",
    "generated": "2026-06-03T03:34:29Z",
    "synopsis": "zgrep [ grepoptions ] [ -e ] pattern filename...",
    "sections": {
        "NAME": {
            "content": "zgrep - search possibly compressed files for a regular expression\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "zgrep [ grepoptions ] [ -e ] pattern filename...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Zgrep invokes grep on compressed or gzipped files.  All options specified are passed directly\nto grep.  If no file is specified, then the standard input is decompressed if  necessary  and\nfed to grep.  Otherwise the given files are uncompressed if necessary and fed to grep.\n\nIf the GREP environment variable is set, zgrep uses it as the grep program to be invoked.\n",
            "subsections": []
        },
        "EXIT STATUS": {
            "content": "Exit status is 0 for a match, 1 for no matches, and 2 if trouble.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "The  following  grep  options  are not supported: --dereference-recursive (-R), --directories\n(-d), --exclude, --exclude-from, --exclude-dir, --include, --null (-Z), --null-data (-z), and\n--recursive (-r).\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Charles Levert (charles@comm.polymtl.ca)\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)\n\n\n\nZGREP(1)",
            "subsections": []
        }
    },
    "summary": "zgrep - search possibly compressed files for a regular expression",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "grep",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/grep/1/json"
        },
        {
            "name": "gzexe",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/gzexe/1/json"
        },
        {
            "name": "gzip",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/gzip/1/json"
        },
        {
            "name": "zdiff",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/zdiff/1/json"
        },
        {
            "name": "zforce",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/zforce/1/json"
        },
        {
            "name": "zmore",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/zmore/1/json"
        },
        {
            "name": "znew",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/znew/1/json"
        },
        {
            "name": "ZGREP",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ZGREP/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "This command is an alias of `zgrep --fixed-strings`.",
        "examples": [
            {
                "description": "View documentation for the original command",
                "command": "tldr zgrep"
            }
        ]
    }
}