{
    "mode": "man",
    "parameter": "zipnote",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/zipnote/1/json",
    "generated": "2026-06-12T16:38:23Z",
    "synopsis": "zipnote [-w] [-b path] [-h] [-v] [-L] zipfile",
    "sections": {
        "NAME": {
            "content": "zipnote - write the comments in zipfile to stdout, edit comments and rename files in zipfile\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "zipnote [-w] [-b path] [-h] [-v] [-L] zipfile\n\n",
            "subsections": []
        },
        "ARGUMENTS": {
            "content": "zipfile  Zipfile to read comments from or edit.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-w",
                    "content": "",
                    "flag": "-w"
                },
                {
                    "name": "-b",
                    "content": "Use path for the temporary zip file.\n",
                    "flag": "-b"
                },
                {
                    "name": "-h",
                    "content": "",
                    "flag": "-h"
                },
                {
                    "name": "-v",
                    "content": "",
                    "flag": "-v"
                },
                {
                    "name": "-L",
                    "content": "",
                    "flag": "-L"
                }
            ]
        },
        "DESCRIPTION": {
            "content": "zipnote writes the comments in a zipfile to stdout.  This is the default mode.  A second mode\nallows updating the comments in a zipfile as well as allows changing the names of  the  files\nin the zipfile.  These modes are described below.\n\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "To write all comments in a zipfile to stdout use for example\n\nzipnote foo.zip > foo.tmp\n\nThis writes all comments in the zipfile foo.zip to the file foo.tmp in a specific format.\n\n\nIf  desired,  this file can then be edited to change the comments and then used to update the\nzipfile.\n\nzipnote -w foo.zip < foo.tmp\n\nThe names of the files in the zipfile can also be changed in this way.  This is done by  fol‐\nlowing lines like\n\"@ name\"\nin the created temporary file (called foo.tmp here) with lines like\n\"@=newname\"\nand then using the -w option as above.\n\n",
            "subsections": []
        },
        "BUGS": {
            "content": "The temporary file format is rather specific and zipnote is rather picky about it.  It should\nbe easier to change file names in a script.\n\nDoes not yet support large (> 2 GB) or split archives.\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "zip(1), unzip(1)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Info-ZIP\n\n\n\nv3.0 of 8 May 2008                               zipnote(1)",
            "subsections": []
        }
    },
    "summary": "zipnote - write the comments in zipfile to stdout, edit comments and rename files in zipfile",
    "flags": [
        {
            "flag": "-w",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-b",
            "long": null,
            "arg": null,
            "description": "Use path for the temporary zip file."
        },
        {
            "flag": "-h",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-L",
            "long": null,
            "arg": null,
            "description": ""
        }
    ],
    "examples": [
        "To write all comments in a zipfile to stdout use for example",
        "zipnote foo.zip > foo.tmp",
        "This writes all comments in the zipfile foo.zip to the file foo.tmp in a specific format.",
        "If  desired,  this file can then be edited to change the comments and then used to update the",
        "zipfile.",
        "zipnote -w foo.zip < foo.tmp",
        "The names of the files in the zipfile can also be changed in this way.  This is done by  fol‐",
        "lowing lines like",
        "\"@ name\"",
        "in the created temporary file (called foo.tmp here) with lines like",
        "\"@=newname\"",
        "and then using the -w option as above."
    ],
    "see_also": [
        {
            "name": "zip",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/zip/1/json"
        },
        {
            "name": "unzip",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/unzip/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "View, add, or edit a Zip archive's comments.",
        "examples": [
            {
                "description": "View the comments on a Zip archive",
                "command": "zipnote {{path/to/file.zip}}"
            },
            {
                "description": "Extract the comments on a Zip archive to a file",
                "command": "zipnote {{path/to/file.zip}} > {{path/to/file.txt}}"
            },
            {
                "description": "Add/Update comments in a Zip archive from a file",
                "command": "zipnote < {{path/to/file.txt}} -w {{path/to/file.zip}}"
            }
        ]
    }
}