{
    "mode": "man",
    "parameter": "xzegrep",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/xzegrep/1/json",
    "generated": "2026-05-30T05:15:08Z",
    "synopsis": "xzgrep [grepoptions] [-e] pattern file...\nxzegrep ...\nxzfgrep ...\nlzgrep ...\nlzegrep ...\nlzfgrep ...",
    "sections": {
        "NAME": {
            "content": "xzgrep - search compressed files for a regular expression\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "xzgrep [grepoptions] [-e] pattern file...\nxzegrep ...\nxzfgrep ...\nlzgrep ...\nlzegrep ...\nlzfgrep ...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "xzgrep  invokes  grep(1)  on files which may be either uncompressed or compressed with xz(1),\nlzma(1), gzip(1), bzip2(1), lzop(1), or zstd(1).  All options specified are  passed  directly\nto grep(1).\n\nIf no file is specified, then standard input is decompressed if necessary and fed to grep(1).\nWhen reading from standard input, gzip(1), bzip2(1), lzop(1), and  zstd(1)  compressed  files\nare not supported.\n\nIf  xzgrep  is  invoked  as  xzegrep  or xzfgrep then egrep(1) or fgrep(1) is used instead of\ngrep(1).  The same applies to names lzgrep, lzegrep, and  lzfgrep,  which  are  provided  for\nbackward compatibility with LZMA Utils.\n",
            "subsections": []
        },
        "ENVIRONMENT": {
            "content": "GREP   If  the GREP environment variable is set, xzgrep uses it instead of grep(1), egrep(1),\nor fgrep(1).\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "grep(1), xz(1), gzip(1), bzip2(1), lzop(1), zstd(1), zgrep(1)\n\n\n\nTukaani                                      2020-12-05                                    XZGREP(1)",
            "subsections": []
        }
    },
    "summary": "xzgrep - search 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": "xz",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/xz/1/json"
        },
        {
            "name": "gzip",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/gzip/1/json"
        },
        {
            "name": "bzip2",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/bzip2/1/json"
        },
        {
            "name": "lzop",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/lzop/1/json"
        },
        {
            "name": "zstd",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/zstd/1/json"
        },
        {
            "name": "zgrep",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/zgrep/1/json"
        }
    ]
}