Linux Commands Examples

A great documentation place for Linux commands

zipnote

write the comments in zipfile to stdout, edit comments and rename files in zipfile


see also : edit - zip - unzip

Synopsis

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


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0

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 following lines like
"@ name"
in the created temporary file (called foo.tmp here) with lines like
"@=newname"
and then using the -w option as above.


0
source
            
BinCommand zipnote :
zipnote.c
[ FGristFiles $(common_files:S=.o) $(util_files:S=.o) ]
: be : zip.rsrc
0
source
            
echo "$ZIP_NOTE" | zipnote -w $PKG
0
source
            
/usr/bin/zipnote PrintVersion.zip > zipout
while read ampersand line; do
if [ "$ampersand" = "@" ]; then
/usr/bin/zipnote -w PrintVersion.zip < zipin
mv PrintVersion.zip PrintVersion
rm zipout zipin
}

description

zipnote writes the comments in a zipfile to stdout. This is the default mode. A second mode allows updating the comments in a zipfile as well as allows changing the names of the files in the zipfile. These modes are described below.

options

-w

Write comments to a zipfile from stdin (see below).

-b path

Use path for the temporary zip file.

-h

Show a short help.

-v

Show version information.

-L

Show software license.

arguments

zipfile Zipfile to read comments from or edit.


bugs

The temporary file format is rather specific and zipnote is rather picky about it. It should be easier to change file names in a script.

Does not yet support large (> 2 GB) or split archives.


see also

zip , unzip


author

Info-ZIP

How can this site be more helpful to YOU ?


give  feedback