zipnote

Updated: April 19, 2023

Write the comments in a zipfile to stdout, edit comments and rename files in a zipfile

Syntax:

zipnote  [-h] [-L] [-q] [-v] [-w] [-b path] zipfile

Runs on:

QNX Neutrino

Options:

-b path
Use the specified path for the temporary zip archive. This option lets you specify a directory that you know has enough space to store the archive.
-h
Display a help message and exit.
-L
Display the zipnote license and exit.
-q
Change to quiet mode by eliminating informational messages and command prompts.
-v
Print version information and exit.
-w
Write the zipfile comments from stdin.
zipfile
The zipfile whose comments you want to write out or edit, or whose files you want to rename.

Description:

The default mode of zipnote writes the comments in a zipfile to stdout. Use -w to enable the second mode which allows updating the comments as well as changing the names of the files in a zipfile. To change a filename, add a line “@=newname.

Examples:

The ed utility could be used to edit the zipfile comments:

zipnote foo.zip > foo.tmp 
ed foo.tmp 
# After editing and saving the comments in the file, 
# and exiting the editor,
# you can then update the comments in the zipfile
zipnote -w foo.zip < foo.tmp