Home » Personal collection » Acorn hard disk » unzip_tools » !Infozip » Routines/zip.txt

Routines/zip.txt

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » unzip_tools » !Infozip
Filename: Routines/zip.txt
Read OK:
File size: 15279 bytes
Load address: 0000
Exec address: 0000
File contents
Name

   zip - package and compress (archive) files

Synopsis

   zip [-aABcdDeEfFghjklLmoqrRSTuvVwXyz!@$] [--longoption ...] [-b path]
   [-n suffixes] [-t date] [-tt date] [zipfile [file ...]] [-xi list]

   zipcloak (see separate man page)

   zipnote (see separate man page)

   zipsplit (see separate man page)

   Note: Command line processing in zip has been changed to support long
   options and handle all options and arguments more consistently. Some
   old command lines that depend on command line inconsistencies may no
   longer work.

Description

   zip is a compression and file packaging utility for Unix, VMS, MSDOS,
   OS/2, Windows 9x/NT/XP, Minix, Atari, Macintosh, Amiga, and Acorn RISC
   OS. It is analogous to a combination of the Unix commands tar(1)
   and compress(1) and is compatible with PKZIP (Phil Katz's ZIP for
   MSDOS systems).

   A companion program (unzip(1L) ) unpacks zip archives. The zip and
   unzip(1L) programs can work with archives produced by PKZIP
   (supporting most PKZIP features up to PKZIP version 4.6), and PKZIP
   and PKUNZIP can work with archives produced by zip (with some
   exceptions, notably streamed archives, but recent changes in the zip
   file standard may facilitate better compatibility). zip version 3.0 is
   compatible with PKZIP 2.04 and also supports the Zip64 extensions of
   PKZIP 4.5 which allow archives as well as files to exceed the previous
   2 GB limit (4 GB in some cases). zip also now supports bzip2
   compression if the bzip2 library is included when zip is compiled.
   Note that PKUNZIP 1.10 cannot extract files produced by PKZIP 2.04 or
   zip 3.0. You must use PKUNZIP 2.04g or unzip 5.0p1 (or later versions)
   to extract them.

   See the EXAMPLES section at the bottom of this page for examples of
   some typical uses of zip.

   Large Archives and Zip64. zip automatically uses the Zip64 extensions
   when files larger than 4 GB are added to an archive, an archive
   containing Zip64 entries is updated (if the resulting archive still
   needs Zip64), the size of the archive will exceed 4 GB, or when the
   number of entries in the archive will exceed about 64K. Zip64 is also
   used for archives streamed from standard input as the size of such
   archives are not known in advance, but the option -fz- can be used to
   force zip to create PKZIP 2 compatible archives (as long as Zip64
   extensions are not needed). You must use a PKZIP 4.5 compatible unzip,
   such as unzip 6.0 or later, to extract files using the Zip64
   extensions.

   In addition, streamed archives, entries encrypted with standard
   encryption, or split archives created with the pause option may not be
   compatible with PKZIP as data descriptors are used and PKZIP at the
   time of this writing does not support data descriptors (but recent
   changes in the PKWare published zip standard now include some support
   for the data descriptor format zip uses).

   Mac OS X. Though previous Mac versions had their own zip port, zip
   supports Mac OS X as part of the Unix port and most Unix features
   apply. References to "MacOS" below generally refer to MacOS versions
   older than OS X. Support for some Mac OS features in the Unix Mac OS X
   port, such as resource forks, is expected in the next zip release.

   For a brief help on zip and unzip, run each without specifying any
   parameters on the command line.

Use

   The program is useful for packaging a set of files for distribution;
   for archiving files; and for saving disk space by temporarily
   compressing unused files or directories.

   The zip program puts one or more compressed files into a single zip
   archive, along with information about the files (name, path, date,
   time of last modification, protection, and check information to verify
   file integrity). An entire directory structure can be packed into a
   zip archive with a single command. Compression ratios of 2:1 to 3:1
   are common for text files. zip has one compression method (deflation)
   and can also store files without compression. (If bzip2 support is
   added, zip can also compress using bzip2 compression, but such entries
   require a reasonably modern unzip to decompress. When bzip2
   compression is selected, it replaces deflation as the default method.)
   zip automatically chooses the better of the two (deflation or store
   or, if bzip2 is selected, bzip2 or store) for each file to be
   compressed.

   Command format. The basic command format is

   zip options archive inpath inpath ...

   where archive is a new or existing zip archive and inpath is a
   directory or file path optionally including wildcards. When given the
   name of an existing zip archive, zip will replace identically named
   entries in the zip archive (matching the relative names as stored in
   the archive) or add entries for new names. For example, if foo.zip
   exists and contains foo/file1 and foo/file2, and the directory foo
   contains the files foo/file1 and foo/file3, then:

   zip -r foo.zip foo

   or more concisely

   zip -r foo foo

   will replace foo/file1 in foo.zip and add foo/file3 to foo.zip. After
   this, foo.zip contains foo/file1, foo/file2, and foo/file3, with
   foo/file2 unchanged from before.

   So if before the zip command is executed foo.zip has:

   foo/file1 foo/file2

   and directory foo has:

   file1 file3

   then foo.zip will have:

   foo/file1 foo/file2 foo/file3

   where foo/file1 is replaced and foo/file3 is new.

   -@ file lists. If a file list is specified as -@ [Not on MacOS], zip
   takes the list of input files from standard input instead of from the
   command line. For example,

   zip -@ foo

   will store the files listed one per line on stdin in foo.zip.

   Under Unix, this option can be used to powerful effect in conjunction
   with the find (1) command. For example, to archive all the C
   source files in the current directory and its subdirectories:

   find . -name "*.[ch]" -print | zip source -@

   (note that the pattern must be quoted to keep the shell from expanding
   it).

   Streaming input and output. zip will also accept a single dash ("-")
   as the zip file name, in which case it will write the zip file to
   standard output, allowing the output to be piped to another program.
   For example:

   zip -r - . | dd of=/dev/nrst0 obs=16k

   would write the zip output directly to a tape with the specified block
   size for the purpose of backing up the current directory.

   zip also accepts a single dash ("-") as the name of a file to be
   compressed, in which case it will read the file from standard input,
   allowing zip to take input from another program. For example:

   tar cf - . | zip backup -

   would compress the output of the tar command for the purpose of
   backing up the current directory. This generally produces better
   compression than the previous example using the -r option because zip
   can take advantage of redundancy between files. The backup can be
   restored using the command

   unzip -p backup | tar xf -

   When no zip file name is given and stdout is not a terminal, zip acts
   as a filter, compressing standard input to standard output. For
   example,

   tar cf - . | zip | dd of=/dev/nrst0 obs=16k

   is equivalent to

   tar cf - . | zip - - | dd of=/dev/nrst0 obs=16k

   zip archives created in this manner can be extracted with the program
   funzip which is provided in the unzip package, or by gunzip which is
   provided in the gzip package (but some gunzip may not support this if
   zip used the Zip64 extensions). For example:

   dd if=/dev/nrst0 ibs=16k | funzip | tar xvf -

   The stream can also be saved to a file and unzip used.

   If Zip64 support for large files and archives is enabled and zip is
   used as a filter, zip creates a Zip64 archive that requires a PKZIP
   4.5 or later compatible unzip to read it. This is to avoid amgibuities
   in the zip file structure as defined in the current zip standard
   (PKWARE AppNote) where the decision to use Zip64 needs to be made
   before data is written for the entry, but for a stream the size of the
   data is not known at that point. If the data is known to be smaller
   than 4 GB, the option -fz- can be used to prevent use of Zip64, but
   zip will exit with an error if Zip64 was in fact needed. zip 3 and
   unzip 6 and later can read archives with Zip64 entries. Also, zip
   removes the Zip64 extensions if not needed when archive entries are
   copied (see the -U (--copy) option).

   When directing the output to another file, note that all options
   should be before the redirection including -x. For example:

   zip archive "*.h" "*.c" -x donotinclude.h orthis.h > tofile

   Zip files. When changing an existing zip archive, zip will write a
   temporary file with the new contents, and only replace the old one
   when the process of creating the new version has been completed
   without error.

   If the name of the zip archive does not contain an extension, the
   extension .zip is added. If the name already contains an extension
   other than .zip, the existing extension is kept unchanged. However,
   split archives (archives split over multiple files) require the .zip
   extension on the last split.

   Scanning and reading files. When zip starts, it scans for files to
   process (if needed). If this scan takes longer than about 5 seconds,
   zip will display a "Scanning files" message and start displaying
   progress dots every 2 seconds or every so many entries processed,
   whichever takes longer. If there is more than 2 seconds between dots
   it could indicate that finding each file is taking time and could mean
   a slow network connection for example. (Actually the initial file scan
   is a two-step process where the directory scan is followed by a sort
   and these two steps are separated with a space in the dots. If
   updating an existing archive, a space also appears between the
   existing file scan and the new file scan.) The scanning files dots are
   not controlled by the -ds dot size option, but the dots are turned off
   by the -q quiet option. The -sf show files option can be used to scan
   for files and get the list of files scanned without actually
   processing them.

   If zip is not able to read a file, it issues a warning but continues.
   See the -MM option below for more on how zip handles patterns that are
   not matched and files that are not readable. If some files were
   skipped, a warning is issued at the end of the zip operation noting
   how many files were read and how many skipped.

   Command modes. zip now supports two distinct types of command modes,
   external and internal. The external modes (add, update, and freshen)
   read files from the file system (as well as from an existing archive)
   while the internal modes (delete and copy) operate exclusively on
   entries in an existing archive.

   add
          Update existing entries and add new files. If the archive does
          not exist create it. This is the default mode.

   update (-u)
          Update existing entries if newer on the file system and add new
          files. If the archive does not exist issue warning then create
          a new archive.

   freshen (-f)
          Update existing entries of an archive if newer on the file
          system. Does not add new files to the archive.

   delete (-d)
          Select entries in an existing archive and delete them.

   copy (-U)
          Select entries in an existing archive and copy them to a new
          archive. This new mode is similar to update but command line
          patterns select entries in the existing archive rather than
          files from the file system and it uses the --out option to
          write the resulting archive to a new file rather than update
          the existing archive, leaving the original archive unchanged.

   The new File Sync option (-FS) is also considered a new mode, though
   it is similar to update. This mode synchronizes the archive with the
   files on the OS, only replacing files in the archive if the file time
   or size of the OS file is different, adding new files, and deleting
   entries from the archive where there is no matching file. As this mode
   can delete entries from the archive, consider making a backup copy of
   the archive.

   Also see -DF for creating difference archives.

   See each option description below for details and the EXAMPLES section
   below for examples.

   Split archives. zip version 3.0 and later can create split archives. A
   split archive is a standard zip archive split over multiple files.
   (Note that split archives are not just archives split in to pieces, as
   the offsets of entries are now based on the start of each split.
   Concatenating the pieces together will invalidate these offsets, but
   unzip can usually deal with it. zip will usually refuse to process
   such a spliced archive unless the -FF fix option is used to fix the
   offsets.)

   One use of split archives is storing a large archive on multiple
   removable media. For a split archive with 20 split files the files are
   typically named (replace ARCHIVE with the name of your archive)
   ARCHIVE.z01, ARCHIVE.z02, ..., ARCHIVE.z19, ARCHIVE.zip. Note that the
   last file is the .zip file. In contrast, spanned archives are the
   original multi-disk archive generally requiring floppy disks and using
   volume labels to store disk numbers. zip supports split archives but
   not spanned archives, though a procedure exists for converting split
   archives of the right size to spanned archives. The reverse is also
   true, where each file of a spanned archive can be copied in order to
   files with the above names to create a split archive.

   Use -s to set the split size and create a split archive. The size is
   given as a number followed optionally by one of k (kB), m (MB), g
   (GB), or t (TB) (the default is m). The -sp option can be used to
   pause zip between splits to allow changing removable media, for
   example, but read the descriptions and warnings for both -s and -sp
   below.

   Though zip does not update split archives, zip provides the new option
   -O (--output-file or --out) to allow split archives to be updated and
   saved in a new archive. For example,

   zip inarchive.zip foo.c bar.c --out outarchive.zip

   reads archive inarchive.zip, even if split, adds the files foo.c and
   bar.c, and writes the resulting archive to outarchive.zip. If
   inarchive.zip is split then outarchive.zip defaults to the same split
   size. Be aware that if outarchive.zip and any split files that are
   created with it already exist, these are always overwritten as needed
   without warning. This may be changed in the future.

   Unicode. Though the zip standard requires storing paths in an archive
   using a specific character set, in practice zips have stored paths in
   archives in whatever the local character set is. This creates problems
   when an archive is created or updated on a system using one character
   set and then extracted on another system using a different character
   set. When compiled with Unicode support enabled on platforms that
   support wide characters, zip now stores, in addition to the standard
   local path for backward compatibility, the UTF-8 translation of the
   path. This provides a common universal character set for storing paths
   that allows these paths to be fully extracted on other systems that
   support Unicode and to match as close as possible on systems that
   don't.

   On Win32 systems where paths are internally stored as Unicode but
   represented in the local character set, it's possible that some paths
   will be skipped during a local character set directory scan. zip with
   Unicode support now can read and store these paths. Note that Win 9x
   systems and FAT file systems don't fully support Unicode.

   Be aware that console windows on Win32 and Unix, for example,
   sometimes don't accurately show all characters due to how each
   operating system switches in character sets for display. However,
   directory navigation tools should show the correct paths if the needed
   fonts are loaded.

   Command line format. This version of zip has updated command line
   processing and support for long options.

   Short options take the form

   -s[-][s[-]...][value][=value][ value]

   where s is a one or two character short option. A short option that
   takes a value is last in an argument and anything after it is taken as
   the value. If the option can be negated and "-" immediately follows
   the option, the option is negated. Short options can also be given as
   separate arguments

   -s[-][value][=value][ value] -s[-][value][=value][ value] ...

   Short options in general take values either as part of the same
   argument or as the following argument. An optional = is also
   supported. So

   -ttmmddyyyy

   and

   -tt=mmddyyyy

   and

   -tt mmddyyyy

   all work. The -x and -i options accept lists of values and use a
   slightly different format described below. See the -x and -i options.

   Long options take the form

   --longoption[-][=value][ value]

   where the option starts with --, has a multicharacter name, can
   include a trailing dash to negate the option (if the option supports
   it), and can have a value (option argument) specified by preceeding it
   with = (no spaces). Values can also follow the argument. So

   --before-date=mmddyyyy

   and

   --before-date mmddyyyy

   both work.

   Long option names can be shortened to the shortest unique
   abbreviation. See the option descriptions below for which support long
   options. To avoid confusion, avoid abbreviating a negatable option
   with an embedded dash ("-") at the dash if you plan to negate it (the
   parser would consider a trailing dash, such as for the option
   --some-option using --some- as the option, as part of the name rather
   than a negating dash). This may be changed to force the last dash in
   --some- to be negating in the future.

Options

   -a

   --ascii
          [Systems using EBCDIC] Translate file to ASCII format.

   -A

   --adjust-sfx
          Adjust self-extracting executable archive. A self-extracting
          executable archive is created by prepending the SFX stub to an
          existing archive. The -A option tells zip to adjust the entry
          offsets stored in the archive to take into account this
          "preamble" data.

   Note: self-extracting archives for the Amiga are a special case. At
   present, only the Amiga port of zip is capable of adjusting or
   updating these without corrupting them. -J can be used to remove the
   SFX stub if other updates need to be made.

   -AC

   --archive-clear
          [WIN32] Once archive is created (and tested if -T is used,
          which is recommended), clear the archive bits of files
          processed. WARNING: Once the bits are cleared they are cleared.
          You may want to use the -sf show files option to store the list
          of files processed in case the archive operation must be
          repeated. Also consider using the -MM must match option. Be
          sure to check out -DF as a possibly better way to do
          incremental backups.

   -AS

   --archive-set
          [WIN32] Only include files that have the archive bit set.
          Directories are not stored when -AS is used, though by default
          the paths of entries, including directories, are stored as
          usual and can be used by most unzips to recreate directories.

          The archive bit is set by the operating system when a file is
          modified and, if used with -AC, -AS can provide an incremental
          backup capability. However, other applications can modify the
          archive bit and it may not be a reliable indicator of which
          files have changed since the last archive operation.
          Alternative ways to create incremental backups are using -t to
          use file dates, though this won't catch old files copied to
          directories being archived, and -DF to create a differential
          archive.

   -B

   --binary
          [VM/CMS and MVS] force file to be read binary (default is
          text).

   -Bn
          [TANDEM] set Edit/Enscribe formatting options with n defined as

     bit 0: Don't add delimiter (Edit/Enscribe)

     bit 1: Use LF rather than CR/LF as delimiter (Edit/Enscribe)

     bit 2: Space fill record to maximum record length (Enscribe)

     bit 3: Trim trailing space (Enscribe)

     bit 8: Force 30K (Expand) large read for unstructured files

   -b path

   --temp-path path
          Use the specified path for the temporary zip archive. For
          example:

   zip -b /tmp stuff *

   will put the temporary
          zip archive in the directory /tmp, copying over stuff.zip to
          the current directory when done. This option is useful when
          updating an existing archive and the file system containing
          this old archive does not have enough space to hold both old
          and new archives at the same time. It may also be useful when
          streaming in some cases to avoid the need for data descriptors.
          Note that using this option may require zip take additional
          time to copy the archive file when done to the destination file
          system.

   -c

   --entry-comments
          Add one-line comments for each file. File operations (adding,
          updating) are done first, and the user is then prompted for a
          one-line comment for each file. Enter the comment followed by
          return, or just return for no comment.

   -C

   --preserve-case
          [VMS] Preserve case all on VMS. Negating this option (-C-)
          downcases.

   -C2

   --preserve-case-2
          [VMS] Preserve case ODS2 on VMS. Negating this option (-C2-)
          downcases.

   -C5

   --preserve-case-5
          [VMS] Preserve case ODS5 on VMS. Negating this option (-C5-)
          downcases.

   -d

   --delete
          Remove (delete) entries from a zip archive. For example:

   zip -d foo foo/tom/junk foo/harry/\* \*.o

   will remove the entry
          foo/tom/junk, all of the files that start with foo/harry/, and
          all of the files that end with .o (in any path). Note that
          shell pathname expansion has been inhibited with backslashes,
          so that zip can see the asterisks, enabling zip to match on the
          contents of the zip archive instead of the contents of the
          current directory. (The backslashes are not used on MSDOS-based
          platforms.) Can also use quotes to escape the asterisks as in

   zip -d foo foo/tom/junk "foo/harry/*" "*.o"

   Not escaping the asterisks on a system where the shell expands
          wildcards could result in the asterisks being converted to a
          list of files in the current directory and that list used to
          delete entries from the archive.

   Under MSDOS,
          -d is case sensitive when it matches names in the zip archive.
          This requires that file names be entered in upper case if they
          were zipped by PKZIP on an MSDOS system. (We considered making
          this case insensitive on systems where paths were case
          insensitive, but it is possible the archive came from a system
          where case does matter and the archive could include both Bar
          and bar as separate files in the archive.) But see the new
          option -ic to ignore case in the archive.

   -db

   --display-bytes
          Display running byte counts showing the bytes zipped and the
          bytes to go.

   -dc

   --display-counts
          Display running count of entries zipped and entries to go.

   -dd

   --display-dots
          Display dots while each entry is zipped (except on ports that
          have their own progress indicator). See -ds below for setting
          dot size. The default is a dot every 10 MB of input file
          processed. The -v option also displays dots (previously at a
          much higher rate than this but now -v also defaults to 10 MB)
          and this rate is also controlled by -ds.

   -df

   --datafork
          [MacOS] Include only data-fork of files zipped into the
          archive. Good for exporting files to foreign operating-systems.
          Resource-forks will be ignored at all.

   -dg

   --display-globaldots
          Display progress dots for the archive instead of for each file.
          The command

   zip -qdgds 10m

   will turn off most output except dots every 10 MB.

   -ds size

   --dot-size size
          Set amount of input file processed for each dot displayed. See
          -dd to enable displaying dots. Setting this option implies -dd.
          Size is in the format nm where n is a number and m is a
          multiplier. Currently m can be k (KB), m (MB), g (GB), or t
          (TB), so if n is 100 and m is k, size would be 100k which is
          100 KB. The default is 10 MB.

   The -v option also displays dots and now defaults to
          10 MB also. This rate is also controlled by this option. A size
          of 0 turns dots off.

   This option does not control the dots from the "Scanning files"
          message as
          zip scans for input files. The dot size for that is fixed at 2
          seconds or a fixed number of entries, whichever is longer.

   -du

   --display-usize
          Display the uncompressed size of each entry.

   -dv

   --display-volume
          Display the volume (disk) number each entry is being read from,
          if reading an existing archive, and being written to.

   -D

   --no-dir-entries
          Do not create entries in the zip archive for directories.
          Directory entries are created by default so that their
          attributes can be saved in the zip archive. The environment
          variable ZIPOPT can be used to change the default options. For
          example under Unix with sh:

   ZIPOPT="-D"; export ZIPOPT

   (The variable ZIPOPT can be used for any option, including -i and -x
          using a new option format detailed below, and can include
          several options.) The option -D is a shorthand for -x "*/" but
          the latter previously could not be set as default in the ZIPOPT
          environment variable as the contents of ZIPOPT gets inserted
          near the beginning of the command line and the file list had to
          end at the end of the line.

   This version of
          zip does allow -x and -i options in ZIPOPT if the form

   -x file file ... @

   is used, where the @ (an argument that is just @) terminates
          the list.

   -DF

   --difference-archive
          Create an archive that contains all new and changed files since
          the original archive was created. For this to work, the input
          file list and current directory must be the same as during the
          original zip operation.

   For example, if the existing archive was created using

   zip -r foofull .

   from the bar directory, then the command

   zip -r foofull . -DF --out foonew

   also from the bar directory creates the archive foonew
          with just the files not in foofull and the files where the size
          or file time of the files do not match those in foofull.

          Note that the timezone environment variable TZ should be set
          according to the local timezone in order for this option to
          work correctly. A change in timezone since the original archive
          was created could result in no times matching and all files
          being included.

          A possible approach to backing up a directory might be to
          create a normal archive of the contents of the directory as a
          full backup, then use this option to create incremental
          backups.

   -e

   --encrypt
          Encrypt the contents of the zip archive using a password which
          is entered on the terminal in response to a prompt (this will
          not be echoed; if standard error is not a tty, zip will exit
          with an error). The password prompt is repeated to save the
          user from typing errors.

   -E

   --longnames
          [OS/2] Use the .LONGNAME Extended Attribute (if found) as
          filename.

   -f

   --freshen
          Replace (freshen) an existing entry in the zip archive only if
          it has been modified more recently than the version already in
          the zip archive; unlike the update option (-u) this will not
          add files that are not already in the zip archive. For example:

   zip -f foo

   This command should be run from the same directory from which the
          original
          zip command was run, since paths stored in zip archives are
          always relative.

   Note that the timezone environment variable TZ should be set according
          to
          the local timezone in order for the -f, -u and -o options to
          work correctly.

   The reasons behind this are somewhat subtle but have to do with the
          differences
          between the Unix-format file times (always in GMT) and most of
          the other operating systems (always local time) and the
          necessity to compare the two. A typical TZ value is
          ``MET-1MEST'' (Middle European time with automatic adjustment
          for ``summertime'' or Daylight Savings Time).

   The format is TTThhDDD, where TTT is the time zone such as MET, hh is
          the
          difference between GMT and local time such as -1 above, and DDD
          is the time zone when daylight savings time is in effect. Leave
          off the DDD if there is no daylight savings time. For the US
          Eastern time zone EST5EDT.

   -F

   --fix

   -FF

   --fixfix
          Fix the zip archive. The -F option can be used if some portions
          of the archive are missing, but requires a reasonably intact
          central directory. The input archive is scanned as usual, but
          zip will ignore some problems. The resulting archive should be
          valid, but any inconsistent entries will be left out.

   When doubled as in
          -FF, the archive is scanned from the beginning and zip scans
          for special signatures to identify the limits between the
          archive members. The single -F is more reliable if the archive
          is not too much damaged, so try this option first.

   If the archive is too damaged or the end has been truncated, you
          must use -FF. This is a change from zip 2.32, where the -F
          option is able to read a truncated archive. The -F option now
          more reliably fixes archives with minor damage and the -FF
          option is needed to fix archives where -F might have been
          sufficient before.

   Neither option will recover archives that have been incorrectly
          transferred in ascii mode instead of binary. After the repair,
          the -t option of unzip may show that some files have a bad CRC.
          Such files cannot be recovered; you can remove them from the
          archive using the -d option of zip.

   Note that -FF may have trouble fixing archives that include an
          embedded zip archive that was stored (without compression) in
          the archive and, depending on the damage, it may find the
          entries in the embedded archive rather than the archive itself.
          Try -F first as it does not have this problem.

   The format of the fix commands have changed. For example, to fix
          the damaged archive foo.zip,

   zip -F foo --out foofix

   tries to read the entries normally, copying good entries to the
          new archive foofix.zip. If this doesn't work, as when the
          archive is truncated, or if some entries you know are in the
          archive are missed, then try

   zip -FF foo --out foofixfix

   and compare the resulting archive to the archive created by -F. The
          -FF option may create an inconsistent archive. Depending on
          what is damaged, you can then use the -F option to fix that
          archive.

   A split archive with missing split files can be fixed using
          -F if you have the last split of the archive (the .zip file).
          If this file is missing, you must use -FF to fix the archive,
          which will prompt you for the splits you have.

   Currently the fix options can't recover entries that have a bad
          checksum
          or are otherwise damaged.

   -FI

   --fifo
          [Unix] Normally zip skips reading any FIFOs (named pipes)
          encountered, as zip can hang if the FIFO is not being fed. This
          option tells zip to read the contents of any FIFO it finds.

   -FS

   --filesync
          Synchronize the contents of an archive with the files on the
          OS. Normally when an archive is updated, new files are added
          and changed files are updated but files that no longer exist on
          the OS are not deleted from the archive. This option enables a
          new mode that checks entries in the archive against the file
          system. If the file time and file size of the entry matches
          that of the OS file, the entry is copied from the old archive
          instead of being read from the file system and compressed. If
          the OS file has changed, the entry is read and compressed as
          usual. If the entry in the archive does not match a file on the
          OS, the entry is deleted. Enabling this option should create
          archives that are the same as new archives, but since existing
          entries are copied instead of compressed, updating an existing
          archive with -FS can be much faster than creating a new
          archive. Also consider using -u for updating an archive.

   For this option to work, the archive should be updated from the same
          directory it was created in so the relative paths match. If few
          files are being copied from the old archive, it may be faster
          to create a new archive instead.

   Note that the timezone environment variable TZ should be set according
          to
          the local timezone in order for this option to work correctly.
          A change in timezone since the original archive was created
          could result in no times matching and recompression of all
          files.

   This option deletes files from the archive. If you need to preserve
          the original archive, make a copy of the archive first or use
          the --out option to output the updated archive to a new file.
          Even though it may be slower, creating a new archive with a new
          archive name is safer, avoids mismatches between archive and OS
          paths, and is preferred.

   -g

   --grow
          Grow (append to) the specified zip archive, instead of creating
          a new one. If this operation fails, zip attempts to restore the
          archive to its original state. If the restoration fails, the
          archive might become corrupted. This option is ignored when
          there's no existing archive or when at least one archive member
          must be updated or deleted.

   -h

   -?

   --help
          Display the zip help information (this also appears if zip is
          run with no arguments).

   -h2

   --more-help
          Display extended help including more on command line format,
          pattern matching, and more obscure options.

   -i files

   --include files
          Include only the specified files, as in:

   zip -r foo . -i \*.c

   which will include only the files that end in
          .c in the current directory and its subdirectories. (Note for
          PKZIP users: the equivalent command is

   pkzip -rP foo *.c

   PKZIP does not allow recursion in directories other than the current
          one.)
          The backslash avoids the shell filename substitution, so that
          the name matching is performed by zip at all directory levels.
          [This is for Unix and other systems where \ escapes the next
          character. For other systems where the shell does not process *
          do not use \ and the above is

   zip -r foo . -i *.c

   Examples are for Unix unless otherwise specified.] So to include dir,
          a directory directly under the current directory, use

   zip -r foo . -i dir/\*

   or

   zip -r foo . -i "dir/*"

   to match paths such as dir/a and dir/b/file.c [on
          ports without wildcard expansion in the shell such as MSDOS and
          Windows

   zip -r foo . -i dir/*

   is used.] Note that currently the trailing / is needed
          for directories (as in

   zip -r foo . -i dir/

   to include directory dir).

   The long option form of the first example is

   zip -r foo . --include \*.c

   and does the same thing as the short option form.

   Though the command syntax used to require -i at
          the end of the command line, this version actually allows -i
          (or --include) anywhere. The list of files terminates at the
          next argument starting with -, the end of the command line, or
          the list terminator @ (an argument that is just @). So the
          above can be given as

   zip -i \*.c @ -r foo .

   for example. There must be a space between
          the option and the first file of a list. For just one file you
          can use the single value form

   zip -i\*.c -r foo .

   (no space between option and value) or

   zip --include=\*.c -r foo .

   as additional examples. The single value forms are
          not recommended because they can be confusing and, in
          particular, the -ifile format can cause problems if the first
          letter of file combines with i to form a two-letter option
          starting with i. Use -sc to see how your command line will be
          parsed.

   Also possible:

   zip -r foo . -i@include.lst

   which will only include the files in the current directory and its
          subdirectories that match the patterns in the file include.lst.

   Files to -i and -x are patterns matching internal archive paths. See
          -R for more on patterns.

   -I

   --no-image
          [Acorn RISC OS] Don't scan through Image files. When used, zip
          will not consider Image files (eg. DOS partitions or Spark
          archives when SparkFS is loaded) as directories but will store
          them as single files.

          For example, if you have SparkFS loaded, zipping a Spark
          archive will result in a zipfile containing a directory (and
          its content) while using the 'I' option will result in a
          zipfile containing a Spark archive. Obviously this second case
          will also be obtained (without the 'I' option) if SparkFS isn't
          loaded.

   -ic

   --ignore-case
          [VMS, WIN32] Ignore case when matching archive entries. This
          option is only available on systems where the case of files is
          ignored. On systems with case-insensitive file systems, case is
          normally ignored when matching files on the file system but is
          not ignored for -f (freshen), -d (delete), -U (copy), and
          similar modes when matching against archive entries (currently
          -f ignores case on VMS) because archive entries can be from
          systems where case does matter and names that are the same
          except for case can exist in an archive. The -ic option makes
          all matching case insensitive. This can result in multiple
          archive entries matching a command line pattern.

   -j

   --junk-paths
          Store just the name of a saved file (junk the path), and do not
          store directory names. By default, zip will store the full path
          (relative to the current directory).

   -jj

   --absolute-path
          [MacOS] record Fullpath (+ Volname). The complete path
          including volume will be stored. By default the relative path
          will be stored.

   -J

   --junk-sfx
          Strip any prepended data (e.g. a SFX stub) from the archive.

   -k

   --DOS-names
          Attempt to convert the names and paths to conform to MSDOS,
          store only the MSDOS attribute (just the user write attribute
          from Unix), and mark the entry as made under MSDOS (even though
          it was not); for compatibility with PKUNZIP under MSDOS which
          cannot handle certain names such as those with two dots.

   -l

   --to-crlf
          Translate the Unix end-of-line character LF into the MSDOS
          convention CR LF. This option should not be used on binary
          files. This option can be used on Unix if the zip file is
          intended for PKUNZIP under MSDOS. If the input files already
          contain CR LF, this option adds an extra CR. This is to ensure
          that unzip -a on Unix will get back an exact copy of the
          original file, to undo the effect of zip -l. See -ll for how
          binary files are handled.

   -la

   --log-append
          Append to existing logfile. Default is to overwrite.

   -lf logfilepath

   --logfile-path logfilepath
          Open a logfile at the given path. By default any existing file
          at that location is overwritten, but the -la option will result
          in an existing file being opened and the new log information
          appended to any existing information. Only warnings and errors
          are written to the log unless the -li option is also given,
          then all information messages are also written to the log.

   -li

   --log-info
          Include information messages, such as file names being zipped,
          in the log. The default is to only include the command line,
          any warnings and errors, and the final status.

   -ll

   --from-crlf
          Translate the MSDOS end-of-line CR LF into Unix LF. This option
          should not be used on binary files. This option can be used on
          MSDOS if the zip file is intended for unzip under Unix. If the
          file is converted and the file is later determined to be binary
          a warning is issued and the file is probably corrupted. In this
          release if -ll detects binary in the first buffer read from a
          file, zip now issues a warning and skips line end conversion on
          the file. This check seems to catch all binary files tested,
          but the original check remains and if a converted file is later
          determined to be binary that warning is still issued. A new
          algorithm is now being used for binary detection that should
          allow line end conversion of text files in UTF-8 and similar
          encodings.

   -L

   --license
          Display the zip license.

   -m

   --move
          Move the specified files into the zip archive; actually, this
          deletes the target directories/files after making the specified
          zip archive. If a directory becomes empty after removal of the
          files, the directory is also removed. No deletions are done
          until zip has created the archive without error. This is useful
          for conserving disk space, but is potentially dangerous so it
          is recommended to use it in combination with -T to test the
          archive before removing all input files.

   -MM

   --must-match
          All input patterns must match at least one file and all input
          files found must be readable. Normally when an input pattern
          does not match a file the "name not matched" warning is issued
          and when an input file has been found but later is missing or
          not readable a missing or not readable warning is issued. In
          either case zip continues creating the archive, with missing or
          unreadable new files being skipped and files already in the
          archive remaining unchanged. After the archive is created, if
          any files were not readable zip returns the OPEN error code (18
          on most systems) instead of the normal success return (0 on
          most systems). With -MM set, zip exits as soon as an input
          pattern is not matched (whenever the "name not matched" warning
          would be issued) or when an input file is not readable. In
          either case zip exits with an OPEN error and no archive is
          created.

   This option is useful when a known list of files is to be zipped so
          any missing or unreadable files will result in an error. It is
          less useful when used with wildcards, but zip will still exit
          with an error if any input pattern doesn't match at least one
          file and if any matched files are unreadable. If you want to
          create the archive anyway and only need to know if files were
          skipped, don't use -MM and just check the return code. Also -lf
          could be useful.

   -n suffixes

   --suffixes suffixes
          Do not attempt to compress files named with the given suffixes.
          Such files are simply stored (0% compression) in the output zip
          file, so that zip doesn't waste its time trying to compress
          them. The suffixes are separated by either colons or
          semicolons. For example:

   zip -rn .Z:.zip:.tiff:.gif:.snd foo foo

   will copy everything from
          foo into foo.zip, but will store any files that end in .Z,
          .zip, .tiff, .gif, or .snd without trying to compress them
          (image and sound files often have their own specialized
          compression methods). By default, zip does not compress files
          with extensions in the list .Z:.zip:.zoo:.arc:.lzh:.arj. Such
          files are stored directly in the output archive. The
          environment variable ZIPOPT can be used to change the default
          options. For example under Unix with csh:

   setenv ZIPOPT "-n .gif:.zip"

   To attempt compression on all files, use:

   zip -n : foo

   The maximum compression option
          -9 also attempts compression on all files regardless of
          extension.

   On Acorn RISC OS systems the suffixes are actually filetypes (3 hex
          digit
          format). By default, zip does not compress files with filetypes
          in the list DDC:D96:68E (i.e. Archives, CFS files and PackDir
          files).

   -nw

   --no-wild
          Do not perform internal wildcard processing (shell processing
          of wildcards is still done by the shell unless the arguments
          are escaped). Useful if a list of paths is being read and no
          wildcard substitution is desired.

   -N

   --notes
          [Amiga, MacOS] Save Amiga or MacOS filenotes as zipfile
          comments. They can be restored by using the -N option of unzip.
          If -c is used also, you are prompted for comments only for
          those files that do not have filenotes.

   -o

   --latest-time
          Set the "last modified" time of the zip archive to the latest
          (oldest) "last modified" time found among the entries in the
          zip archive. This can be used without any other operations, if
          desired. For example:

   zip -o foo

   will change the last modified time of
          foo.zip to the latest time of the entries in foo.zip.

   -O output-file

   --output-file output-file
          Process the archive changes as usual, but instead of updating
          the existing archive, output the new archive to output-file.
          Useful for updating an archive without changing the existing
          archive and the input archive must be a different file than the
          output archive.

          This option can be used to create updated split archives. It
          can also be used with -U to copy entries from an existing
          archive to a new archive. See the EXAMPLES section below.

          Another use is converting zip files from one split size to
          another. For instance, to convert an archive with 700 MB CD
          splits to one with 2 GB DVD splits, can use:

   zip -s 2g cd-split.zip --out dvd-split.zip

   which uses copy mode. See -U below. Also:

   zip -s 0 split.zip --out unsplit.zip

   will convert a split archive to a single-file archive.
          Copy mode will convert stream entries (using data descriptors
          and which should be compatible with most unzips) to normal
          entries (which should be compatible with all unzips), except if
          standard encryption was used. For archives with encrypted
          entries, zipcloak will decrypt the entries and convert them to
          normal entries.

   -p

   --paths
          Include relative file paths as part of the names of files
          stored in the archive. This is the default. The -j option junks
          the paths and just stores the names of the files.

   -P password

   --password password
          Use password to encrypt zipfile entries (if any). THIS IS
          INSECURE! Many multi-user operating systems provide ways for
          any user to see the current command line of any other user;
          even on stand-alone systems there is always the threat of
          over-the-shoulder peeking. Storing the plaintext password as
          part of a command line in an automated script is even worse.
          Whenever possible, use the non-echoing, interactive prompt to
          enter passwords. (And where security is truly important, use
          strong encryption such as Pretty Good Privacy instead of the
          relatively weak standard encryption provided by zipfile
          utilities.)

   -q

   --quiet
          Quiet mode; eliminate informational messages and comment
          prompts. (Useful, for example, in shell scripts and background
          tasks).

   -Qn

   --Q-flag n
          [QDOS] store information about the file in the file header with
          n defined as

     bit 0:

   Don't add headers for any file

     bit 1: Add headers for all files

     bit 2: Don't wait for interactive key press on exit

   -r

   --recurse-paths
          Travel the directory structure recursively; for example:

   zip -r foo.zip foo

   or more concisely

   zip -r foo foo

   In this case, all the files and directories in
          foo are saved in a zip archive named foo.zip, including files
          with names starting with ".", since the recursion does not use
          the shell's file-name substitution mechanism. If you wish to
          include only a specific subset of the files in directory foo
          and its subdirectories, use the -i option to specify the
          pattern of files to be included. You should not use -r with the
          name ".*", since that matches ".." which will attempt to zip up
          the parent directory (probably not what was intended).

   Multiple source directories are allowed as in

   zip -r foo foo1 foo2

   which first zips up foo1 and then foo2, going down each directory.

   Note that while wildcards to -r are typically resolved while recursing
          down
          directories in the file system, any -R, -x, and -i wildcards
          are applied to internal archive pathnames once the directories
          are scanned. To have wildcards apply to files in subdirectories
          when recursing on Unix and similar systems where the shell does
          wildcard substitution, either escape all wildcards or put all
          arguments with wildcards in quotes. This lets zip see the
          wildcards and match files in subdirectories using them as it
          recurses.

   -R

   --recurse-patterns
          Travel the directory structure recursively starting at the
          current directory; for example:

   zip -R foo "*.c"

   In this case, all the files matching *.c in the tree starting at the
          current directory are stored into a zip archive named foo.zip.
          Note that *.c will match file.c, a/file.c and a/b/.c. More than
          one pattern can be listed as separate arguments. Note for PKZIP
          users: the equivalent command is

   pkzip -rP foo *.c

   Patterns are relative file paths as they appear in the archive, or
          will after
          zipping, and can have optional wildcards in them. For example,
          given the current directory is foo and under it are directories
          foo1 and foo2 and in foo1 is the file bar.c,

   zip -R foo/*

   will zip up foo, foo/foo1, foo/foo1/bar.c, and foo/foo2.

   zip -R */bar.c

   will zip up foo/foo1/bar.c. See the note for -r on escaping wildcards.

   -RE

   --regex
          [WIN32] Before zip 3.0, regular expression list matching was
          enabled by default on Windows platforms. Because of confusion
          resulting from the need to escape "[" and "]" in names, it is
          now off by default for Windows so "[" and "]" are just normal
          characters in names. This option enables [] matching again.

   -s splitsize

   --split-size splitsize
          Enable creating a split archive and set the split size. A split
          archive is an archive that could be split over many files. As
          the archive is created, if the size of the archive reaches the
          specified split size, that split is closed and the next split
          opened. In general all splits but the last will be the split
          size and the last will be whatever is left. If the entire
          archive is smaller than the split size a single-file archive is
          created.

          Split archives are stored in numbered files. For example, if
          the output archive is named archive and three splits are
          required, the resulting archive will be in the three files
          archive.z01, archive.z02, and archive.zip. Do not change the
          numbering of these files or the archive will not be readable as
          these are used to determine the order the splits are read.

          Split size is a number optionally followed by a multiplier.
          Currently the number must be an integer. The multiplier can
          currently be one of k (kilobytes), m (megabytes), g
          (gigabytes), or t (terabytes). As 64k is the minimum split
          size, numbers without multipliers default to megabytes. For
          example, to create a split archive called foo with the contents
          of the bar directory with splits of 670 MB that might be useful
          for burning on CDs, the command:

   zip -s 670m -r foo bar

   could be used.
          Currently the old splits of a split archive are not excluded
          from a new archive, but they can be specifically excluded. If
          possible, keep the input and output archives out of the path
          being zipped when creating split archives.

          Using -s without -sp as above creates all the splits where foo
          is being written, in this case the current directory. This
          split mode updates the splits as the archive is being created,
          requiring all splits to remain writable, but creates split
          archives that are readable by any unzip that supports split
          archives. See -sp below for enabling split pause mode which
          allows splits to be written directly to removable media.

          The option -sv can be used to enable verbose splitting and
          provide details of how the splitting is being done. The -sb
          option can be used to ring the bell when zip pauses for the
          next split destination.

          Split archives cannot be updated, but see the -O (--out) option
          for how a split archive can be updated as it is copied to a new
          archive. A split archive can also be converted into a
          single-file archive using a split size of 0 or negating the -s
          option:

   zip -s 0 split.zip --out single.zip

   Also see -U (--copy) for more on using copy mode.

   -sb

   --split-bell
          If splitting and using split pause mode, ring the bell when zip
          pauses for each split destination.

   -sc

   --show-command
          Show the command line starting zip as processed and exit. The
          new command parser permutes the arguments, putting all options
          and any values associated with them before any non-option
          arguments. This allows an option to appear anywhere in the
          command line as long as any values that go with the option go
          with it. This option displays the command line as zip sees it,
          including any arguments from the environment such as from the
          ZIPOPT variable. Where allowed, options later in the command
          line can override options earlier in the command line.

   -sf

   --show-files
          Show the files that would be operated on, then exit. For
          instance, if creating a new archive, this will list the files
          that would be added. If the option is negated, -sf-, output
          only to an open log file. Screen display is not recommended for
          large lists.

   -so

   --show-options
          Show all available options supported by zip as compiled on the
          current system. As this command reads the option table, it
          should include all options. Each line includes the short option
          (if defined), the long option (if defined), the format of any
          value that goes with the option, if the option can be negated,
          and a small description. The value format can be no value,
          required value, optional value, single character value, number
          value, or a list of values. The output of this option is not
          intended to show how to use any option but only show what
          options are available.

   -sp

   --split-pause
          If splitting is enabled with -s, enable split pause mode. This
          creates split archives as -s does, but stream writing is used
          so each split can be closed as soon as it is written and zip
          will pause between each split to allow changing split
          destination or media.

          Though this split mode allows writing splits directly to
          removable media, it uses stream archive format that may not be
          readable by some unzips. Before relying on splits created with
          -sp, test a split archive with the unzip you will be using.

          To convert a stream split archive (created with -sp) to a
          standard archive see the --out option.

   -su

   --show-unicode
          As -sf, but also show Unicode version of the path if exists.

   -sU

   --show-just-unicode
          As -sf, but only show Unicode version of the path if exists,
          otherwise show the standard version of the path.

   -sv

   --split-verbose
          Enable various verbose messages while splitting, showing how
          the splitting is being done.

   -S

   --system-hidden
          [MSDOS, OS/2, WIN32 and ATARI] Include system and hidden files.

     [MacOS] Includes finder invisible files, which are ignored
     otherwise.

   -t mmddyyyy

   --from-date mmddyyyy
          Do not operate on files modified prior to the specified date,
          where mm is the month (00-12), dd is the day of the month
          (01-31), and yyyy is the year. The ISO 8601 date format
          yyyy-mm-dd is also accepted. For example:

   zip -rt 12071991 infamy foo

   zip -rt 1991-12-07 infamy foo

   will add all the files in
          foo and its subdirectories that were last modified on or after
          7 December 1991, to the zip archive infamy.zip.

   -tt mmddyyyy

   --before-date mmddyyyy
          Do not operate on files modified after or at the specified
          date, where mm is the month (00-12), dd is the day of the month
          (01-31), and yyyy is the year. The ISO 8601 date format
          yyyy-mm-dd is also accepted. For example:

   zip -rtt 11301995 infamy foo

   zip -rtt 1995-11-30 infamy foo

   will add all the files in
          foo and its subdirectories that were last modified before 30
          November 1995, to the zip archive infamy.zip.

   -T

   --test
          Test the integrity of the new zip file. If the check fails, the
          old zip file is unchanged and (with the -m option) no input
          files are removed.

   -TT cmd

   --unzip-command cmd
          Use command cmd instead of 'unzip -tqq' to test an archive when
          the -T option is used. On Unix, to use a copy of unzip in the
          current directory instead of the standard system unzip, could
          use:

   zip archive file1 file2 -T -TT "./unzip -tqq"

   In cmd, {} is replaced by the name of the temporary archive, otherwise
          the name
          of the archive is appended to the end of the command. The
          return code is checked for success (0 on Unix).

   -u

   --update
          Replace (update) an existing entry in the zip archive only if
          it has been modified more recently than the version already in
          the zip archive. For example:

   zip -u stuff *

   will add any new files in the current directory,
          and update any files which have been modified since the zip
          archive stuff.zip was last created/modified (note that zip will
          not try to pack stuff.zip into itself when you do this).

   Note that the
          -u option with no input file arguments acts like the -f
          (freshen) option.

   -U

   --copy-entries
          Copy entries from one archive to another. Requires the --out
          option to specify a different output file than the input
          archive. Copy mode is the reverse of -d delete. When delete is
          being used with --out, the selected entries are deleted from
          the archive and all other entries are copied to the new
          archive, while copy mode selects the files to include in the
          new archive. Unlike -u update, input patterns on the command
          line are matched against archive entries only and not the file
          system files. For instance,

   zip inarchive "*.c" --copy --out outarchive

   copies entries with names ending in .c from inarchive
          to outarchive. The wildcard must be escaped on some systems to
          prevent the shell from substituting names of files from the
          file system which may have no relevance to the entries in the
          archive.

          If no input files appear on the command line and --out is used,
          copy mode is assumed:

   zip inarchive --out outarchive

   This is useful for changing split size for instance. Encrypting
          and decrypting entries is not yet supported using copy mode.
          Use zipcloak for that.

   -UN v

   --unicode v
          Determine what zip should do with Unicode file names. zip 3.0,
          in addition to the standard file path, now includes the UTF-8
          translation of the path if the entry path is not entirely 7-bit
          ASCII. When an entry is missing the Unicode path, zip reverts
          back to the standard file path. The problem with using the
          standard path is this path is in the local character set of the
          zip that created the entry, which may contain characters that
          are not valid in the character set being used by the unzip.
          When zip is reading an archive, if an entry also has a Unicode
          path, zip now defaults to using the Unicode path to recreate
          the standard path using the current local character set.

          This option can be used to determine what zip should do with
          this path if there is a mismatch between the stored standard
          path and the stored UTF-8 path (which can happen if the
          standard path was updated). In all cases, if there is a
          mismatch it is assumed that the standard path is more current
          and zip uses that. Values for v are

   q - quit if paths do not match

   w - warn, continue with standard path

   i - ignore, continue with standard path

   n - no Unicode, do not use Unicode paths

   The default is to warn and continue.
          Characters that are not valid in the current character set are
          escaped as #Uxxxx and #Lxxxxxx, where x is an ASCII character
          for a hex digit. The first is used if a 16-bit character number
          is sufficient to represent the Unicode character and the second
          if the character needs more than 16 bits to represent it's
          Unicode character code. Setting -UN to

   e - escape

   as in

   zip archive -sU -UN=e

   forces zip to escape all characters that are not printable 7-bit
          ASCII.

          Normally zip stores UTF-8 directly in the standard path field
          on systems where UTF-8 is the current character set and stores
          the UTF-8 in the new extra fields otherwise. The option

   u - UTF-8

   as in

   zip archive dir -r -UN=UTF8

   forces zip to store UTF-8 as native in the archive. Note that
          storing UTF-8 directly is the default on Unix systems that
          support it. This option could be useful on Windows systems
          where the escaped path is too large to be a valid path and the
          UTF-8 version of the path is smaller, but native UTF-8 is not
          backward compatible on Windows systems.

   -v

   --verbose
          Verbose mode or print diagnostic version info.

   Normally, when applied to real operations, this option enables the
          display of a
          progress indicator during compression (see -dd for more on
          dots) and requests verbose diagnostic info about zipfile
          structure oddities.

   However, when
          -v is the only command line argument a diagnostic screen is
          printed instead. This should now work even if stdout is
          redirected to a file, allowing easy saving of the information
          for sending with bug reports to Info-ZIP. The version screen
          provides the help screen header with program name, version, and
          release date, some pointers to the Info-ZIP home and
          distribution sites, and shows information about the target
          environment (compiler type and version, OS version, compilation
          date and the enabled optional features used to create the zip
          executable).

   -V

   --VMS-portable
          [VMS] Save VMS file attributes. (Files are truncated at EOF.)
          When a -V archive is unpacked on a non-VMS system, some file
          types (notably Stream_LF text files and pure binary files like
          fixed-512) should be extracted intact. Indexed files and file
          types with embedded record sizes (notably variable-length
          record types) will probably be seen as corrupt elsewhere.

   -VV

   --VMS-specific
          [VMS] Save VMS file attributes, and all allocated blocks in a
          file, including any data beyond EOF. Useful for moving
          ill-formed files among VMS systems. When a -VV archive is
          unpacked on a non-VMS system, almost all files will appear
          corrupt.

   -w

   --VMS-versions
          [VMS] Append the version number of the files to the name,
          including multiple versions of files. Default is to use only
          the most recent version of a specified file.

   -ww

   --VMS-dot-versions
          [VMS] Append the version number of the files to the name,
          including multiple versions of files, using the .nnn format.
          Default is to use only the most recent version of a specified
          file.

   -ws

   --wild-stop-dirs
          Wildcards match only at a directory level. Normally zip handles
          paths as strings and given the paths

   /foo/bar/dir/file1.c

   /foo/bar/file2.c

   an input pattern such as

   /foo/bar/*

   normally would match both paths, the * matching dir/file1.c
          and file2.c. Note that in the first case a directory boundary
          (/) was crossed in the match. With -ws no directory bounds will
          be included in the match, making wildcards local to a specific
          directory level. So, with -ws enabled, only the second path
          would be matched.

          When using -ws, use ** to match across directory boundaries as
          * does normally.

   -x files

   --exclude files
          Explicitly exclude the specified files, as in:

   zip -r foo foo -x \*.o

   which will include the contents of
          foo in foo.zip while excluding all the files that end in .o.
          The backslash avoids the shell filename substitution, so that
          the name matching is performed by zip at all directory levels.

   Also possible:

   zip -r foo foo -x@exclude.lst

   which will include the contents of
          foo in foo.zip while excluding all the files that match the
          patterns in the file exclude.lst.

   The long option forms of the above are

   zip -r foo foo --exclude \*.o

   and

   zip -r foo foo --exclude @exclude.lst

   Multiple patterns can be specified, as in:

   zip -r foo foo -x \*.o \*.c

   If there is no space between -x and
          the pattern, just one value is assumed (no list):

   zip -r foo foo -x\*.o

   See -i for more on include and exclude.

   -X

   --no-extra
          Do not save extra file attributes (Extended Attributes on OS/2,
          uid/gid and file times on Unix). The zip format uses extra
          fields to include additional information for each entry. Some
          extra fields are specific to particular systems while others
          are applicable to all systems. Normally when zip reads entries
          from an existing archive, it reads the extra fields it knows,
          strips the rest, and adds the extra fields applicable to that
          system. With -X, zip strips all old fields and only includes
          the Unicode and Zip64 extra fields (currently these two extra
          fields cannot be disabled).

          Negating this option, -X-, includes all the default extra
          fields, but also copies over any unrecognized extra fields.

   -y

   --symlinks
          For UNIX and VMS (V8.3 and later), store symbolic links as such
          in the zip archive, instead of compressing and storing the file
          referred to by the link. This can avoid multiple copies of
          files being included in the archive as zip recurses the
          directory trees and accesses files directly and by links.

   -z

   --archive-comment
          Prompt for a multi-line comment for the entire zip archive. The
          comment is ended by a line containing just a period, or an end
          of file condition (^D on Unix, ^Z on MSDOS, OS/2, and VMS). The
          comment can be taken from a file:

   zip -z foo < foowhat

   -Z cm

   --compression-method cm
          Set the default compression method. Currently the main methods
          supported by zip are store and deflate. Compression method can
          be set to:

          store - Setting the compression method to store forces zip to
          store entries with no compression. This is generally faster
          than compressing entries, but results in no space savings. This
          is the same as using -0 (compression level zero).

          deflate - This is the default method for zip. If zip determines
          that storing is better than deflation, the entry will be stored
          instead.

          bzip2 - If bzip2 support is compiled in, this compression
          method also becomes available. Only some modern unzips
          currently support the bzip2 compression method, so test the
          unzip you will be using before relying on archives using this
          method (compression method 12).

          For example, to add bar.c to archive foo using bzip2
          compression:

   zip -Z bzip2 foo bar.c

   The compression method can be abbreviated:

   zip -Zb foo bar.c

   -#

   (-0, -1, -2, -3, -4, -5, -6, -7, -8, -9)
          Regulate the speed of compression using the specified digit #,
          where -0 indicates no compression (store all files), -1
          indicates the fastest compression speed (less compression) and
          -9 indicates the slowest compression speed (optimal
          compression, ignores the suffix list). The default compression
          level is -6.

          Though still being worked, the intention is this setting will
          control compression speed for all compression methods.
          Currently only deflation is controlled.

   -!

   --use-privileges
          [WIN32] Use priviliges (if granted) to obtain all aspects of
          WinNT security.

   -@

   --names-stdin
          Take the list of input files from standard input. Only one
          filename per line.

   -$

   --volume-label
          [MSDOS, OS/2, WIN32] Include the volume label for the drive
          holding the first file to be compressed. If you want to include
          only the volume label or to force a specific drive, use the
          drive name as first file name, as in:

   zip -$ foo a: c:bar

Examples

   The simplest example:

   zip stuff *

   creates the archive stuff.zip (assuming it does not exist) and puts
   all the files in the current directory in it, in compressed form (the
   .zip suffix is added automatically, unless the archive name contains a
   dot already; this allows the explicit specification of other
   suffixes).

   Because of the way the shell on Unix does filename substitution, files
   starting with "." are not included; to include these as well:

   zip stuff .* *

   Even this will not include any subdirectories from the current
   directory.

   To zip up an entire directory, the command:

   zip -r foo foo

   creates the archive foo.zip, containing all the files and directories
   in the directory foo that is contained within the current directory.

   You may want to make a zip archive that contains the files in foo,
   without recording the directory name, foo. You can use the -j option
   to leave off the paths, as in:

   zip -j foo foo/*

   If you are short on disk space, you might not have enough room to hold
   both the original directory and the corresponding compressed zip
   archive. In this case, you can create the archive in steps using the
   -m option. If foo contains the subdirectories tom, dick, and harry,
   you can:

   zip -rm foo foo/tom
          zip -rm foo foo/dick
          zip -rm foo foo/harry

   where the first command creates foo.zip, and the next two add to it.
   At the completion of each zip command, the last created archive is
   deleted, making room for the next zip command to function.

   Use -s to set the split size and create a split archive. The size is
   given as a number followed optionally by one of k (kB), m (MB), g
   (GB), or t (TB). The command

   zip -s 2g -r split.zip foo

   creates a split archive of the directory foo with splits no bigger
   than 2 GB each. If foo contained 5 GB of contents and the contents
   were stored in the split archive without compression (to make this
   example simple), this would create three splits, split.z01 at 2 GB,
   split.z02 at 2 GB, and split.zip at a little over 1 GB.

   The -sp option can be used to pause zip between splits to allow
   changing removable media, for example, but read the descriptions and
   warnings for both -s and -sp below.

   Though zip does not update split archives, zip provides the new option
   -O (--output-file) to allow split archives to be updated and saved in
   a new archive. For example,

   zip inarchive.zip foo.c bar.c --out outarchive.zip

   reads archive inarchive.zip, even if split, adds the files foo.c and
   bar.c, and writes the resulting archive to outarchive.zip. If
   inarchive.zip is split then outarchive.zip defaults to the same split
   size. Be aware that outarchive.zip and any split files that are
   created with it are always overwritten without warning. This may be
   changed in the future.

Pattern Matching

   This section applies only to Unix. Watch this space for details on
   MSDOS and VMS operation. However, the special wildcard characters *
   and [] below apply to at least MSDOS also.

   The Unix shells (sh, csh, bash, and others) normally do filename
   substitution (also called "globbing") on command arguments. Generally
   the special characters are:

   ?
          match any single character

   *
          match any number of characters (including none)

   []
          match any character in the range indicated within the brackets
          (example: [a-f], [0-9]). This form of wildcard matching allows
          a user to specify a list of characters between square brackets
          and if any of the characters match the expression matches. For
          example:

   zip archive "*.[hc]"

   would archive all files in the current directory that end in
          .h or .c.

          Ranges of characters are supported:

   zip archive "[a-f]*"

   would add to the archive all files starting with "a" through "f".
          Negation is also supported, where any character in that
          position not in the list matches. Negation is supported by
          adding ! or ^ to the beginning of the list:

   zip archive "*.[!o]"

   matches files that don't end in ".o".
          On WIN32, [] matching needs to be turned on with the -RE option
          to avoid the confusion that names with [ or ] have caused.

   When these characters are encountered (without being escaped with a
   backslash or quotes), the shell will look for files relative to the
   current path that match the pattern, and replace the argument with a
   list of the names that matched.

   The zip program can do the same matching on names that are in the zip
   archive being modified or, in the case of the -x (exclude) or -i
   (include) options, on the list of files to be operated on, by using
   backslashes or quotes to tell the shell not to do the name expansion.
   In general, when zip encounters a name in the list of files to do, it
   first looks for the name in the file system. If it finds it, it then
   adds it to the list of files to do. If it does not find it, it looks
   for the name in the zip archive being modified (if it exists), using
   the pattern matching characters described above, if present. For each
   match, it will add that name to the list of files to be processed,
   unless this name matches one given with the -x option, or does not
   match any name given with the -i option.

   The pattern matching includes the path, and so patterns like \*.o
   match names that end in ".o", no matter what the path prefix is. Note
   that the backslash must precede every special character (i.e. ?*[]),
   or the entire argument must be enclosed in double quotes ("").

   In general, use backslashes or double quotes for paths that have
   wildcards to make zip do the pattern matching for file paths, and
   always for paths and strings that have spaces or wildcards for -i, -x,
   -R, -d, and -U and anywhere zip needs to process the wildcards.

Environment

   The following environment variables are read and used by zip as
   described.

   ZIPOPT
          contains default options that will be used when running zip.
          The contents of this environment variable will get added to the
          command line just after the zip command.

   ZIP
          [Not on RISC OS and VMS] see ZIPOPT

   Zip$Options
          [RISC OS] see ZIPOPT

   Zip$Exts
          [RISC OS] contains extensions separated by a : that will cause
          native filenames with one of the specified extensions to be
          added to the zip file with basename and extension swapped.

   ZIP_OPTS
          [VMS] see ZIPOPT

See Also

   compress(1) , shar(1L) , tar(1) , unzip(1L) ,
   gzip(1L)

Diagnostics

   The exit status (or error level) approximates the exit codes defined
   by PKWARE and takes on the following values, except under VMS:

   0
          normal; no errors or warnings detected.

   2
          unexpected end of zip file.

   3
          a generic error in the zipfile format was detected. Processing
          may have completed successfully anyway; some broken zipfiles
          created by other archivers have simple work-arounds.

   4
          zip was unable to allocate memory for one or more buffers
          during program initialization.

   5
          a severe error in the zipfile format was detected. Processing
          probably failed immediately.

   6
          entry too large to be processed (such as input files larger
          than 2 GB when not using Zip64 or trying to read an existing
          archive that is too large) or entry too large to be split with
          zipsplit

   7
          invalid comment format

   8
          zip -T failed or out of memory

   9
          the user aborted zip prematurely with control-C (or similar)

   10
          zip encountered an error while using a temp file

   11
          read or seek error

   12
          zip has nothing to do

   13
          missing or empty zip file

   14
          error writing to a file

   15
          zip was unable to create a file to write to

   16
          bad command line parameters

   18
          zip could not open a specified file to read

   19

     zip was compiled with options not supported on this system

   VMS interprets standard Unix (or PC) return values as other,
   scarier-looking things, so zip instead maps them into VMS-style status
   codes. In general, zip sets VMS Facility = 1955 (0x07A3), Code = 2*
   Unix_status, and an appropriate Severity (as specified in ziperr.h).
   More details are included in the VMS-specific documentation. See
   [.vms]NOTES.TXT and [.vms]vms_msg_gen.c.

Bugs

   zip 3.0 is not compatible with PKUNZIP 1.10. Use zip 1.1 to produce
   zip files which can be extracted by PKUNZIP 1.10.

   zip files produced by zip 3.0 must not be updated by zip 1.1 or PKZIP
   1.10, if they contain encrypted members or if they have been produced
   in a pipe or on a non-seekable device. The old versions of zip or
   PKZIP would create an archive with an incorrect format. The old
   versions can list the contents of the zip file but cannot extract it
   anyway (because of the new compression algorithm). If you do not use
   encryption and use regular disk files, you do not have to care about
   this problem.

   Under VMS, not all of the odd file formats are treated properly. Only
   stream-LF format zip files are expected to work with zip. Others can
   be converted using Rahul Dhesi's BILF program. This version of zip
   handles some of the conversion internally. When using Kermit to
   transfer zip files from VMS to MSDOS, type "set file type block" on
   VMS. When transfering from MSDOS to VMS, type "set file type fixed" on
   VMS. In both cases, type "set file type binary" on MSDOS.

   Under some older VMS versions, zip may hang for file specifications
   that use DECnet syntax foo::*.*.

   On OS/2, zip cannot match some names, such as those including an
   exclamation mark or a hash sign. This is a bug in OS/2 itself: the
   32-bit DosFindFirst/Next don't find such names. Other programs such as
   GNU tar are also affected by this bug.

   Under OS/2, the amount of Extended Attributes displayed by DIR is (for
   compatibility) the amount returned by the 16-bit version of
   DosQueryPathInfo(). Otherwise OS/2 1.3 and 2.0 would report different
   EA sizes when DIRing a file. However, the structure layout returned by
   the 32-bit DosQueryPathInfo() is a bit different, it uses extra
   padding bytes and link pointers (it's a linked list) to have all
   fields on 4-byte boundaries for portability to future RISC OS/2
   versions. Therefore the value reported by zip (which uses this
   32-bit-mode size) differs from that reported by DIR. zip stores the
   32-bit format for portability, even the 16-bit MS-C-compiled version
   running on OS/2 1.3, so even this one shows the 32-bit-mode size.

Authors

   Copyright (C) 1997-2008 Info-ZIP.

   Currently distributed under the Info-ZIP license.

   Copyright (C) 1990-1997 Mark Adler, Richard B. Wales, Jean-loup
   Gailly, Onno van der Linden, Kai Uwe Rommel, Igor Mandrichenko, John
   Bush and Paul Kienitz.

   Original copyright:

   Permission is granted to any individual or institution to use, copy,
   or redistribute this software so long as all of the original files are
   included, that it is not sold for profit, and that this copyright
   notice is retained.

   LIKE ANYTHING ELSE THAT'S FREE, ZIP AND ITS ASSOCIATED UTILITIES ARE
   PROVIDED AS IS AND COME WITH NO WARRANTY OF ANY KIND, EITHER EXPRESSED
   OR IMPLIED. IN NO EVENT WILL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
   DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE.

   Please send bug reports and comments using the web page at:
   www.info-zip.org. For bug reports, please include the version of zip
   (see zip -h), the make options used to compile it (see zip -v), the
   machine and operating system in use, and as much additional
   information as possible.

Acknowledgements

   Thanks to R. P. Byrne for his Shrink.Pas program, which inspired this
   project, and from which the shrink algorithm was stolen; to Phil Katz
   for placing in the public domain the zip file format, compression
   format, and .ZIP filename extension, and for accepting minor changes
   to the file format; to Steve Burg for clarifications on the deflate
   format; to Haruhiko Okumura and Leonid Broukhis for providing some
   useful ideas for the compression algorithm; to Keith Petersen, Rich
   Wales, Hunter Goatley and Mark Adler for providing a mailing list and
   ftp site for the Info-ZIP group to use; and most importantly, to the
   Info-ZIP group itself (listed in the file infozip.who) without whose
   tireless testing and bug-fixing efforts a portable zip would not have
   been possible. Finally we should thank (blame) the first Info-ZIP
   moderator, David Kirschbaum, for getting us into this mess in the
   first place. The manual page was rewritten for Unix by R. P. C.
   Rodgers and updated by E. Gordon for zip 3.0.
00000000  4e 61 6d 65 0a 0a 20 20  20 7a 69 70 20 2d 20 70  |Name..   zip - p|
00000010  61 63 6b 61 67 65 20 61  6e 64 20 63 6f 6d 70 72  |ackage and compr|
00000020  65 73 73 20 28 61 72 63  68 69 76 65 29 20 66 69  |ess (archive) fi|
00000030  6c 65 73 0a 0a 53 79 6e  6f 70 73 69 73 0a 0a 20  |les..Synopsis.. |
00000040  20 20 7a 69 70 20 5b 2d  61 41 42 63 64 44 65 45  |  zip [-aABcdDeE|
00000050  66 46 67 68 6a 6b 6c 4c  6d 6f 71 72 52 53 54 75  |fFghjklLmoqrRSTu|
00000060  76 56 77 58 79 7a 21 40  24 5d 20 5b 2d 2d 6c 6f  |vVwXyz!@$] [--lo|
00000070  6e 67 6f 70 74 69 6f 6e  20 2e 2e 2e 5d 20 5b 2d  |ngoption ...] [-|
00000080  62 20 70 61 74 68 5d 0a  20 20 20 5b 2d 6e 20 73  |b path].   [-n s|
00000090  75 66 66 69 78 65 73 5d  20 5b 2d 74 20 64 61 74  |uffixes] [-t dat|
000000a0  65 5d 20 5b 2d 74 74 20  64 61 74 65 5d 20 5b 7a  |e] [-tt date] [z|
000000b0  69 70 66 69 6c 65 20 5b  66 69 6c 65 20 2e 2e 2e  |ipfile [file ...|
000000c0  5d 5d 20 5b 2d 78 69 20  6c 69 73 74 5d 0a 0a 20  |]] [-xi list].. |
000000d0  20 20 7a 69 70 63 6c 6f  61 6b 20 28 73 65 65 20  |  zipcloak (see |
000000e0  73 65 70 61 72 61 74 65  20 6d 61 6e 20 70 61 67  |separate man pag|
000000f0  65 29 0a 0a 20 20 20 7a  69 70 6e 6f 74 65 20 28  |e)..   zipnote (|
00000100  73 65 65 20 73 65 70 61  72 61 74 65 20 6d 61 6e  |see separate man|
00000110  20 70 61 67 65 29 0a 0a  20 20 20 7a 69 70 73 70  | page)..   zipsp|
00000120  6c 69 74 20 28 73 65 65  20 73 65 70 61 72 61 74  |lit (see separat|
00000130  65 20 6d 61 6e 20 70 61  67 65 29 0a 0a 20 20 20  |e man page)..   |
00000140  4e 6f 74 65 3a 20 43 6f  6d 6d 61 6e 64 20 6c 69  |Note: Command li|
00000150  6e 65 20 70 72 6f 63 65  73 73 69 6e 67 20 69 6e  |ne processing in|
00000160  20 7a 69 70 20 68 61 73  20 62 65 65 6e 20 63 68  | zip has been ch|
00000170  61 6e 67 65 64 20 74 6f  20 73 75 70 70 6f 72 74  |anged to support|
00000180  20 6c 6f 6e 67 0a 20 20  20 6f 70 74 69 6f 6e 73  | long.   options|
00000190  20 61 6e 64 20 68 61 6e  64 6c 65 20 61 6c 6c 20  | and handle all |
000001a0  6f 70 74 69 6f 6e 73 20  61 6e 64 20 61 72 67 75  |options and argu|
000001b0  6d 65 6e 74 73 20 6d 6f  72 65 20 63 6f 6e 73 69  |ments more consi|
000001c0  73 74 65 6e 74 6c 79 2e  20 53 6f 6d 65 0a 20 20  |stently. Some.  |
000001d0  20 6f 6c 64 20 63 6f 6d  6d 61 6e 64 20 6c 69 6e  | old command lin|
000001e0  65 73 20 74 68 61 74 20  64 65 70 65 6e 64 20 6f  |es that depend o|
000001f0  6e 20 63 6f 6d 6d 61 6e  64 20 6c 69 6e 65 20 69  |n command line i|
00000200  6e 63 6f 6e 73 69 73 74  65 6e 63 69 65 73 20 6d  |nconsistencies m|
00000210  61 79 20 6e 6f 0a 20 20  20 6c 6f 6e 67 65 72 20  |ay no.   longer |
00000220  77 6f 72 6b 2e 0a 0a 44  65 73 63 72 69 70 74 69  |work...Descripti|
00000230  6f 6e 0a 0a 20 20 20 7a  69 70 20 69 73 20 61 20  |on..   zip is a |
00000240  63 6f 6d 70 72 65 73 73  69 6f 6e 20 61 6e 64 20  |compression and |
00000250  66 69 6c 65 20 70 61 63  6b 61 67 69 6e 67 20 75  |file packaging u|
00000260  74 69 6c 69 74 79 20 66  6f 72 20 55 6e 69 78 2c  |tility for Unix,|
00000270  20 56 4d 53 2c 20 4d 53  44 4f 53 2c 0a 20 20 20  | VMS, MSDOS,.   |
00000280  4f 53 2f 32 2c 20 57 69  6e 64 6f 77 73 20 39 78  |OS/2, Windows 9x|
00000290  2f 4e 54 2f 58 50 2c 20  4d 69 6e 69 78 2c 20 41  |/NT/XP, Minix, A|
000002a0  74 61 72 69 2c 20 4d 61  63 69 6e 74 6f 73 68 2c  |tari, Macintosh,|
000002b0  20 41 6d 69 67 61 2c 20  61 6e 64 20 41 63 6f 72  | Amiga, and Acor|
000002c0  6e 20 52 49 53 43 0a 20  20 20 4f 53 2e 20 49 74  |n RISC.   OS. It|
000002d0  20 69 73 20 61 6e 61 6c  6f 67 6f 75 73 20 74 6f  | is analogous to|
000002e0  20 61 20 63 6f 6d 62 69  6e 61 74 69 6f 6e 20 6f  | a combination o|
000002f0  66 20 74 68 65 20 55 6e  69 78 20 63 6f 6d 6d 61  |f the Unix comma|
00000300  6e 64 73 20 74 61 72 28  31 29 0a 20 20 20 61 6e  |nds tar(1).   an|
00000310  64 20 63 6f 6d 70 72 65  73 73 28 31 29 20 61 6e  |d compress(1) an|
00000320  64 20 69 73 20 63 6f 6d  70 61 74 69 62 6c 65 20  |d is compatible |
00000330  77 69 74 68 20 50 4b 5a  49 50 20 28 50 68 69 6c  |with PKZIP (Phil|
00000340  20 4b 61 74 7a 27 73 20  5a 49 50 20 66 6f 72 0a  | Katz's ZIP for.|
00000350  20 20 20 4d 53 44 4f 53  20 73 79 73 74 65 6d 73  |   MSDOS systems|
00000360  29 2e 0a 0a 20 20 20 41  20 63 6f 6d 70 61 6e 69  |)...   A compani|
00000370  6f 6e 20 70 72 6f 67 72  61 6d 20 28 75 6e 7a 69  |on program (unzi|
00000380  70 28 31 4c 29 20 29 20  75 6e 70 61 63 6b 73 20  |p(1L) ) unpacks |
00000390  7a 69 70 20 61 72 63 68  69 76 65 73 2e 20 54 68  |zip archives. Th|
000003a0  65 20 7a 69 70 20 61 6e  64 0a 20 20 20 75 6e 7a  |e zip and.   unz|
000003b0  69 70 28 31 4c 29 20 70  72 6f 67 72 61 6d 73 20  |ip(1L) programs |
000003c0  63 61 6e 20 77 6f 72 6b  20 77 69 74 68 20 61 72  |can work with ar|
000003d0  63 68 69 76 65 73 20 70  72 6f 64 75 63 65 64 20  |chives produced |
000003e0  62 79 20 50 4b 5a 49 50  0a 20 20 20 28 73 75 70  |by PKZIP.   (sup|
000003f0  70 6f 72 74 69 6e 67 20  6d 6f 73 74 20 50 4b 5a  |porting most PKZ|
00000400  49 50 20 66 65 61 74 75  72 65 73 20 75 70 20 74  |IP features up t|
00000410  6f 20 50 4b 5a 49 50 20  76 65 72 73 69 6f 6e 20  |o PKZIP version |
00000420  34 2e 36 29 2c 20 61 6e  64 20 50 4b 5a 49 50 0a  |4.6), and PKZIP.|
00000430  20 20 20 61 6e 64 20 50  4b 55 4e 5a 49 50 20 63  |   and PKUNZIP c|
00000440  61 6e 20 77 6f 72 6b 20  77 69 74 68 20 61 72 63  |an work with arc|
00000450  68 69 76 65 73 20 70 72  6f 64 75 63 65 64 20 62  |hives produced b|
00000460  79 20 7a 69 70 20 28 77  69 74 68 20 73 6f 6d 65  |y zip (with some|
00000470  0a 20 20 20 65 78 63 65  70 74 69 6f 6e 73 2c 20  |.   exceptions, |
00000480  6e 6f 74 61 62 6c 79 20  73 74 72 65 61 6d 65 64  |notably streamed|
00000490  20 61 72 63 68 69 76 65  73 2c 20 62 75 74 20 72  | archives, but r|
000004a0  65 63 65 6e 74 20 63 68  61 6e 67 65 73 20 69 6e  |ecent changes in|
000004b0  20 74 68 65 20 7a 69 70  0a 20 20 20 66 69 6c 65  | the zip.   file|
000004c0  20 73 74 61 6e 64 61 72  64 20 6d 61 79 20 66 61  | standard may fa|
000004d0  63 69 6c 69 74 61 74 65  20 62 65 74 74 65 72 20  |cilitate better |
000004e0  63 6f 6d 70 61 74 69 62  69 6c 69 74 79 29 2e 20  |compatibility). |
000004f0  7a 69 70 20 76 65 72 73  69 6f 6e 20 33 2e 30 20  |zip version 3.0 |
00000500  69 73 0a 20 20 20 63 6f  6d 70 61 74 69 62 6c 65  |is.   compatible|
00000510  20 77 69 74 68 20 50 4b  5a 49 50 20 32 2e 30 34  | with PKZIP 2.04|
00000520  20 61 6e 64 20 61 6c 73  6f 20 73 75 70 70 6f 72  | and also suppor|
00000530  74 73 20 74 68 65 20 5a  69 70 36 34 20 65 78 74  |ts the Zip64 ext|
00000540  65 6e 73 69 6f 6e 73 20  6f 66 0a 20 20 20 50 4b  |ensions of.   PK|
00000550  5a 49 50 20 34 2e 35 20  77 68 69 63 68 20 61 6c  |ZIP 4.5 which al|
00000560  6c 6f 77 20 61 72 63 68  69 76 65 73 20 61 73 20  |low archives as |
00000570  77 65 6c 6c 20 61 73 20  66 69 6c 65 73 20 74 6f  |well as files to|
00000580  20 65 78 63 65 65 64 20  74 68 65 20 70 72 65 76  | exceed the prev|
00000590  69 6f 75 73 0a 20 20 20  32 20 47 42 20 6c 69 6d  |ious.   2 GB lim|
000005a0  69 74 20 28 34 20 47 42  20 69 6e 20 73 6f 6d 65  |it (4 GB in some|
000005b0  20 63 61 73 65 73 29 2e  20 7a 69 70 20 61 6c 73  | cases). zip als|
000005c0  6f 20 6e 6f 77 20 73 75  70 70 6f 72 74 73 20 62  |o now supports b|
000005d0  7a 69 70 32 0a 20 20 20  63 6f 6d 70 72 65 73 73  |zip2.   compress|
000005e0  69 6f 6e 20 69 66 20 74  68 65 20 62 7a 69 70 32  |ion if the bzip2|
000005f0  20 6c 69 62 72 61 72 79  20 69 73 20 69 6e 63 6c  | library is incl|
00000600  75 64 65 64 20 77 68 65  6e 20 7a 69 70 20 69 73  |uded when zip is|
00000610  20 63 6f 6d 70 69 6c 65  64 2e 0a 20 20 20 4e 6f  | compiled..   No|
00000620  74 65 20 74 68 61 74 20  50 4b 55 4e 5a 49 50 20  |te that PKUNZIP |
00000630  31 2e 31 30 20 63 61 6e  6e 6f 74 20 65 78 74 72  |1.10 cannot extr|
00000640  61 63 74 20 66 69 6c 65  73 20 70 72 6f 64 75 63  |act files produc|
00000650  65 64 20 62 79 20 50 4b  5a 49 50 20 32 2e 30 34  |ed by PKZIP 2.04|
00000660  20 6f 72 0a 20 20 20 7a  69 70 20 33 2e 30 2e 20  | or.   zip 3.0. |
00000670  59 6f 75 20 6d 75 73 74  20 75 73 65 20 50 4b 55  |You must use PKU|
00000680  4e 5a 49 50 20 32 2e 30  34 67 20 6f 72 20 75 6e  |NZIP 2.04g or un|
00000690  7a 69 70 20 35 2e 30 70  31 20 28 6f 72 20 6c 61  |zip 5.0p1 (or la|
000006a0  74 65 72 20 76 65 72 73  69 6f 6e 73 29 0a 20 20  |ter versions).  |
000006b0  20 74 6f 20 65 78 74 72  61 63 74 20 74 68 65 6d  | to extract them|
000006c0  2e 0a 0a 20 20 20 53 65  65 20 74 68 65 20 45 58  |...   See the EX|
000006d0  41 4d 50 4c 45 53 20 73  65 63 74 69 6f 6e 20 61  |AMPLES section a|
000006e0  74 20 74 68 65 20 62 6f  74 74 6f 6d 20 6f 66 20  |t the bottom of |
000006f0  74 68 69 73 20 70 61 67  65 20 66 6f 72 20 65 78  |this page for ex|
00000700  61 6d 70 6c 65 73 20 6f  66 0a 20 20 20 73 6f 6d  |amples of.   som|
00000710  65 20 74 79 70 69 63 61  6c 20 75 73 65 73 20 6f  |e typical uses o|
00000720  66 20 7a 69 70 2e 0a 0a  20 20 20 4c 61 72 67 65  |f zip...   Large|
00000730  20 41 72 63 68 69 76 65  73 20 61 6e 64 20 5a 69  | Archives and Zi|
00000740  70 36 34 2e 20 7a 69 70  20 61 75 74 6f 6d 61 74  |p64. zip automat|
00000750  69 63 61 6c 6c 79 20 75  73 65 73 20 74 68 65 20  |ically uses the |
00000760  5a 69 70 36 34 20 65 78  74 65 6e 73 69 6f 6e 73  |Zip64 extensions|
00000770  0a 20 20 20 77 68 65 6e  20 66 69 6c 65 73 20 6c  |.   when files l|
00000780  61 72 67 65 72 20 74 68  61 6e 20 34 20 47 42 20  |arger than 4 GB |
00000790  61 72 65 20 61 64 64 65  64 20 74 6f 20 61 6e 20  |are added to an |
000007a0  61 72 63 68 69 76 65 2c  20 61 6e 20 61 72 63 68  |archive, an arch|
000007b0  69 76 65 0a 20 20 20 63  6f 6e 74 61 69 6e 69 6e  |ive.   containin|
000007c0  67 20 5a 69 70 36 34 20  65 6e 74 72 69 65 73 20  |g Zip64 entries |
000007d0  69 73 20 75 70 64 61 74  65 64 20 28 69 66 20 74  |is updated (if t|
000007e0  68 65 20 72 65 73 75 6c  74 69 6e 67 20 61 72 63  |he resulting arc|
000007f0  68 69 76 65 20 73 74 69  6c 6c 0a 20 20 20 6e 65  |hive still.   ne|
00000800  65 64 73 20 5a 69 70 36  34 29 2c 20 74 68 65 20  |eds Zip64), the |
00000810  73 69 7a 65 20 6f 66 20  74 68 65 20 61 72 63 68  |size of the arch|
00000820  69 76 65 20 77 69 6c 6c  20 65 78 63 65 65 64 20  |ive will exceed |
00000830  34 20 47 42 2c 20 6f 72  20 77 68 65 6e 20 74 68  |4 GB, or when th|
00000840  65 0a 20 20 20 6e 75 6d  62 65 72 20 6f 66 20 65  |e.   number of e|
00000850  6e 74 72 69 65 73 20 69  6e 20 74 68 65 20 61 72  |ntries in the ar|
00000860  63 68 69 76 65 20 77 69  6c 6c 20 65 78 63 65 65  |chive will excee|
00000870  64 20 61 62 6f 75 74 20  36 34 4b 2e 20 5a 69 70  |d about 64K. Zip|
00000880  36 34 20 69 73 20 61 6c  73 6f 0a 20 20 20 75 73  |64 is also.   us|
00000890  65 64 20 66 6f 72 20 61  72 63 68 69 76 65 73 20  |ed for archives |
000008a0  73 74 72 65 61 6d 65 64  20 66 72 6f 6d 20 73 74  |streamed from st|
000008b0  61 6e 64 61 72 64 20 69  6e 70 75 74 20 61 73 20  |andard input as |
000008c0  74 68 65 20 73 69 7a 65  20 6f 66 20 73 75 63 68  |the size of such|
000008d0  0a 20 20 20 61 72 63 68  69 76 65 73 20 61 72 65  |.   archives are|
000008e0  20 6e 6f 74 20 6b 6e 6f  77 6e 20 69 6e 20 61 64  | not known in ad|
000008f0  76 61 6e 63 65 2c 20 62  75 74 20 74 68 65 20 6f  |vance, but the o|
00000900  70 74 69 6f 6e 20 2d 66  7a 2d 20 63 61 6e 20 62  |ption -fz- can b|
00000910  65 20 75 73 65 64 20 74  6f 0a 20 20 20 66 6f 72  |e used to.   for|
00000920  63 65 20 7a 69 70 20 74  6f 20 63 72 65 61 74 65  |ce zip to create|
00000930  20 50 4b 5a 49 50 20 32  20 63 6f 6d 70 61 74 69  | PKZIP 2 compati|
00000940  62 6c 65 20 61 72 63 68  69 76 65 73 20 28 61 73  |ble archives (as|
00000950  20 6c 6f 6e 67 20 61 73  20 5a 69 70 36 34 0a 20  | long as Zip64. |
00000960  20 20 65 78 74 65 6e 73  69 6f 6e 73 20 61 72 65  |  extensions are|
00000970  20 6e 6f 74 20 6e 65 65  64 65 64 29 2e 20 59 6f  | not needed). Yo|
00000980  75 20 6d 75 73 74 20 75  73 65 20 61 20 50 4b 5a  |u must use a PKZ|
00000990  49 50 20 34 2e 35 20 63  6f 6d 70 61 74 69 62 6c  |IP 4.5 compatibl|
000009a0  65 20 75 6e 7a 69 70 2c  0a 20 20 20 73 75 63 68  |e unzip,.   such|
000009b0  20 61 73 20 75 6e 7a 69  70 20 36 2e 30 20 6f 72  | as unzip 6.0 or|
000009c0  20 6c 61 74 65 72 2c 20  74 6f 20 65 78 74 72 61  | later, to extra|
000009d0  63 74 20 66 69 6c 65 73  20 75 73 69 6e 67 20 74  |ct files using t|
000009e0  68 65 20 5a 69 70 36 34  0a 20 20 20 65 78 74 65  |he Zip64.   exte|
000009f0  6e 73 69 6f 6e 73 2e 0a  0a 20 20 20 49 6e 20 61  |nsions...   In a|
00000a00  64 64 69 74 69 6f 6e 2c  20 73 74 72 65 61 6d 65  |ddition, streame|
00000a10  64 20 61 72 63 68 69 76  65 73 2c 20 65 6e 74 72  |d archives, entr|
00000a20  69 65 73 20 65 6e 63 72  79 70 74 65 64 20 77 69  |ies encrypted wi|
00000a30  74 68 20 73 74 61 6e 64  61 72 64 0a 20 20 20 65  |th standard.   e|
00000a40  6e 63 72 79 70 74 69 6f  6e 2c 20 6f 72 20 73 70  |ncryption, or sp|
00000a50  6c 69 74 20 61 72 63 68  69 76 65 73 20 63 72 65  |lit archives cre|
00000a60  61 74 65 64 20 77 69 74  68 20 74 68 65 20 70 61  |ated with the pa|
00000a70  75 73 65 20 6f 70 74 69  6f 6e 20 6d 61 79 20 6e  |use option may n|
00000a80  6f 74 20 62 65 0a 20 20  20 63 6f 6d 70 61 74 69  |ot be.   compati|
00000a90  62 6c 65 20 77 69 74 68  20 50 4b 5a 49 50 20 61  |ble with PKZIP a|
00000aa0  73 20 64 61 74 61 20 64  65 73 63 72 69 70 74 6f  |s data descripto|
00000ab0  72 73 20 61 72 65 20 75  73 65 64 20 61 6e 64 20  |rs are used and |
00000ac0  50 4b 5a 49 50 20 61 74  20 74 68 65 0a 20 20 20  |PKZIP at the.   |
00000ad0  74 69 6d 65 20 6f 66 20  74 68 69 73 20 77 72 69  |time of this wri|
00000ae0  74 69 6e 67 20 64 6f 65  73 20 6e 6f 74 20 73 75  |ting does not su|
00000af0  70 70 6f 72 74 20 64 61  74 61 20 64 65 73 63 72  |pport data descr|
00000b00  69 70 74 6f 72 73 20 28  62 75 74 20 72 65 63 65  |iptors (but rece|
00000b10  6e 74 0a 20 20 20 63 68  61 6e 67 65 73 20 69 6e  |nt.   changes in|
00000b20  20 74 68 65 20 50 4b 57  61 72 65 20 70 75 62 6c  | the PKWare publ|
00000b30  69 73 68 65 64 20 7a 69  70 20 73 74 61 6e 64 61  |ished zip standa|
00000b40  72 64 20 6e 6f 77 20 69  6e 63 6c 75 64 65 20 73  |rd now include s|
00000b50  6f 6d 65 20 73 75 70 70  6f 72 74 0a 20 20 20 66  |ome support.   f|
00000b60  6f 72 20 74 68 65 20 64  61 74 61 20 64 65 73 63  |or the data desc|
00000b70  72 69 70 74 6f 72 20 66  6f 72 6d 61 74 20 7a 69  |riptor format zi|
00000b80  70 20 75 73 65 73 29 2e  0a 0a 20 20 20 4d 61 63  |p uses)...   Mac|
00000b90  20 4f 53 20 58 2e 20 54  68 6f 75 67 68 20 70 72  | OS X. Though pr|
00000ba0  65 76 69 6f 75 73 20 4d  61 63 20 76 65 72 73 69  |evious Mac versi|
00000bb0  6f 6e 73 20 68 61 64 20  74 68 65 69 72 20 6f 77  |ons had their ow|
00000bc0  6e 20 7a 69 70 20 70 6f  72 74 2c 20 7a 69 70 0a  |n zip port, zip.|
00000bd0  20 20 20 73 75 70 70 6f  72 74 73 20 4d 61 63 20  |   supports Mac |
00000be0  4f 53 20 58 20 61 73 20  70 61 72 74 20 6f 66 20  |OS X as part of |
00000bf0  74 68 65 20 55 6e 69 78  20 70 6f 72 74 20 61 6e  |the Unix port an|
00000c00  64 20 6d 6f 73 74 20 55  6e 69 78 20 66 65 61 74  |d most Unix feat|
00000c10  75 72 65 73 0a 20 20 20  61 70 70 6c 79 2e 20 52  |ures.   apply. R|
00000c20  65 66 65 72 65 6e 63 65  73 20 74 6f 20 22 4d 61  |eferences to "Ma|
00000c30  63 4f 53 22 20 62 65 6c  6f 77 20 67 65 6e 65 72  |cOS" below gener|
00000c40  61 6c 6c 79 20 72 65 66  65 72 20 74 6f 20 4d 61  |ally refer to Ma|
00000c50  63 4f 53 20 76 65 72 73  69 6f 6e 73 0a 20 20 20  |cOS versions.   |
00000c60  6f 6c 64 65 72 20 74 68  61 6e 20 4f 53 20 58 2e  |older than OS X.|
00000c70  20 53 75 70 70 6f 72 74  20 66 6f 72 20 73 6f 6d  | Support for som|
00000c80  65 20 4d 61 63 20 4f 53  20 66 65 61 74 75 72 65  |e Mac OS feature|
00000c90  73 20 69 6e 20 74 68 65  20 55 6e 69 78 20 4d 61  |s in the Unix Ma|
00000ca0  63 20 4f 53 20 58 0a 20  20 20 70 6f 72 74 2c 20  |c OS X.   port, |
00000cb0  73 75 63 68 20 61 73 20  72 65 73 6f 75 72 63 65  |such as resource|
00000cc0  20 66 6f 72 6b 73 2c 20  69 73 20 65 78 70 65 63  | forks, is expec|
00000cd0  74 65 64 20 69 6e 20 74  68 65 20 6e 65 78 74 20  |ted in the next |
00000ce0  7a 69 70 20 72 65 6c 65  61 73 65 2e 0a 0a 20 20  |zip release...  |
00000cf0  20 46 6f 72 20 61 20 62  72 69 65 66 20 68 65 6c  | For a brief hel|
00000d00  70 20 6f 6e 20 7a 69 70  20 61 6e 64 20 75 6e 7a  |p on zip and unz|
00000d10  69 70 2c 20 72 75 6e 20  65 61 63 68 20 77 69 74  |ip, run each wit|
00000d20  68 6f 75 74 20 73 70 65  63 69 66 79 69 6e 67 20  |hout specifying |
00000d30  61 6e 79 0a 20 20 20 70  61 72 61 6d 65 74 65 72  |any.   parameter|
00000d40  73 20 6f 6e 20 74 68 65  20 63 6f 6d 6d 61 6e 64  |s on the command|
00000d50  20 6c 69 6e 65 2e 0a 0a  55 73 65 0a 0a 20 20 20  | line...Use..   |
00000d60  54 68 65 20 70 72 6f 67  72 61 6d 20 69 73 20 75  |The program is u|
00000d70  73 65 66 75 6c 20 66 6f  72 20 70 61 63 6b 61 67  |seful for packag|
00000d80  69 6e 67 20 61 20 73 65  74 20 6f 66 20 66 69 6c  |ing a set of fil|
00000d90  65 73 20 66 6f 72 20 64  69 73 74 72 69 62 75 74  |es for distribut|
00000da0  69 6f 6e 3b 0a 20 20 20  66 6f 72 20 61 72 63 68  |ion;.   for arch|
00000db0  69 76 69 6e 67 20 66 69  6c 65 73 3b 20 61 6e 64  |iving files; and|
00000dc0  20 66 6f 72 20 73 61 76  69 6e 67 20 64 69 73 6b  | for saving disk|
00000dd0  20 73 70 61 63 65 20 62  79 20 74 65 6d 70 6f 72  | space by tempor|
00000de0  61 72 69 6c 79 0a 20 20  20 63 6f 6d 70 72 65 73  |arily.   compres|
00000df0  73 69 6e 67 20 75 6e 75  73 65 64 20 66 69 6c 65  |sing unused file|
00000e00  73 20 6f 72 20 64 69 72  65 63 74 6f 72 69 65 73  |s or directories|
00000e10  2e 0a 0a 20 20 20 54 68  65 20 7a 69 70 20 70 72  |...   The zip pr|
00000e20  6f 67 72 61 6d 20 70 75  74 73 20 6f 6e 65 20 6f  |ogram puts one o|
00000e30  72 20 6d 6f 72 65 20 63  6f 6d 70 72 65 73 73 65  |r more compresse|
00000e40  64 20 66 69 6c 65 73 20  69 6e 74 6f 20 61 20 73  |d files into a s|
00000e50  69 6e 67 6c 65 20 7a 69  70 0a 20 20 20 61 72 63  |ingle zip.   arc|
00000e60  68 69 76 65 2c 20 61 6c  6f 6e 67 20 77 69 74 68  |hive, along with|
00000e70  20 69 6e 66 6f 72 6d 61  74 69 6f 6e 20 61 62 6f  | information abo|
00000e80  75 74 20 74 68 65 20 66  69 6c 65 73 20 28 6e 61  |ut the files (na|
00000e90  6d 65 2c 20 70 61 74 68  2c 20 64 61 74 65 2c 0a  |me, path, date,.|
00000ea0  20 20 20 74 69 6d 65 20  6f 66 20 6c 61 73 74 20  |   time of last |
00000eb0  6d 6f 64 69 66 69 63 61  74 69 6f 6e 2c 20 70 72  |modification, pr|
00000ec0  6f 74 65 63 74 69 6f 6e  2c 20 61 6e 64 20 63 68  |otection, and ch|
00000ed0  65 63 6b 20 69 6e 66 6f  72 6d 61 74 69 6f 6e 20  |eck information |
00000ee0  74 6f 20 76 65 72 69 66  79 0a 20 20 20 66 69 6c  |to verify.   fil|
00000ef0  65 20 69 6e 74 65 67 72  69 74 79 29 2e 20 41 6e  |e integrity). An|
00000f00  20 65 6e 74 69 72 65 20  64 69 72 65 63 74 6f 72  | entire director|
00000f10  79 20 73 74 72 75 63 74  75 72 65 20 63 61 6e 20  |y structure can |
00000f20  62 65 20 70 61 63 6b 65  64 20 69 6e 74 6f 20 61  |be packed into a|
00000f30  0a 20 20 20 7a 69 70 20  61 72 63 68 69 76 65 20  |.   zip archive |
00000f40  77 69 74 68 20 61 20 73  69 6e 67 6c 65 20 63 6f  |with a single co|
00000f50  6d 6d 61 6e 64 2e 20 43  6f 6d 70 72 65 73 73 69  |mmand. Compressi|
00000f60  6f 6e 20 72 61 74 69 6f  73 20 6f 66 20 32 3a 31  |on ratios of 2:1|
00000f70  20 74 6f 20 33 3a 31 0a  20 20 20 61 72 65 20 63  | to 3:1.   are c|
00000f80  6f 6d 6d 6f 6e 20 66 6f  72 20 74 65 78 74 20 66  |ommon for text f|
00000f90  69 6c 65 73 2e 20 7a 69  70 20 68 61 73 20 6f 6e  |iles. zip has on|
00000fa0  65 20 63 6f 6d 70 72 65  73 73 69 6f 6e 20 6d 65  |e compression me|
00000fb0  74 68 6f 64 20 28 64 65  66 6c 61 74 69 6f 6e 29  |thod (deflation)|
00000fc0  0a 20 20 20 61 6e 64 20  63 61 6e 20 61 6c 73 6f  |.   and can also|
00000fd0  20 73 74 6f 72 65 20 66  69 6c 65 73 20 77 69 74  | store files wit|
00000fe0  68 6f 75 74 20 63 6f 6d  70 72 65 73 73 69 6f 6e  |hout compression|
00000ff0  2e 20 28 49 66 20 62 7a  69 70 32 20 73 75 70 70  |. (If bzip2 supp|
00001000  6f 72 74 20 69 73 0a 20  20 20 61 64 64 65 64 2c  |ort is.   added,|
00001010  20 7a 69 70 20 63 61 6e  20 61 6c 73 6f 20 63 6f  | zip can also co|
00001020  6d 70 72 65 73 73 20 75  73 69 6e 67 20 62 7a 69  |mpress using bzi|
00001030  70 32 20 63 6f 6d 70 72  65 73 73 69 6f 6e 2c 20  |p2 compression, |
00001040  62 75 74 20 73 75 63 68  20 65 6e 74 72 69 65 73  |but such entries|
00001050  0a 20 20 20 72 65 71 75  69 72 65 20 61 20 72 65  |.   require a re|
00001060  61 73 6f 6e 61 62 6c 79  20 6d 6f 64 65 72 6e 20  |asonably modern |
00001070  75 6e 7a 69 70 20 74 6f  20 64 65 63 6f 6d 70 72  |unzip to decompr|
00001080  65 73 73 2e 20 57 68 65  6e 20 62 7a 69 70 32 0a  |ess. When bzip2.|
00001090  20 20 20 63 6f 6d 70 72  65 73 73 69 6f 6e 20 69  |   compression i|
000010a0  73 20 73 65 6c 65 63 74  65 64 2c 20 69 74 20 72  |s selected, it r|
000010b0  65 70 6c 61 63 65 73 20  64 65 66 6c 61 74 69 6f  |eplaces deflatio|
000010c0  6e 20 61 73 20 74 68 65  20 64 65 66 61 75 6c 74  |n as the default|
000010d0  20 6d 65 74 68 6f 64 2e  29 0a 20 20 20 7a 69 70  | method.).   zip|
000010e0  20 61 75 74 6f 6d 61 74  69 63 61 6c 6c 79 20 63  | automatically c|
000010f0  68 6f 6f 73 65 73 20 74  68 65 20 62 65 74 74 65  |hooses the bette|
00001100  72 20 6f 66 20 74 68 65  20 74 77 6f 20 28 64 65  |r of the two (de|
00001110  66 6c 61 74 69 6f 6e 20  6f 72 20 73 74 6f 72 65  |flation or store|
00001120  0a 20 20 20 6f 72 2c 20  69 66 20 62 7a 69 70 32  |.   or, if bzip2|
00001130  20 69 73 20 73 65 6c 65  63 74 65 64 2c 20 62 7a  | is selected, bz|
00001140  69 70 32 20 6f 72 20 73  74 6f 72 65 29 20 66 6f  |ip2 or store) fo|
00001150  72 20 65 61 63 68 20 66  69 6c 65 20 74 6f 20 62  |r each file to b|
00001160  65 0a 20 20 20 63 6f 6d  70 72 65 73 73 65 64 2e  |e.   compressed.|
00001170  0a 0a 20 20 20 43 6f 6d  6d 61 6e 64 20 66 6f 72  |..   Command for|
00001180  6d 61 74 2e 20 54 68 65  20 62 61 73 69 63 20 63  |mat. The basic c|
00001190  6f 6d 6d 61 6e 64 20 66  6f 72 6d 61 74 20 69 73  |ommand format is|
000011a0  0a 0a 20 20 20 7a 69 70  20 6f 70 74 69 6f 6e 73  |..   zip options|
000011b0  20 61 72 63 68 69 76 65  20 69 6e 70 61 74 68 20  | archive inpath |
000011c0  69 6e 70 61 74 68 20 2e  2e 2e 0a 0a 20 20 20 77  |inpath .....   w|
000011d0  68 65 72 65 20 61 72 63  68 69 76 65 20 69 73 20  |here archive is |
000011e0  61 20 6e 65 77 20 6f 72  20 65 78 69 73 74 69 6e  |a new or existin|
000011f0  67 20 7a 69 70 20 61 72  63 68 69 76 65 20 61 6e  |g zip archive an|
00001200  64 20 69 6e 70 61 74 68  20 69 73 20 61 0a 20 20  |d inpath is a.  |
00001210  20 64 69 72 65 63 74 6f  72 79 20 6f 72 20 66 69  | directory or fi|
00001220  6c 65 20 70 61 74 68 20  6f 70 74 69 6f 6e 61 6c  |le path optional|
00001230  6c 79 20 69 6e 63 6c 75  64 69 6e 67 20 77 69 6c  |ly including wil|
00001240  64 63 61 72 64 73 2e 20  57 68 65 6e 20 67 69 76  |dcards. When giv|
00001250  65 6e 20 74 68 65 0a 20  20 20 6e 61 6d 65 20 6f  |en the.   name o|
00001260  66 20 61 6e 20 65 78 69  73 74 69 6e 67 20 7a 69  |f an existing zi|
00001270  70 20 61 72 63 68 69 76  65 2c 20 7a 69 70 20 77  |p archive, zip w|
00001280  69 6c 6c 20 72 65 70 6c  61 63 65 20 69 64 65 6e  |ill replace iden|
00001290  74 69 63 61 6c 6c 79 20  6e 61 6d 65 64 0a 20 20  |tically named.  |
000012a0  20 65 6e 74 72 69 65 73  20 69 6e 20 74 68 65 20  | entries in the |
000012b0  7a 69 70 20 61 72 63 68  69 76 65 20 28 6d 61 74  |zip archive (mat|
000012c0  63 68 69 6e 67 20 74 68  65 20 72 65 6c 61 74 69  |ching the relati|
000012d0  76 65 20 6e 61 6d 65 73  20 61 73 20 73 74 6f 72  |ve names as stor|
000012e0  65 64 20 69 6e 0a 20 20  20 74 68 65 20 61 72 63  |ed in.   the arc|
000012f0  68 69 76 65 29 20 6f 72  20 61 64 64 20 65 6e 74  |hive) or add ent|
00001300  72 69 65 73 20 66 6f 72  20 6e 65 77 20 6e 61 6d  |ries for new nam|
00001310  65 73 2e 20 46 6f 72 20  65 78 61 6d 70 6c 65 2c  |es. For example,|
00001320  20 69 66 20 66 6f 6f 2e  7a 69 70 0a 20 20 20 65  | if foo.zip.   e|
00001330  78 69 73 74 73 20 61 6e  64 20 63 6f 6e 74 61 69  |xists and contai|
00001340  6e 73 20 66 6f 6f 2f 66  69 6c 65 31 20 61 6e 64  |ns foo/file1 and|
00001350  20 66 6f 6f 2f 66 69 6c  65 32 2c 20 61 6e 64 20  | foo/file2, and |
00001360  74 68 65 20 64 69 72 65  63 74 6f 72 79 20 66 6f  |the directory fo|
00001370  6f 0a 20 20 20 63 6f 6e  74 61 69 6e 73 20 74 68  |o.   contains th|
00001380  65 20 66 69 6c 65 73 20  66 6f 6f 2f 66 69 6c 65  |e files foo/file|
00001390  31 20 61 6e 64 20 66 6f  6f 2f 66 69 6c 65 33 2c  |1 and foo/file3,|
000013a0  20 74 68 65 6e 3a 0a 0a  20 20 20 7a 69 70 20 2d  | then:..   zip -|
000013b0  72 20 66 6f 6f 2e 7a 69  70 20 66 6f 6f 0a 0a 20  |r foo.zip foo.. |
000013c0  20 20 6f 72 20 6d 6f 72  65 20 63 6f 6e 63 69 73  |  or more concis|
000013d0  65 6c 79 0a 0a 20 20 20  7a 69 70 20 2d 72 20 66  |ely..   zip -r f|
000013e0  6f 6f 20 66 6f 6f 0a 0a  20 20 20 77 69 6c 6c 20  |oo foo..   will |
000013f0  72 65 70 6c 61 63 65 20  66 6f 6f 2f 66 69 6c 65  |replace foo/file|
00001400  31 20 69 6e 20 66 6f 6f  2e 7a 69 70 20 61 6e 64  |1 in foo.zip and|
00001410  20 61 64 64 20 66 6f 6f  2f 66 69 6c 65 33 20 74  | add foo/file3 t|
00001420  6f 20 66 6f 6f 2e 7a 69  70 2e 20 41 66 74 65 72  |o foo.zip. After|
00001430  0a 20 20 20 74 68 69 73  2c 20 66 6f 6f 2e 7a 69  |.   this, foo.zi|
00001440  70 20 63 6f 6e 74 61 69  6e 73 20 66 6f 6f 2f 66  |p contains foo/f|
00001450  69 6c 65 31 2c 20 66 6f  6f 2f 66 69 6c 65 32 2c  |ile1, foo/file2,|
00001460  20 61 6e 64 20 66 6f 6f  2f 66 69 6c 65 33 2c 20  | and foo/file3, |
00001470  77 69 74 68 0a 20 20 20  66 6f 6f 2f 66 69 6c 65  |with.   foo/file|
00001480  32 20 75 6e 63 68 61 6e  67 65 64 20 66 72 6f 6d  |2 unchanged from|
00001490  20 62 65 66 6f 72 65 2e  0a 0a 20 20 20 53 6f 20  | before...   So |
000014a0  69 66 20 62 65 66 6f 72  65 20 74 68 65 20 7a 69  |if before the zi|
000014b0  70 20 63 6f 6d 6d 61 6e  64 20 69 73 20 65 78 65  |p command is exe|
000014c0  63 75 74 65 64 20 66 6f  6f 2e 7a 69 70 20 68 61  |cuted foo.zip ha|
000014d0  73 3a 0a 0a 20 20 20 66  6f 6f 2f 66 69 6c 65 31  |s:..   foo/file1|
000014e0  20 66 6f 6f 2f 66 69 6c  65 32 0a 0a 20 20 20 61  | foo/file2..   a|
000014f0  6e 64 20 64 69 72 65 63  74 6f 72 79 20 66 6f 6f  |nd directory foo|
00001500  20 68 61 73 3a 0a 0a 20  20 20 66 69 6c 65 31 20  | has:..   file1 |
00001510  66 69 6c 65 33 0a 0a 20  20 20 74 68 65 6e 20 66  |file3..   then f|
00001520  6f 6f 2e 7a 69 70 20 77  69 6c 6c 20 68 61 76 65  |oo.zip will have|
00001530  3a 0a 0a 20 20 20 66 6f  6f 2f 66 69 6c 65 31 20  |:..   foo/file1 |
00001540  66 6f 6f 2f 66 69 6c 65  32 20 66 6f 6f 2f 66 69  |foo/file2 foo/fi|
00001550  6c 65 33 0a 0a 20 20 20  77 68 65 72 65 20 66 6f  |le3..   where fo|
00001560  6f 2f 66 69 6c 65 31 20  69 73 20 72 65 70 6c 61  |o/file1 is repla|
00001570  63 65 64 20 61 6e 64 20  66 6f 6f 2f 66 69 6c 65  |ced and foo/file|
00001580  33 20 69 73 20 6e 65 77  2e 0a 0a 20 20 20 2d 40  |3 is new...   -@|
00001590  20 66 69 6c 65 20 6c 69  73 74 73 2e 20 49 66 20  | file lists. If |
000015a0  61 20 66 69 6c 65 20 6c  69 73 74 20 69 73 20 73  |a file list is s|
000015b0  70 65 63 69 66 69 65 64  20 61 73 20 2d 40 20 5b  |pecified as -@ [|
000015c0  4e 6f 74 20 6f 6e 20 4d  61 63 4f 53 5d 2c 20 7a  |Not on MacOS], z|
000015d0  69 70 0a 20 20 20 74 61  6b 65 73 20 74 68 65 20  |ip.   takes the |
000015e0  6c 69 73 74 20 6f 66 20  69 6e 70 75 74 20 66 69  |list of input fi|
000015f0  6c 65 73 20 66 72 6f 6d  20 73 74 61 6e 64 61 72  |les from standar|
00001600  64 20 69 6e 70 75 74 20  69 6e 73 74 65 61 64 20  |d input instead |
00001610  6f 66 20 66 72 6f 6d 20  74 68 65 0a 20 20 20 63  |of from the.   c|
00001620  6f 6d 6d 61 6e 64 20 6c  69 6e 65 2e 20 46 6f 72  |ommand line. For|
00001630  20 65 78 61 6d 70 6c 65  2c 0a 0a 20 20 20 7a 69  | example,..   zi|
00001640  70 20 2d 40 20 66 6f 6f  0a 0a 20 20 20 77 69 6c  |p -@ foo..   wil|
00001650  6c 20 73 74 6f 72 65 20  74 68 65 20 66 69 6c 65  |l store the file|
00001660  73 20 6c 69 73 74 65 64  20 6f 6e 65 20 70 65 72  |s listed one per|
00001670  20 6c 69 6e 65 20 6f 6e  20 73 74 64 69 6e 20 69  | line on stdin i|
00001680  6e 20 66 6f 6f 2e 7a 69  70 2e 0a 0a 20 20 20 55  |n foo.zip...   U|
00001690  6e 64 65 72 20 55 6e 69  78 2c 20 74 68 69 73 20  |nder Unix, this |
000016a0  6f 70 74 69 6f 6e 20 63  61 6e 20 62 65 20 75 73  |option can be us|
000016b0  65 64 20 74 6f 20 70 6f  77 65 72 66 75 6c 20 65  |ed to powerful e|
000016c0  66 66 65 63 74 20 69 6e  20 63 6f 6e 6a 75 6e 63  |ffect in conjunc|
000016d0  74 69 6f 6e 0a 20 20 20  77 69 74 68 20 74 68 65  |tion.   with the|
000016e0  20 66 69 6e 64 20 28 31  29 20 63 6f 6d 6d 61 6e  | find (1) comman|
000016f0  64 2e 20 46 6f 72 20 65  78 61 6d 70 6c 65 2c 20  |d. For example, |
00001700  74 6f 20 61 72 63 68 69  76 65 20 61 6c 6c 20 74  |to archive all t|
00001710  68 65 20 43 0a 20 20 20  73 6f 75 72 63 65 20 66  |he C.   source f|
00001720  69 6c 65 73 20 69 6e 20  74 68 65 20 63 75 72 72  |iles in the curr|
00001730  65 6e 74 20 64 69 72 65  63 74 6f 72 79 20 61 6e  |ent directory an|
00001740  64 20 69 74 73 20 73 75  62 64 69 72 65 63 74 6f  |d its subdirecto|
00001750  72 69 65 73 3a 0a 0a 20  20 20 66 69 6e 64 20 2e  |ries:..   find .|
00001760  20 2d 6e 61 6d 65 20 22  2a 2e 5b 63 68 5d 22 20  | -name "*.[ch]" |
00001770  2d 70 72 69 6e 74 20 7c  20 7a 69 70 20 73 6f 75  |-print | zip sou|
00001780  72 63 65 20 2d 40 0a 0a  20 20 20 28 6e 6f 74 65  |rce -@..   (note|
00001790  20 74 68 61 74 20 74 68  65 20 70 61 74 74 65 72  | that the patter|
000017a0  6e 20 6d 75 73 74 20 62  65 20 71 75 6f 74 65 64  |n must be quoted|
000017b0  20 74 6f 20 6b 65 65 70  20 74 68 65 20 73 68 65  | to keep the she|
000017c0  6c 6c 20 66 72 6f 6d 20  65 78 70 61 6e 64 69 6e  |ll from expandin|
000017d0  67 0a 20 20 20 69 74 29  2e 0a 0a 20 20 20 53 74  |g.   it)...   St|
000017e0  72 65 61 6d 69 6e 67 20  69 6e 70 75 74 20 61 6e  |reaming input an|
000017f0  64 20 6f 75 74 70 75 74  2e 20 7a 69 70 20 77 69  |d output. zip wi|
00001800  6c 6c 20 61 6c 73 6f 20  61 63 63 65 70 74 20 61  |ll also accept a|
00001810  20 73 69 6e 67 6c 65 20  64 61 73 68 20 28 22 2d  | single dash ("-|
00001820  22 29 0a 20 20 20 61 73  20 74 68 65 20 7a 69 70  |").   as the zip|
00001830  20 66 69 6c 65 20 6e 61  6d 65 2c 20 69 6e 20 77  | file name, in w|
00001840  68 69 63 68 20 63 61 73  65 20 69 74 20 77 69 6c  |hich case it wil|
00001850  6c 20 77 72 69 74 65 20  74 68 65 20 7a 69 70 20  |l write the zip |
00001860  66 69 6c 65 20 74 6f 0a  20 20 20 73 74 61 6e 64  |file to.   stand|
00001870  61 72 64 20 6f 75 74 70  75 74 2c 20 61 6c 6c 6f  |ard output, allo|
00001880  77 69 6e 67 20 74 68 65  20 6f 75 74 70 75 74 20  |wing the output |
00001890  74 6f 20 62 65 20 70 69  70 65 64 20 74 6f 20 61  |to be piped to a|
000018a0  6e 6f 74 68 65 72 20 70  72 6f 67 72 61 6d 2e 0a  |nother program..|
000018b0  20 20 20 46 6f 72 20 65  78 61 6d 70 6c 65 3a 0a  |   For example:.|
000018c0  0a 20 20 20 7a 69 70 20  2d 72 20 2d 20 2e 20 7c  |.   zip -r - . ||
000018d0  20 64 64 20 6f 66 3d 2f  64 65 76 2f 6e 72 73 74  | dd of=/dev/nrst|
000018e0  30 20 6f 62 73 3d 31 36  6b 0a 0a 20 20 20 77 6f  |0 obs=16k..   wo|
000018f0  75 6c 64 20 77 72 69 74  65 20 74 68 65 20 7a 69  |uld write the zi|
00001900  70 20 6f 75 74 70 75 74  20 64 69 72 65 63 74 6c  |p output directl|
00001910  79 20 74 6f 20 61 20 74  61 70 65 20 77 69 74 68  |y to a tape with|
00001920  20 74 68 65 20 73 70 65  63 69 66 69 65 64 20 62  | the specified b|
00001930  6c 6f 63 6b 0a 20 20 20  73 69 7a 65 20 66 6f 72  |lock.   size for|
00001940  20 74 68 65 20 70 75 72  70 6f 73 65 20 6f 66 20  | the purpose of |
00001950  62 61 63 6b 69 6e 67 20  75 70 20 74 68 65 20 63  |backing up the c|
00001960  75 72 72 65 6e 74 20 64  69 72 65 63 74 6f 72 79  |urrent directory|
00001970  2e 0a 0a 20 20 20 7a 69  70 20 61 6c 73 6f 20 61  |...   zip also a|
00001980  63 63 65 70 74 73 20 61  20 73 69 6e 67 6c 65 20  |ccepts a single |
00001990  64 61 73 68 20 28 22 2d  22 29 20 61 73 20 74 68  |dash ("-") as th|
000019a0  65 20 6e 61 6d 65 20 6f  66 20 61 20 66 69 6c 65  |e name of a file|
000019b0  20 74 6f 20 62 65 0a 20  20 20 63 6f 6d 70 72 65  | to be.   compre|
000019c0  73 73 65 64 2c 20 69 6e  20 77 68 69 63 68 20 63  |ssed, in which c|
000019d0  61 73 65 20 69 74 20 77  69 6c 6c 20 72 65 61 64  |ase it will read|
000019e0  20 74 68 65 20 66 69 6c  65 20 66 72 6f 6d 20 73  | the file from s|
000019f0  74 61 6e 64 61 72 64 20  69 6e 70 75 74 2c 0a 20  |tandard input,. |
00001a00  20 20 61 6c 6c 6f 77 69  6e 67 20 7a 69 70 20 74  |  allowing zip t|
00001a10  6f 20 74 61 6b 65 20 69  6e 70 75 74 20 66 72 6f  |o take input fro|
00001a20  6d 20 61 6e 6f 74 68 65  72 20 70 72 6f 67 72 61  |m another progra|
00001a30  6d 2e 20 46 6f 72 20 65  78 61 6d 70 6c 65 3a 0a  |m. For example:.|
00001a40  0a 20 20 20 74 61 72 20  63 66 20 2d 20 2e 20 7c  |.   tar cf - . ||
00001a50  20 7a 69 70 20 62 61 63  6b 75 70 20 2d 0a 0a 20  | zip backup -.. |
00001a60  20 20 77 6f 75 6c 64 20  63 6f 6d 70 72 65 73 73  |  would compress|
00001a70  20 74 68 65 20 6f 75 74  70 75 74 20 6f 66 20 74  | the output of t|
00001a80  68 65 20 74 61 72 20 63  6f 6d 6d 61 6e 64 20 66  |he tar command f|
00001a90  6f 72 20 74 68 65 20 70  75 72 70 6f 73 65 20 6f  |or the purpose o|
00001aa0  66 0a 20 20 20 62 61 63  6b 69 6e 67 20 75 70 20  |f.   backing up |
00001ab0  74 68 65 20 63 75 72 72  65 6e 74 20 64 69 72 65  |the current dire|
00001ac0  63 74 6f 72 79 2e 20 54  68 69 73 20 67 65 6e 65  |ctory. This gene|
00001ad0  72 61 6c 6c 79 20 70 72  6f 64 75 63 65 73 20 62  |rally produces b|
00001ae0  65 74 74 65 72 0a 20 20  20 63 6f 6d 70 72 65 73  |etter.   compres|
00001af0  73 69 6f 6e 20 74 68 61  6e 20 74 68 65 20 70 72  |sion than the pr|
00001b00  65 76 69 6f 75 73 20 65  78 61 6d 70 6c 65 20 75  |evious example u|
00001b10  73 69 6e 67 20 74 68 65  20 2d 72 20 6f 70 74 69  |sing the -r opti|
00001b20  6f 6e 20 62 65 63 61 75  73 65 20 7a 69 70 0a 20  |on because zip. |
00001b30  20 20 63 61 6e 20 74 61  6b 65 20 61 64 76 61 6e  |  can take advan|
00001b40  74 61 67 65 20 6f 66 20  72 65 64 75 6e 64 61 6e  |tage of redundan|
00001b50  63 79 20 62 65 74 77 65  65 6e 20 66 69 6c 65 73  |cy between files|
00001b60  2e 20 54 68 65 20 62 61  63 6b 75 70 20 63 61 6e  |. The backup can|
00001b70  20 62 65 0a 20 20 20 72  65 73 74 6f 72 65 64 20  | be.   restored |
00001b80  75 73 69 6e 67 20 74 68  65 20 63 6f 6d 6d 61 6e  |using the comman|
00001b90  64 0a 0a 20 20 20 75 6e  7a 69 70 20 2d 70 20 62  |d..   unzip -p b|
00001ba0  61 63 6b 75 70 20 7c 20  74 61 72 20 78 66 20 2d  |ackup | tar xf -|
00001bb0  0a 0a 20 20 20 57 68 65  6e 20 6e 6f 20 7a 69 70  |..   When no zip|
00001bc0  20 66 69 6c 65 20 6e 61  6d 65 20 69 73 20 67 69  | file name is gi|
00001bd0  76 65 6e 20 61 6e 64 20  73 74 64 6f 75 74 20 69  |ven and stdout i|
00001be0  73 20 6e 6f 74 20 61 20  74 65 72 6d 69 6e 61 6c  |s not a terminal|
00001bf0  2c 20 7a 69 70 20 61 63  74 73 0a 20 20 20 61 73  |, zip acts.   as|
00001c00  20 61 20 66 69 6c 74 65  72 2c 20 63 6f 6d 70 72  | a filter, compr|
00001c10  65 73 73 69 6e 67 20 73  74 61 6e 64 61 72 64 20  |essing standard |
00001c20  69 6e 70 75 74 20 74 6f  20 73 74 61 6e 64 61 72  |input to standar|
00001c30  64 20 6f 75 74 70 75 74  2e 20 46 6f 72 0a 20 20  |d output. For.  |
00001c40  20 65 78 61 6d 70 6c 65  2c 0a 0a 20 20 20 74 61  | example,..   ta|
00001c50  72 20 63 66 20 2d 20 2e  20 7c 20 7a 69 70 20 7c  |r cf - . | zip ||
00001c60  20 64 64 20 6f 66 3d 2f  64 65 76 2f 6e 72 73 74  | dd of=/dev/nrst|
00001c70  30 20 6f 62 73 3d 31 36  6b 0a 0a 20 20 20 69 73  |0 obs=16k..   is|
00001c80  20 65 71 75 69 76 61 6c  65 6e 74 20 74 6f 0a 0a  | equivalent to..|
00001c90  20 20 20 74 61 72 20 63  66 20 2d 20 2e 20 7c 20  |   tar cf - . | |
00001ca0  7a 69 70 20 2d 20 2d 20  7c 20 64 64 20 6f 66 3d  |zip - - | dd of=|
00001cb0  2f 64 65 76 2f 6e 72 73  74 30 20 6f 62 73 3d 31  |/dev/nrst0 obs=1|
00001cc0  36 6b 0a 0a 20 20 20 7a  69 70 20 61 72 63 68 69  |6k..   zip archi|
00001cd0  76 65 73 20 63 72 65 61  74 65 64 20 69 6e 20 74  |ves created in t|
00001ce0  68 69 73 20 6d 61 6e 6e  65 72 20 63 61 6e 20 62  |his manner can b|
00001cf0  65 20 65 78 74 72 61 63  74 65 64 20 77 69 74 68  |e extracted with|
00001d00  20 74 68 65 20 70 72 6f  67 72 61 6d 0a 20 20 20  | the program.   |
00001d10  66 75 6e 7a 69 70 20 77  68 69 63 68 20 69 73 20  |funzip which is |
00001d20  70 72 6f 76 69 64 65 64  20 69 6e 20 74 68 65 20  |provided in the |
00001d30  75 6e 7a 69 70 20 70 61  63 6b 61 67 65 2c 20 6f  |unzip package, o|
00001d40  72 20 62 79 20 67 75 6e  7a 69 70 20 77 68 69 63  |r by gunzip whic|
00001d50  68 20 69 73 0a 20 20 20  70 72 6f 76 69 64 65 64  |h is.   provided|
00001d60  20 69 6e 20 74 68 65 20  67 7a 69 70 20 70 61 63  | in the gzip pac|
00001d70  6b 61 67 65 20 28 62 75  74 20 73 6f 6d 65 20 67  |kage (but some g|
00001d80  75 6e 7a 69 70 20 6d 61  79 20 6e 6f 74 20 73 75  |unzip may not su|
00001d90  70 70 6f 72 74 20 74 68  69 73 20 69 66 0a 20 20  |pport this if.  |
00001da0  20 7a 69 70 20 75 73 65  64 20 74 68 65 20 5a 69  | zip used the Zi|
00001db0  70 36 34 20 65 78 74 65  6e 73 69 6f 6e 73 29 2e  |p64 extensions).|
00001dc0  20 46 6f 72 20 65 78 61  6d 70 6c 65 3a 0a 0a 20  | For example:.. |
00001dd0  20 20 64 64 20 69 66 3d  2f 64 65 76 2f 6e 72 73  |  dd if=/dev/nrs|
00001de0  74 30 20 69 62 73 3d 31  36 6b 20 7c 20 66 75 6e  |t0 ibs=16k | fun|
00001df0  7a 69 70 20 7c 20 74 61  72 20 78 76 66 20 2d 0a  |zip | tar xvf -.|
00001e00  0a 20 20 20 54 68 65 20  73 74 72 65 61 6d 20 63  |.   The stream c|
00001e10  61 6e 20 61 6c 73 6f 20  62 65 20 73 61 76 65 64  |an also be saved|
00001e20  20 74 6f 20 61 20 66 69  6c 65 20 61 6e 64 20 75  | to a file and u|
00001e30  6e 7a 69 70 20 75 73 65  64 2e 0a 0a 20 20 20 49  |nzip used...   I|
00001e40  66 20 5a 69 70 36 34 20  73 75 70 70 6f 72 74 20  |f Zip64 support |
00001e50  66 6f 72 20 6c 61 72 67  65 20 66 69 6c 65 73 20  |for large files |
00001e60  61 6e 64 20 61 72 63 68  69 76 65 73 20 69 73 20  |and archives is |
00001e70  65 6e 61 62 6c 65 64 20  61 6e 64 20 7a 69 70 20  |enabled and zip |
00001e80  69 73 0a 20 20 20 75 73  65 64 20 61 73 20 61 20  |is.   used as a |
00001e90  66 69 6c 74 65 72 2c 20  7a 69 70 20 63 72 65 61  |filter, zip crea|
00001ea0  74 65 73 20 61 20 5a 69  70 36 34 20 61 72 63 68  |tes a Zip64 arch|
00001eb0  69 76 65 20 74 68 61 74  20 72 65 71 75 69 72 65  |ive that require|
00001ec0  73 20 61 20 50 4b 5a 49  50 0a 20 20 20 34 2e 35  |s a PKZIP.   4.5|
00001ed0  20 6f 72 20 6c 61 74 65  72 20 63 6f 6d 70 61 74  | or later compat|
00001ee0  69 62 6c 65 20 75 6e 7a  69 70 20 74 6f 20 72 65  |ible unzip to re|
00001ef0  61 64 20 69 74 2e 20 54  68 69 73 20 69 73 20 74  |ad it. This is t|
00001f00  6f 20 61 76 6f 69 64 20  61 6d 67 69 62 75 69 74  |o avoid amgibuit|
00001f10  69 65 73 0a 20 20 20 69  6e 20 74 68 65 20 7a 69  |ies.   in the zi|
00001f20  70 20 66 69 6c 65 20 73  74 72 75 63 74 75 72 65  |p file structure|
00001f30  20 61 73 20 64 65 66 69  6e 65 64 20 69 6e 20 74  | as defined in t|
00001f40  68 65 20 63 75 72 72 65  6e 74 20 7a 69 70 20 73  |he current zip s|
00001f50  74 61 6e 64 61 72 64 0a  20 20 20 28 50 4b 57 41  |tandard.   (PKWA|
00001f60  52 45 20 41 70 70 4e 6f  74 65 29 20 77 68 65 72  |RE AppNote) wher|
00001f70  65 20 74 68 65 20 64 65  63 69 73 69 6f 6e 20 74  |e the decision t|
00001f80  6f 20 75 73 65 20 5a 69  70 36 34 20 6e 65 65 64  |o use Zip64 need|
00001f90  73 20 74 6f 20 62 65 20  6d 61 64 65 0a 20 20 20  |s to be made.   |
00001fa0  62 65 66 6f 72 65 20 64  61 74 61 20 69 73 20 77  |before data is w|
00001fb0  72 69 74 74 65 6e 20 66  6f 72 20 74 68 65 20 65  |ritten for the e|
00001fc0  6e 74 72 79 2c 20 62 75  74 20 66 6f 72 20 61 20  |ntry, but for a |
00001fd0  73 74 72 65 61 6d 20 74  68 65 20 73 69 7a 65 20  |stream the size |
00001fe0  6f 66 20 74 68 65 0a 20  20 20 64 61 74 61 20 69  |of the.   data i|
00001ff0  73 20 6e 6f 74 20 6b 6e  6f 77 6e 20 61 74 20 74  |s not known at t|
00002000  68 61 74 20 70 6f 69 6e  74 2e 20 49 66 20 74 68  |hat point. If th|
00002010  65 20 64 61 74 61 20 69  73 20 6b 6e 6f 77 6e 20  |e data is known |
00002020  74 6f 20 62 65 20 73 6d  61 6c 6c 65 72 0a 20 20  |to be smaller.  |
00002030  20 74 68 61 6e 20 34 20  47 42 2c 20 74 68 65 20  | than 4 GB, the |
00002040  6f 70 74 69 6f 6e 20 2d  66 7a 2d 20 63 61 6e 20  |option -fz- can |
00002050  62 65 20 75 73 65 64 20  74 6f 20 70 72 65 76 65  |be used to preve|
00002060  6e 74 20 75 73 65 20 6f  66 20 5a 69 70 36 34 2c  |nt use of Zip64,|
00002070  20 62 75 74 0a 20 20 20  7a 69 70 20 77 69 6c 6c  | but.   zip will|
00002080  20 65 78 69 74 20 77 69  74 68 20 61 6e 20 65 72  | exit with an er|
00002090  72 6f 72 20 69 66 20 5a  69 70 36 34 20 77 61 73  |ror if Zip64 was|
000020a0  20 69 6e 20 66 61 63 74  20 6e 65 65 64 65 64 2e  | in fact needed.|
000020b0  20 7a 69 70 20 33 20 61  6e 64 0a 20 20 20 75 6e  | zip 3 and.   un|
000020c0  7a 69 70 20 36 20 61 6e  64 20 6c 61 74 65 72 20  |zip 6 and later |
000020d0  63 61 6e 20 72 65 61 64  20 61 72 63 68 69 76 65  |can read archive|
000020e0  73 20 77 69 74 68 20 5a  69 70 36 34 20 65 6e 74  |s with Zip64 ent|
000020f0  72 69 65 73 2e 20 41 6c  73 6f 2c 20 7a 69 70 0a  |ries. Also, zip.|
00002100  20 20 20 72 65 6d 6f 76  65 73 20 74 68 65 20 5a  |   removes the Z|
00002110  69 70 36 34 20 65 78 74  65 6e 73 69 6f 6e 73 20  |ip64 extensions |
00002120  69 66 20 6e 6f 74 20 6e  65 65 64 65 64 20 77 68  |if not needed wh|
00002130  65 6e 20 61 72 63 68 69  76 65 20 65 6e 74 72 69  |en archive entri|
00002140  65 73 20 61 72 65 0a 20  20 20 63 6f 70 69 65 64  |es are.   copied|
00002150  20 28 73 65 65 20 74 68  65 20 2d 55 20 28 2d 2d  | (see the -U (--|
00002160  63 6f 70 79 29 20 6f 70  74 69 6f 6e 29 2e 0a 0a  |copy) option)...|
00002170  20 20 20 57 68 65 6e 20  64 69 72 65 63 74 69 6e  |   When directin|
00002180  67 20 74 68 65 20 6f 75  74 70 75 74 20 74 6f 20  |g the output to |
00002190  61 6e 6f 74 68 65 72 20  66 69 6c 65 2c 20 6e 6f  |another file, no|
000021a0  74 65 20 74 68 61 74 20  61 6c 6c 20 6f 70 74 69  |te that all opti|
000021b0  6f 6e 73 0a 20 20 20 73  68 6f 75 6c 64 20 62 65  |ons.   should be|
000021c0  20 62 65 66 6f 72 65 20  74 68 65 20 72 65 64 69  | before the redi|
000021d0  72 65 63 74 69 6f 6e 20  69 6e 63 6c 75 64 69 6e  |rection includin|
000021e0  67 20 2d 78 2e 20 46 6f  72 20 65 78 61 6d 70 6c  |g -x. For exampl|
000021f0  65 3a 0a 0a 20 20 20 7a  69 70 20 61 72 63 68 69  |e:..   zip archi|
00002200  76 65 20 22 2a 2e 68 22  20 22 2a 2e 63 22 20 2d  |ve "*.h" "*.c" -|
00002210  78 20 64 6f 6e 6f 74 69  6e 63 6c 75 64 65 2e 68  |x donotinclude.h|
00002220  20 6f 72 74 68 69 73 2e  68 20 3e 20 74 6f 66 69  | orthis.h > tofi|
00002230  6c 65 0a 0a 20 20 20 5a  69 70 20 66 69 6c 65 73  |le..   Zip files|
00002240  2e 20 57 68 65 6e 20 63  68 61 6e 67 69 6e 67 20  |. When changing |
00002250  61 6e 20 65 78 69 73 74  69 6e 67 20 7a 69 70 20  |an existing zip |
00002260  61 72 63 68 69 76 65 2c  20 7a 69 70 20 77 69 6c  |archive, zip wil|
00002270  6c 20 77 72 69 74 65 20  61 0a 20 20 20 74 65 6d  |l write a.   tem|
00002280  70 6f 72 61 72 79 20 66  69 6c 65 20 77 69 74 68  |porary file with|
00002290  20 74 68 65 20 6e 65 77  20 63 6f 6e 74 65 6e 74  | the new content|
000022a0  73 2c 20 61 6e 64 20 6f  6e 6c 79 20 72 65 70 6c  |s, and only repl|
000022b0  61 63 65 20 74 68 65 20  6f 6c 64 20 6f 6e 65 0a  |ace the old one.|
000022c0  20 20 20 77 68 65 6e 20  74 68 65 20 70 72 6f 63  |   when the proc|
000022d0  65 73 73 20 6f 66 20 63  72 65 61 74 69 6e 67 20  |ess of creating |
000022e0  74 68 65 20 6e 65 77 20  76 65 72 73 69 6f 6e 20  |the new version |
000022f0  68 61 73 20 62 65 65 6e  20 63 6f 6d 70 6c 65 74  |has been complet|
00002300  65 64 0a 20 20 20 77 69  74 68 6f 75 74 20 65 72  |ed.   without er|
00002310  72 6f 72 2e 0a 0a 20 20  20 49 66 20 74 68 65 20  |ror...   If the |
00002320  6e 61 6d 65 20 6f 66 20  74 68 65 20 7a 69 70 20  |name of the zip |
00002330  61 72 63 68 69 76 65 20  64 6f 65 73 20 6e 6f 74  |archive does not|
00002340  20 63 6f 6e 74 61 69 6e  20 61 6e 20 65 78 74 65  | contain an exte|
00002350  6e 73 69 6f 6e 2c 20 74  68 65 0a 20 20 20 65 78  |nsion, the.   ex|
00002360  74 65 6e 73 69 6f 6e 20  2e 7a 69 70 20 69 73 20  |tension .zip is |
00002370  61 64 64 65 64 2e 20 49  66 20 74 68 65 20 6e 61  |added. If the na|
00002380  6d 65 20 61 6c 72 65 61  64 79 20 63 6f 6e 74 61  |me already conta|
00002390  69 6e 73 20 61 6e 20 65  78 74 65 6e 73 69 6f 6e  |ins an extension|
000023a0  0a 20 20 20 6f 74 68 65  72 20 74 68 61 6e 20 2e  |.   other than .|
000023b0  7a 69 70 2c 20 74 68 65  20 65 78 69 73 74 69 6e  |zip, the existin|
000023c0  67 20 65 78 74 65 6e 73  69 6f 6e 20 69 73 20 6b  |g extension is k|
000023d0  65 70 74 20 75 6e 63 68  61 6e 67 65 64 2e 20 48  |ept unchanged. H|
000023e0  6f 77 65 76 65 72 2c 0a  20 20 20 73 70 6c 69 74  |owever,.   split|
000023f0  20 61 72 63 68 69 76 65  73 20 28 61 72 63 68 69  | archives (archi|
00002400  76 65 73 20 73 70 6c 69  74 20 6f 76 65 72 20 6d  |ves split over m|
00002410  75 6c 74 69 70 6c 65 20  66 69 6c 65 73 29 20 72  |ultiple files) r|
00002420  65 71 75 69 72 65 20 74  68 65 20 2e 7a 69 70 0a  |equire the .zip.|
00002430  20 20 20 65 78 74 65 6e  73 69 6f 6e 20 6f 6e 20  |   extension on |
00002440  74 68 65 20 6c 61 73 74  20 73 70 6c 69 74 2e 0a  |the last split..|
00002450  0a 20 20 20 53 63 61 6e  6e 69 6e 67 20 61 6e 64  |.   Scanning and|
00002460  20 72 65 61 64 69 6e 67  20 66 69 6c 65 73 2e 20  | reading files. |
00002470  57 68 65 6e 20 7a 69 70  20 73 74 61 72 74 73 2c  |When zip starts,|
00002480  20 69 74 20 73 63 61 6e  73 20 66 6f 72 20 66 69  | it scans for fi|
00002490  6c 65 73 20 74 6f 0a 20  20 20 70 72 6f 63 65 73  |les to.   proces|
000024a0  73 20 28 69 66 20 6e 65  65 64 65 64 29 2e 20 49  |s (if needed). I|
000024b0  66 20 74 68 69 73 20 73  63 61 6e 20 74 61 6b 65  |f this scan take|
000024c0  73 20 6c 6f 6e 67 65 72  20 74 68 61 6e 20 61 62  |s longer than ab|
000024d0  6f 75 74 20 35 20 73 65  63 6f 6e 64 73 2c 0a 20  |out 5 seconds,. |
000024e0  20 20 7a 69 70 20 77 69  6c 6c 20 64 69 73 70 6c  |  zip will displ|
000024f0  61 79 20 61 20 22 53 63  61 6e 6e 69 6e 67 20 66  |ay a "Scanning f|
00002500  69 6c 65 73 22 20 6d 65  73 73 61 67 65 20 61 6e  |iles" message an|
00002510  64 20 73 74 61 72 74 20  64 69 73 70 6c 61 79 69  |d start displayi|
00002520  6e 67 0a 20 20 20 70 72  6f 67 72 65 73 73 20 64  |ng.   progress d|
00002530  6f 74 73 20 65 76 65 72  79 20 32 20 73 65 63 6f  |ots every 2 seco|
00002540  6e 64 73 20 6f 72 20 65  76 65 72 79 20 73 6f 20  |nds or every so |
00002550  6d 61 6e 79 20 65 6e 74  72 69 65 73 20 70 72 6f  |many entries pro|
00002560  63 65 73 73 65 64 2c 0a  20 20 20 77 68 69 63 68  |cessed,.   which|
00002570  65 76 65 72 20 74 61 6b  65 73 20 6c 6f 6e 67 65  |ever takes longe|
00002580  72 2e 20 49 66 20 74 68  65 72 65 20 69 73 20 6d  |r. If there is m|
00002590  6f 72 65 20 74 68 61 6e  20 32 20 73 65 63 6f 6e  |ore than 2 secon|
000025a0  64 73 20 62 65 74 77 65  65 6e 20 64 6f 74 73 0a  |ds between dots.|
000025b0  20 20 20 69 74 20 63 6f  75 6c 64 20 69 6e 64 69  |   it could indi|
000025c0  63 61 74 65 20 74 68 61  74 20 66 69 6e 64 69 6e  |cate that findin|
000025d0  67 20 65 61 63 68 20 66  69 6c 65 20 69 73 20 74  |g each file is t|
000025e0  61 6b 69 6e 67 20 74 69  6d 65 20 61 6e 64 20 63  |aking time and c|
000025f0  6f 75 6c 64 20 6d 65 61  6e 0a 20 20 20 61 20 73  |ould mean.   a s|
00002600  6c 6f 77 20 6e 65 74 77  6f 72 6b 20 63 6f 6e 6e  |low network conn|
00002610  65 63 74 69 6f 6e 20 66  6f 72 20 65 78 61 6d 70  |ection for examp|
00002620  6c 65 2e 20 28 41 63 74  75 61 6c 6c 79 20 74 68  |le. (Actually th|
00002630  65 20 69 6e 69 74 69 61  6c 20 66 69 6c 65 20 73  |e initial file s|
00002640  63 61 6e 0a 20 20 20 69  73 20 61 20 74 77 6f 2d  |can.   is a two-|
00002650  73 74 65 70 20 70 72 6f  63 65 73 73 20 77 68 65  |step process whe|
00002660  72 65 20 74 68 65 20 64  69 72 65 63 74 6f 72 79  |re the directory|
00002670  20 73 63 61 6e 20 69 73  20 66 6f 6c 6c 6f 77 65  | scan is followe|
00002680  64 20 62 79 20 61 20 73  6f 72 74 0a 20 20 20 61  |d by a sort.   a|
00002690  6e 64 20 74 68 65 73 65  20 74 77 6f 20 73 74 65  |nd these two ste|
000026a0  70 73 20 61 72 65 20 73  65 70 61 72 61 74 65 64  |ps are separated|
000026b0  20 77 69 74 68 20 61 20  73 70 61 63 65 20 69 6e  | with a space in|
000026c0  20 74 68 65 20 64 6f 74  73 2e 20 49 66 0a 20 20  | the dots. If.  |
000026d0  20 75 70 64 61 74 69 6e  67 20 61 6e 20 65 78 69  | updating an exi|
000026e0  73 74 69 6e 67 20 61 72  63 68 69 76 65 2c 20 61  |sting archive, a|
000026f0  20 73 70 61 63 65 20 61  6c 73 6f 20 61 70 70 65  | space also appe|
00002700  61 72 73 20 62 65 74 77  65 65 6e 20 74 68 65 0a  |ars between the.|
00002710  20 20 20 65 78 69 73 74  69 6e 67 20 66 69 6c 65  |   existing file|
00002720  20 73 63 61 6e 20 61 6e  64 20 74 68 65 20 6e 65  | scan and the ne|
00002730  77 20 66 69 6c 65 20 73  63 61 6e 2e 29 20 54 68  |w file scan.) Th|
00002740  65 20 73 63 61 6e 6e 69  6e 67 20 66 69 6c 65 73  |e scanning files|
00002750  20 64 6f 74 73 20 61 72  65 0a 20 20 20 6e 6f 74  | dots are.   not|
00002760  20 63 6f 6e 74 72 6f 6c  6c 65 64 20 62 79 20 74  | controlled by t|
00002770  68 65 20 2d 64 73 20 64  6f 74 20 73 69 7a 65 20  |he -ds dot size |
00002780  6f 70 74 69 6f 6e 2c 20  62 75 74 20 74 68 65 20  |option, but the |
00002790  64 6f 74 73 20 61 72 65  20 74 75 72 6e 65 64 20  |dots are turned |
000027a0  6f 66 66 0a 20 20 20 62  79 20 74 68 65 20 2d 71  |off.   by the -q|
000027b0  20 71 75 69 65 74 20 6f  70 74 69 6f 6e 2e 20 54  | quiet option. T|
000027c0  68 65 20 2d 73 66 20 73  68 6f 77 20 66 69 6c 65  |he -sf show file|
000027d0  73 20 6f 70 74 69 6f 6e  20 63 61 6e 20 62 65 20  |s option can be |
000027e0  75 73 65 64 20 74 6f 20  73 63 61 6e 0a 20 20 20  |used to scan.   |
000027f0  66 6f 72 20 66 69 6c 65  73 20 61 6e 64 20 67 65  |for files and ge|
00002800  74 20 74 68 65 20 6c 69  73 74 20 6f 66 20 66 69  |t the list of fi|
00002810  6c 65 73 20 73 63 61 6e  6e 65 64 20 77 69 74 68  |les scanned with|
00002820  6f 75 74 20 61 63 74 75  61 6c 6c 79 0a 20 20 20  |out actually.   |
00002830  70 72 6f 63 65 73 73 69  6e 67 20 74 68 65 6d 2e  |processing them.|
00002840  0a 0a 20 20 20 49 66 20  7a 69 70 20 69 73 20 6e  |..   If zip is n|
00002850  6f 74 20 61 62 6c 65 20  74 6f 20 72 65 61 64 20  |ot able to read |
00002860  61 20 66 69 6c 65 2c 20  69 74 20 69 73 73 75 65  |a file, it issue|
00002870  73 20 61 20 77 61 72 6e  69 6e 67 20 62 75 74 20  |s a warning but |
00002880  63 6f 6e 74 69 6e 75 65  73 2e 0a 20 20 20 53 65  |continues..   Se|
00002890  65 20 74 68 65 20 2d 4d  4d 20 6f 70 74 69 6f 6e  |e the -MM option|
000028a0  20 62 65 6c 6f 77 20 66  6f 72 20 6d 6f 72 65 20  | below for more |
000028b0  6f 6e 20 68 6f 77 20 7a  69 70 20 68 61 6e 64 6c  |on how zip handl|
000028c0  65 73 20 70 61 74 74 65  72 6e 73 20 74 68 61 74  |es patterns that|
000028d0  20 61 72 65 0a 20 20 20  6e 6f 74 20 6d 61 74 63  | are.   not matc|
000028e0  68 65 64 20 61 6e 64 20  66 69 6c 65 73 20 74 68  |hed and files th|
000028f0  61 74 20 61 72 65 20 6e  6f 74 20 72 65 61 64 61  |at are not reada|
00002900  62 6c 65 2e 20 49 66 20  73 6f 6d 65 20 66 69 6c  |ble. If some fil|
00002910  65 73 20 77 65 72 65 0a  20 20 20 73 6b 69 70 70  |es were.   skipp|
00002920  65 64 2c 20 61 20 77 61  72 6e 69 6e 67 20 69 73  |ed, a warning is|
00002930  20 69 73 73 75 65 64 20  61 74 20 74 68 65 20 65  | issued at the e|
00002940  6e 64 20 6f 66 20 74 68  65 20 7a 69 70 20 6f 70  |nd of the zip op|
00002950  65 72 61 74 69 6f 6e 20  6e 6f 74 69 6e 67 0a 20  |eration noting. |
00002960  20 20 68 6f 77 20 6d 61  6e 79 20 66 69 6c 65 73  |  how many files|
00002970  20 77 65 72 65 20 72 65  61 64 20 61 6e 64 20 68  | were read and h|
00002980  6f 77 20 6d 61 6e 79 20  73 6b 69 70 70 65 64 2e  |ow many skipped.|
00002990  0a 0a 20 20 20 43 6f 6d  6d 61 6e 64 20 6d 6f 64  |..   Command mod|
000029a0  65 73 2e 20 7a 69 70 20  6e 6f 77 20 73 75 70 70  |es. zip now supp|
000029b0  6f 72 74 73 20 74 77 6f  20 64 69 73 74 69 6e 63  |orts two distinc|
000029c0  74 20 74 79 70 65 73 20  6f 66 20 63 6f 6d 6d 61  |t types of comma|
000029d0  6e 64 20 6d 6f 64 65 73  2c 0a 20 20 20 65 78 74  |nd modes,.   ext|
000029e0  65 72 6e 61 6c 20 61 6e  64 20 69 6e 74 65 72 6e  |ernal and intern|
000029f0  61 6c 2e 20 54 68 65 20  65 78 74 65 72 6e 61 6c  |al. The external|
00002a00  20 6d 6f 64 65 73 20 28  61 64 64 2c 20 75 70 64  | modes (add, upd|
00002a10  61 74 65 2c 20 61 6e 64  20 66 72 65 73 68 65 6e  |ate, and freshen|
00002a20  29 0a 20 20 20 72 65 61  64 20 66 69 6c 65 73 20  |).   read files |
00002a30  66 72 6f 6d 20 74 68 65  20 66 69 6c 65 20 73 79  |from the file sy|
00002a40  73 74 65 6d 20 28 61 73  20 77 65 6c 6c 20 61 73  |stem (as well as|
00002a50  20 66 72 6f 6d 20 61 6e  20 65 78 69 73 74 69 6e  | from an existin|
00002a60  67 20 61 72 63 68 69 76  65 29 0a 20 20 20 77 68  |g archive).   wh|
00002a70  69 6c 65 20 74 68 65 20  69 6e 74 65 72 6e 61 6c  |ile the internal|
00002a80  20 6d 6f 64 65 73 20 28  64 65 6c 65 74 65 20 61  | modes (delete a|
00002a90  6e 64 20 63 6f 70 79 29  20 6f 70 65 72 61 74 65  |nd copy) operate|
00002aa0  20 65 78 63 6c 75 73 69  76 65 6c 79 20 6f 6e 0a  | exclusively on.|
00002ab0  20 20 20 65 6e 74 72 69  65 73 20 69 6e 20 61 6e  |   entries in an|
00002ac0  20 65 78 69 73 74 69 6e  67 20 61 72 63 68 69 76  | existing archiv|
00002ad0  65 2e 0a 0a 20 20 20 61  64 64 0a 20 20 20 20 20  |e...   add.     |
00002ae0  20 20 20 20 20 55 70 64  61 74 65 20 65 78 69 73  |     Update exis|
00002af0  74 69 6e 67 20 65 6e 74  72 69 65 73 20 61 6e 64  |ting entries and|
00002b00  20 61 64 64 20 6e 65 77  20 66 69 6c 65 73 2e 20  | add new files. |
00002b10  49 66 20 74 68 65 20 61  72 63 68 69 76 65 20 64  |If the archive d|
00002b20  6f 65 73 0a 20 20 20 20  20 20 20 20 20 20 6e 6f  |oes.          no|
00002b30  74 20 65 78 69 73 74 20  63 72 65 61 74 65 20 69  |t exist create i|
00002b40  74 2e 20 54 68 69 73 20  69 73 20 74 68 65 20 64  |t. This is the d|
00002b50  65 66 61 75 6c 74 20 6d  6f 64 65 2e 0a 0a 20 20  |efault mode...  |
00002b60  20 75 70 64 61 74 65 20  28 2d 75 29 0a 20 20 20  | update (-u).   |
00002b70  20 20 20 20 20 20 20 55  70 64 61 74 65 20 65 78  |       Update ex|
00002b80  69 73 74 69 6e 67 20 65  6e 74 72 69 65 73 20 69  |isting entries i|
00002b90  66 20 6e 65 77 65 72 20  6f 6e 20 74 68 65 20 66  |f newer on the f|
00002ba0  69 6c 65 20 73 79 73 74  65 6d 20 61 6e 64 20 61  |ile system and a|
00002bb0  64 64 20 6e 65 77 0a 20  20 20 20 20 20 20 20 20  |dd new.         |
00002bc0  20 66 69 6c 65 73 2e 20  49 66 20 74 68 65 20 61  | files. If the a|
00002bd0  72 63 68 69 76 65 20 64  6f 65 73 20 6e 6f 74 20  |rchive does not |
00002be0  65 78 69 73 74 20 69 73  73 75 65 20 77 61 72 6e  |exist issue warn|
00002bf0  69 6e 67 20 74 68 65 6e  20 63 72 65 61 74 65 0a  |ing then create.|
00002c00  20 20 20 20 20 20 20 20  20 20 61 20 6e 65 77 20  |          a new |
00002c10  61 72 63 68 69 76 65 2e  0a 0a 20 20 20 66 72 65  |archive...   fre|
00002c20  73 68 65 6e 20 28 2d 66  29 0a 20 20 20 20 20 20  |shen (-f).      |
00002c30  20 20 20 20 55 70 64 61  74 65 20 65 78 69 73 74  |    Update exist|
00002c40  69 6e 67 20 65 6e 74 72  69 65 73 20 6f 66 20 61  |ing entries of a|
00002c50  6e 20 61 72 63 68 69 76  65 20 69 66 20 6e 65 77  |n archive if new|
00002c60  65 72 20 6f 6e 20 74 68  65 20 66 69 6c 65 0a 20  |er on the file. |
00002c70  20 20 20 20 20 20 20 20  20 73 79 73 74 65 6d 2e  |         system.|
00002c80  20 44 6f 65 73 20 6e 6f  74 20 61 64 64 20 6e 65  | Does not add ne|
00002c90  77 20 66 69 6c 65 73 20  74 6f 20 74 68 65 20 61  |w files to the a|
00002ca0  72 63 68 69 76 65 2e 0a  0a 20 20 20 64 65 6c 65  |rchive...   dele|
00002cb0  74 65 20 28 2d 64 29 0a  20 20 20 20 20 20 20 20  |te (-d).        |
00002cc0  20 20 53 65 6c 65 63 74  20 65 6e 74 72 69 65 73  |  Select entries|
00002cd0  20 69 6e 20 61 6e 20 65  78 69 73 74 69 6e 67 20  | in an existing |
00002ce0  61 72 63 68 69 76 65 20  61 6e 64 20 64 65 6c 65  |archive and dele|
00002cf0  74 65 20 74 68 65 6d 2e  0a 0a 20 20 20 63 6f 70  |te them...   cop|
00002d00  79 20 28 2d 55 29 0a 20  20 20 20 20 20 20 20 20  |y (-U).         |
00002d10  20 53 65 6c 65 63 74 20  65 6e 74 72 69 65 73 20  | Select entries |
00002d20  69 6e 20 61 6e 20 65 78  69 73 74 69 6e 67 20 61  |in an existing a|
00002d30  72 63 68 69 76 65 20 61  6e 64 20 63 6f 70 79 20  |rchive and copy |
00002d40  74 68 65 6d 20 74 6f 20  61 20 6e 65 77 0a 20 20  |them to a new.  |
00002d50  20 20 20 20 20 20 20 20  61 72 63 68 69 76 65 2e  |        archive.|
00002d60  20 54 68 69 73 20 6e 65  77 20 6d 6f 64 65 20 69  | This new mode i|
00002d70  73 20 73 69 6d 69 6c 61  72 20 74 6f 20 75 70 64  |s similar to upd|
00002d80  61 74 65 20 62 75 74 20  63 6f 6d 6d 61 6e 64 20  |ate but command |
00002d90  6c 69 6e 65 0a 20 20 20  20 20 20 20 20 20 20 70  |line.          p|
00002da0  61 74 74 65 72 6e 73 20  73 65 6c 65 63 74 20 65  |atterns select e|
00002db0  6e 74 72 69 65 73 20 69  6e 20 74 68 65 20 65 78  |ntries in the ex|
00002dc0  69 73 74 69 6e 67 20 61  72 63 68 69 76 65 20 72  |isting archive r|
00002dd0  61 74 68 65 72 20 74 68  61 6e 0a 20 20 20 20 20  |ather than.     |
00002de0  20 20 20 20 20 66 69 6c  65 73 20 66 72 6f 6d 20  |     files from |
00002df0  74 68 65 20 66 69 6c 65  20 73 79 73 74 65 6d 20  |the file system |
00002e00  61 6e 64 20 69 74 20 75  73 65 73 20 74 68 65 20  |and it uses the |
00002e10  2d 2d 6f 75 74 20 6f 70  74 69 6f 6e 20 74 6f 0a  |--out option to.|
00002e20  20 20 20 20 20 20 20 20  20 20 77 72 69 74 65 20  |          write |
00002e30  74 68 65 20 72 65 73 75  6c 74 69 6e 67 20 61 72  |the resulting ar|
00002e40  63 68 69 76 65 20 74 6f  20 61 20 6e 65 77 20 66  |chive to a new f|
00002e50  69 6c 65 20 72 61 74 68  65 72 20 74 68 61 6e 20  |ile rather than |
00002e60  75 70 64 61 74 65 0a 20  20 20 20 20 20 20 20 20  |update.         |
00002e70  20 74 68 65 20 65 78 69  73 74 69 6e 67 20 61 72  | the existing ar|
00002e80  63 68 69 76 65 2c 20 6c  65 61 76 69 6e 67 20 74  |chive, leaving t|
00002e90  68 65 20 6f 72 69 67 69  6e 61 6c 20 61 72 63 68  |he original arch|
00002ea0  69 76 65 20 75 6e 63 68  61 6e 67 65 64 2e 0a 0a  |ive unchanged...|
00002eb0  20 20 20 54 68 65 20 6e  65 77 20 46 69 6c 65 20  |   The new File |
00002ec0  53 79 6e 63 20 6f 70 74  69 6f 6e 20 28 2d 46 53  |Sync option (-FS|
00002ed0  29 20 69 73 20 61 6c 73  6f 20 63 6f 6e 73 69 64  |) is also consid|
00002ee0  65 72 65 64 20 61 20 6e  65 77 20 6d 6f 64 65 2c  |ered a new mode,|
00002ef0  20 74 68 6f 75 67 68 0a  20 20 20 69 74 20 69 73  | though.   it is|
00002f00  20 73 69 6d 69 6c 61 72  20 74 6f 20 75 70 64 61  | similar to upda|
00002f10  74 65 2e 20 54 68 69 73  20 6d 6f 64 65 20 73 79  |te. This mode sy|
00002f20  6e 63 68 72 6f 6e 69 7a  65 73 20 74 68 65 20 61  |nchronizes the a|
00002f30  72 63 68 69 76 65 20 77  69 74 68 20 74 68 65 0a  |rchive with the.|
00002f40  20 20 20 66 69 6c 65 73  20 6f 6e 20 74 68 65 20  |   files on the |
00002f50  4f 53 2c 20 6f 6e 6c 79  20 72 65 70 6c 61 63 69  |OS, only replaci|
00002f60  6e 67 20 66 69 6c 65 73  20 69 6e 20 74 68 65 20  |ng files in the |
00002f70  61 72 63 68 69 76 65 20  69 66 20 74 68 65 20 66  |archive if the f|
00002f80  69 6c 65 20 74 69 6d 65  0a 20 20 20 6f 72 20 73  |ile time.   or s|
00002f90  69 7a 65 20 6f 66 20 74  68 65 20 4f 53 20 66 69  |ize of the OS fi|
00002fa0  6c 65 20 69 73 20 64 69  66 66 65 72 65 6e 74 2c  |le is different,|
00002fb0  20 61 64 64 69 6e 67 20  6e 65 77 20 66 69 6c 65  | adding new file|
00002fc0  73 2c 20 61 6e 64 20 64  65 6c 65 74 69 6e 67 0a  |s, and deleting.|
00002fd0  20 20 20 65 6e 74 72 69  65 73 20 66 72 6f 6d 20  |   entries from |
00002fe0  74 68 65 20 61 72 63 68  69 76 65 20 77 68 65 72  |the archive wher|
00002ff0  65 20 74 68 65 72 65 20  69 73 20 6e 6f 20 6d 61  |e there is no ma|
00003000  74 63 68 69 6e 67 20 66  69 6c 65 2e 20 41 73 20  |tching file. As |
00003010  74 68 69 73 20 6d 6f 64  65 0a 20 20 20 63 61 6e  |this mode.   can|
00003020  20 64 65 6c 65 74 65 20  65 6e 74 72 69 65 73 20  | delete entries |
00003030  66 72 6f 6d 20 74 68 65  20 61 72 63 68 69 76 65  |from the archive|
00003040  2c 20 63 6f 6e 73 69 64  65 72 20 6d 61 6b 69 6e  |, consider makin|
00003050  67 20 61 20 62 61 63 6b  75 70 20 63 6f 70 79 20  |g a backup copy |
00003060  6f 66 0a 20 20 20 74 68  65 20 61 72 63 68 69 76  |of.   the archiv|
00003070  65 2e 0a 0a 20 20 20 41  6c 73 6f 20 73 65 65 20  |e...   Also see |
00003080  2d 44 46 20 66 6f 72 20  63 72 65 61 74 69 6e 67  |-DF for creating|
00003090  20 64 69 66 66 65 72 65  6e 63 65 20 61 72 63 68  | difference arch|
000030a0  69 76 65 73 2e 0a 0a 20  20 20 53 65 65 20 65 61  |ives...   See ea|
000030b0  63 68 20 6f 70 74 69 6f  6e 20 64 65 73 63 72 69  |ch option descri|
000030c0  70 74 69 6f 6e 20 62 65  6c 6f 77 20 66 6f 72 20  |ption below for |
000030d0  64 65 74 61 69 6c 73 20  61 6e 64 20 74 68 65 20  |details and the |
000030e0  45 58 41 4d 50 4c 45 53  20 73 65 63 74 69 6f 6e  |EXAMPLES section|
000030f0  0a 20 20 20 62 65 6c 6f  77 20 66 6f 72 20 65 78  |.   below for ex|
00003100  61 6d 70 6c 65 73 2e 0a  0a 20 20 20 53 70 6c 69  |amples...   Spli|
00003110  74 20 61 72 63 68 69 76  65 73 2e 20 7a 69 70 20  |t archives. zip |
00003120  76 65 72 73 69 6f 6e 20  33 2e 30 20 61 6e 64 20  |version 3.0 and |
00003130  6c 61 74 65 72 20 63 61  6e 20 63 72 65 61 74 65  |later can create|
00003140  20 73 70 6c 69 74 20 61  72 63 68 69 76 65 73 2e  | split archives.|
00003150  20 41 0a 20 20 20 73 70  6c 69 74 20 61 72 63 68  | A.   split arch|
00003160  69 76 65 20 69 73 20 61  20 73 74 61 6e 64 61 72  |ive is a standar|
00003170  64 20 7a 69 70 20 61 72  63 68 69 76 65 20 73 70  |d zip archive sp|
00003180  6c 69 74 20 6f 76 65 72  20 6d 75 6c 74 69 70 6c  |lit over multipl|
00003190  65 20 66 69 6c 65 73 2e  0a 20 20 20 28 4e 6f 74  |e files..   (Not|
000031a0  65 20 74 68 61 74 20 73  70 6c 69 74 20 61 72 63  |e that split arc|
000031b0  68 69 76 65 73 20 61 72  65 20 6e 6f 74 20 6a 75  |hives are not ju|
000031c0  73 74 20 61 72 63 68 69  76 65 73 20 73 70 6c 69  |st archives spli|
000031d0  74 20 69 6e 20 74 6f 20  70 69 65 63 65 73 2c 20  |t in to pieces, |
000031e0  61 73 0a 20 20 20 74 68  65 20 6f 66 66 73 65 74  |as.   the offset|
000031f0  73 20 6f 66 20 65 6e 74  72 69 65 73 20 61 72 65  |s of entries are|
00003200  20 6e 6f 77 20 62 61 73  65 64 20 6f 6e 20 74 68  | now based on th|
00003210  65 20 73 74 61 72 74 20  6f 66 20 65 61 63 68 20  |e start of each |
00003220  73 70 6c 69 74 2e 0a 20  20 20 43 6f 6e 63 61 74  |split..   Concat|
00003230  65 6e 61 74 69 6e 67 20  74 68 65 20 70 69 65 63  |enating the piec|
00003240  65 73 20 74 6f 67 65 74  68 65 72 20 77 69 6c 6c  |es together will|
00003250  20 69 6e 76 61 6c 69 64  61 74 65 20 74 68 65 73  | invalidate thes|
00003260  65 20 6f 66 66 73 65 74  73 2c 20 62 75 74 0a 20  |e offsets, but. |
00003270  20 20 75 6e 7a 69 70 20  63 61 6e 20 75 73 75 61  |  unzip can usua|
00003280  6c 6c 79 20 64 65 61 6c  20 77 69 74 68 20 69 74  |lly deal with it|
00003290  2e 20 7a 69 70 20 77 69  6c 6c 20 75 73 75 61 6c  |. zip will usual|
000032a0  6c 79 20 72 65 66 75 73  65 20 74 6f 20 70 72 6f  |ly refuse to pro|
000032b0  63 65 73 73 0a 20 20 20  73 75 63 68 20 61 20 73  |cess.   such a s|
000032c0  70 6c 69 63 65 64 20 61  72 63 68 69 76 65 20 75  |pliced archive u|
000032d0  6e 6c 65 73 73 20 74 68  65 20 2d 46 46 20 66 69  |nless the -FF fi|
000032e0  78 20 6f 70 74 69 6f 6e  20 69 73 20 75 73 65 64  |x option is used|
000032f0  20 74 6f 20 66 69 78 20  74 68 65 0a 20 20 20 6f  | to fix the.   o|
00003300  66 66 73 65 74 73 2e 29  0a 0a 20 20 20 4f 6e 65  |ffsets.)..   One|
00003310  20 75 73 65 20 6f 66 20  73 70 6c 69 74 20 61 72  | use of split ar|
00003320  63 68 69 76 65 73 20 69  73 20 73 74 6f 72 69 6e  |chives is storin|
00003330  67 20 61 20 6c 61 72 67  65 20 61 72 63 68 69 76  |g a large archiv|
00003340  65 20 6f 6e 20 6d 75 6c  74 69 70 6c 65 0a 20 20  |e on multiple.  |
00003350  20 72 65 6d 6f 76 61 62  6c 65 20 6d 65 64 69 61  | removable media|
00003360  2e 20 46 6f 72 20 61 20  73 70 6c 69 74 20 61 72  |. For a split ar|
00003370  63 68 69 76 65 20 77 69  74 68 20 32 30 20 73 70  |chive with 20 sp|
00003380  6c 69 74 20 66 69 6c 65  73 20 74 68 65 20 66 69  |lit files the fi|
00003390  6c 65 73 20 61 72 65 0a  20 20 20 74 79 70 69 63  |les are.   typic|
000033a0  61 6c 6c 79 20 6e 61 6d  65 64 20 28 72 65 70 6c  |ally named (repl|
000033b0  61 63 65 20 41 52 43 48  49 56 45 20 77 69 74 68  |ace ARCHIVE with|
000033c0  20 74 68 65 20 6e 61 6d  65 20 6f 66 20 79 6f 75  | the name of you|
000033d0  72 20 61 72 63 68 69 76  65 29 0a 20 20 20 41 52  |r archive).   AR|
000033e0  43 48 49 56 45 2e 7a 30  31 2c 20 41 52 43 48 49  |CHIVE.z01, ARCHI|
000033f0  56 45 2e 7a 30 32 2c 20  2e 2e 2e 2c 20 41 52 43  |VE.z02, ..., ARC|
00003400  48 49 56 45 2e 7a 31 39  2c 20 41 52 43 48 49 56  |HIVE.z19, ARCHIV|
00003410  45 2e 7a 69 70 2e 20 4e  6f 74 65 20 74 68 61 74  |E.zip. Note that|
00003420  20 74 68 65 0a 20 20 20  6c 61 73 74 20 66 69 6c  | the.   last fil|
00003430  65 20 69 73 20 74 68 65  20 2e 7a 69 70 20 66 69  |e is the .zip fi|
00003440  6c 65 2e 20 49 6e 20 63  6f 6e 74 72 61 73 74 2c  |le. In contrast,|
00003450  20 73 70 61 6e 6e 65 64  20 61 72 63 68 69 76 65  | spanned archive|
00003460  73 20 61 72 65 20 74 68  65 0a 20 20 20 6f 72 69  |s are the.   ori|
00003470  67 69 6e 61 6c 20 6d 75  6c 74 69 2d 64 69 73 6b  |ginal multi-disk|
00003480  20 61 72 63 68 69 76 65  20 67 65 6e 65 72 61 6c  | archive general|
00003490  6c 79 20 72 65 71 75 69  72 69 6e 67 20 66 6c 6f  |ly requiring flo|
000034a0  70 70 79 20 64 69 73 6b  73 20 61 6e 64 20 75 73  |ppy disks and us|
000034b0  69 6e 67 0a 20 20 20 76  6f 6c 75 6d 65 20 6c 61  |ing.   volume la|
000034c0  62 65 6c 73 20 74 6f 20  73 74 6f 72 65 20 64 69  |bels to store di|
000034d0  73 6b 20 6e 75 6d 62 65  72 73 2e 20 7a 69 70 20  |sk numbers. zip |
000034e0  73 75 70 70 6f 72 74 73  20 73 70 6c 69 74 20 61  |supports split a|
000034f0  72 63 68 69 76 65 73 20  62 75 74 0a 20 20 20 6e  |rchives but.   n|
00003500  6f 74 20 73 70 61 6e 6e  65 64 20 61 72 63 68 69  |ot spanned archi|
00003510  76 65 73 2c 20 74 68 6f  75 67 68 20 61 20 70 72  |ves, though a pr|
00003520  6f 63 65 64 75 72 65 20  65 78 69 73 74 73 20 66  |ocedure exists f|
00003530  6f 72 20 63 6f 6e 76 65  72 74 69 6e 67 20 73 70  |or converting sp|
00003540  6c 69 74 0a 20 20 20 61  72 63 68 69 76 65 73 20  |lit.   archives |
00003550  6f 66 20 74 68 65 20 72  69 67 68 74 20 73 69 7a  |of the right siz|
00003560  65 20 74 6f 20 73 70 61  6e 6e 65 64 20 61 72 63  |e to spanned arc|
00003570  68 69 76 65 73 2e 20 54  68 65 20 72 65 76 65 72  |hives. The rever|
00003580  73 65 20 69 73 20 61 6c  73 6f 0a 20 20 20 74 72  |se is also.   tr|
00003590  75 65 2c 20 77 68 65 72  65 20 65 61 63 68 20 66  |ue, where each f|
000035a0  69 6c 65 20 6f 66 20 61  20 73 70 61 6e 6e 65 64  |ile of a spanned|
000035b0  20 61 72 63 68 69 76 65  20 63 61 6e 20 62 65 20  | archive can be |
000035c0  63 6f 70 69 65 64 20 69  6e 20 6f 72 64 65 72 20  |copied in order |
000035d0  74 6f 0a 20 20 20 66 69  6c 65 73 20 77 69 74 68  |to.   files with|
000035e0  20 74 68 65 20 61 62 6f  76 65 20 6e 61 6d 65 73  | the above names|
000035f0  20 74 6f 20 63 72 65 61  74 65 20 61 20 73 70 6c  | to create a spl|
00003600  69 74 20 61 72 63 68 69  76 65 2e 0a 0a 20 20 20  |it archive...   |
00003610  55 73 65 20 2d 73 20 74  6f 20 73 65 74 20 74 68  |Use -s to set th|
00003620  65 20 73 70 6c 69 74 20  73 69 7a 65 20 61 6e 64  |e split size and|
00003630  20 63 72 65 61 74 65 20  61 20 73 70 6c 69 74 20  | create a split |
00003640  61 72 63 68 69 76 65 2e  20 54 68 65 20 73 69 7a  |archive. The siz|
00003650  65 20 69 73 0a 20 20 20  67 69 76 65 6e 20 61 73  |e is.   given as|
00003660  20 61 20 6e 75 6d 62 65  72 20 66 6f 6c 6c 6f 77  | a number follow|
00003670  65 64 20 6f 70 74 69 6f  6e 61 6c 6c 79 20 62 79  |ed optionally by|
00003680  20 6f 6e 65 20 6f 66 20  6b 20 28 6b 42 29 2c 20  | one of k (kB), |
00003690  6d 20 28 4d 42 29 2c 20  67 0a 20 20 20 28 47 42  |m (MB), g.   (GB|
000036a0  29 2c 20 6f 72 20 74 20  28 54 42 29 20 28 74 68  |), or t (TB) (th|
000036b0  65 20 64 65 66 61 75 6c  74 20 69 73 20 6d 29 2e  |e default is m).|
000036c0  20 54 68 65 20 2d 73 70  20 6f 70 74 69 6f 6e 20  | The -sp option |
000036d0  63 61 6e 20 62 65 20 75  73 65 64 20 74 6f 0a 20  |can be used to. |
000036e0  20 20 70 61 75 73 65 20  7a 69 70 20 62 65 74 77  |  pause zip betw|
000036f0  65 65 6e 20 73 70 6c 69  74 73 20 74 6f 20 61 6c  |een splits to al|
00003700  6c 6f 77 20 63 68 61 6e  67 69 6e 67 20 72 65 6d  |low changing rem|
00003710  6f 76 61 62 6c 65 20 6d  65 64 69 61 2c 20 66 6f  |ovable media, fo|
00003720  72 0a 20 20 20 65 78 61  6d 70 6c 65 2c 20 62 75  |r.   example, bu|
00003730  74 20 72 65 61 64 20 74  68 65 20 64 65 73 63 72  |t read the descr|
00003740  69 70 74 69 6f 6e 73 20  61 6e 64 20 77 61 72 6e  |iptions and warn|
00003750  69 6e 67 73 20 66 6f 72  20 62 6f 74 68 20 2d 73  |ings for both -s|
00003760  20 61 6e 64 20 2d 73 70  0a 20 20 20 62 65 6c 6f  | and -sp.   belo|
00003770  77 2e 0a 0a 20 20 20 54  68 6f 75 67 68 20 7a 69  |w...   Though zi|
00003780  70 20 64 6f 65 73 20 6e  6f 74 20 75 70 64 61 74  |p does not updat|
00003790  65 20 73 70 6c 69 74 20  61 72 63 68 69 76 65 73  |e split archives|
000037a0  2c 20 7a 69 70 20 70 72  6f 76 69 64 65 73 20 74  |, zip provides t|
000037b0  68 65 20 6e 65 77 20 6f  70 74 69 6f 6e 0a 20 20  |he new option.  |
000037c0  20 2d 4f 20 28 2d 2d 6f  75 74 70 75 74 2d 66 69  | -O (--output-fi|
000037d0  6c 65 20 6f 72 20 2d 2d  6f 75 74 29 20 74 6f 20  |le or --out) to |
000037e0  61 6c 6c 6f 77 20 73 70  6c 69 74 20 61 72 63 68  |allow split arch|
000037f0  69 76 65 73 20 74 6f 20  62 65 20 75 70 64 61 74  |ives to be updat|
00003800  65 64 20 61 6e 64 0a 20  20 20 73 61 76 65 64 20  |ed and.   saved |
00003810  69 6e 20 61 20 6e 65 77  20 61 72 63 68 69 76 65  |in a new archive|
00003820  2e 20 46 6f 72 20 65 78  61 6d 70 6c 65 2c 0a 0a  |. For example,..|
00003830  20 20 20 7a 69 70 20 69  6e 61 72 63 68 69 76 65  |   zip inarchive|
00003840  2e 7a 69 70 20 66 6f 6f  2e 63 20 62 61 72 2e 63  |.zip foo.c bar.c|
00003850  20 2d 2d 6f 75 74 20 6f  75 74 61 72 63 68 69 76  | --out outarchiv|
00003860  65 2e 7a 69 70 0a 0a 20  20 20 72 65 61 64 73 20  |e.zip..   reads |
00003870  61 72 63 68 69 76 65 20  69 6e 61 72 63 68 69 76  |archive inarchiv|
00003880  65 2e 7a 69 70 2c 20 65  76 65 6e 20 69 66 20 73  |e.zip, even if s|
00003890  70 6c 69 74 2c 20 61 64  64 73 20 74 68 65 20 66  |plit, adds the f|
000038a0  69 6c 65 73 20 66 6f 6f  2e 63 20 61 6e 64 0a 20  |iles foo.c and. |
000038b0  20 20 62 61 72 2e 63 2c  20 61 6e 64 20 77 72 69  |  bar.c, and wri|
000038c0  74 65 73 20 74 68 65 20  72 65 73 75 6c 74 69 6e  |tes the resultin|
000038d0  67 20 61 72 63 68 69 76  65 20 74 6f 20 6f 75 74  |g archive to out|
000038e0  61 72 63 68 69 76 65 2e  7a 69 70 2e 20 49 66 0a  |archive.zip. If.|
000038f0  20 20 20 69 6e 61 72 63  68 69 76 65 2e 7a 69 70  |   inarchive.zip|
00003900  20 69 73 20 73 70 6c 69  74 20 74 68 65 6e 20 6f  | is split then o|
00003910  75 74 61 72 63 68 69 76  65 2e 7a 69 70 20 64 65  |utarchive.zip de|
00003920  66 61 75 6c 74 73 20 74  6f 20 74 68 65 20 73 61  |faults to the sa|
00003930  6d 65 20 73 70 6c 69 74  0a 20 20 20 73 69 7a 65  |me split.   size|
00003940  2e 20 42 65 20 61 77 61  72 65 20 74 68 61 74 20  |. Be aware that |
00003950  69 66 20 6f 75 74 61 72  63 68 69 76 65 2e 7a 69  |if outarchive.zi|
00003960  70 20 61 6e 64 20 61 6e  79 20 73 70 6c 69 74 20  |p and any split |
00003970  66 69 6c 65 73 20 74 68  61 74 20 61 72 65 0a 20  |files that are. |
00003980  20 20 63 72 65 61 74 65  64 20 77 69 74 68 20 69  |  created with i|
00003990  74 20 61 6c 72 65 61 64  79 20 65 78 69 73 74 2c  |t already exist,|
000039a0  20 74 68 65 73 65 20 61  72 65 20 61 6c 77 61 79  | these are alway|
000039b0  73 20 6f 76 65 72 77 72  69 74 74 65 6e 20 61 73  |s overwritten as|
000039c0  20 6e 65 65 64 65 64 0a  20 20 20 77 69 74 68 6f  | needed.   witho|
000039d0  75 74 20 77 61 72 6e 69  6e 67 2e 20 54 68 69 73  |ut warning. This|
000039e0  20 6d 61 79 20 62 65 20  63 68 61 6e 67 65 64 20  | may be changed |
000039f0  69 6e 20 74 68 65 20 66  75 74 75 72 65 2e 0a 0a  |in the future...|
00003a00  20 20 20 55 6e 69 63 6f  64 65 2e 20 54 68 6f 75  |   Unicode. Thou|
00003a10  67 68 20 74 68 65 20 7a  69 70 20 73 74 61 6e 64  |gh the zip stand|
00003a20  61 72 64 20 72 65 71 75  69 72 65 73 20 73 74 6f  |ard requires sto|
00003a30  72 69 6e 67 20 70 61 74  68 73 20 69 6e 20 61 6e  |ring paths in an|
00003a40  20 61 72 63 68 69 76 65  0a 20 20 20 75 73 69 6e  | archive.   usin|
00003a50  67 20 61 20 73 70 65 63  69 66 69 63 20 63 68 61  |g a specific cha|
00003a60  72 61 63 74 65 72 20 73  65 74 2c 20 69 6e 20 70  |racter set, in p|
00003a70  72 61 63 74 69 63 65 20  7a 69 70 73 20 68 61 76  |ractice zips hav|
00003a80  65 20 73 74 6f 72 65 64  20 70 61 74 68 73 20 69  |e stored paths i|
00003a90  6e 0a 20 20 20 61 72 63  68 69 76 65 73 20 69 6e  |n.   archives in|
00003aa0  20 77 68 61 74 65 76 65  72 20 74 68 65 20 6c 6f  | whatever the lo|
00003ab0  63 61 6c 20 63 68 61 72  61 63 74 65 72 20 73 65  |cal character se|
00003ac0  74 20 69 73 2e 20 54 68  69 73 20 63 72 65 61 74  |t is. This creat|
00003ad0  65 73 20 70 72 6f 62 6c  65 6d 73 0a 20 20 20 77  |es problems.   w|
00003ae0  68 65 6e 20 61 6e 20 61  72 63 68 69 76 65 20 69  |hen an archive i|
00003af0  73 20 63 72 65 61 74 65  64 20 6f 72 20 75 70 64  |s created or upd|
00003b00  61 74 65 64 20 6f 6e 20  61 20 73 79 73 74 65 6d  |ated on a system|
00003b10  20 75 73 69 6e 67 20 6f  6e 65 20 63 68 61 72 61  | using one chara|
00003b20  63 74 65 72 0a 20 20 20  73 65 74 20 61 6e 64 20  |cter.   set and |
00003b30  74 68 65 6e 20 65 78 74  72 61 63 74 65 64 20 6f  |then extracted o|
00003b40  6e 20 61 6e 6f 74 68 65  72 20 73 79 73 74 65 6d  |n another system|
00003b50  20 75 73 69 6e 67 20 61  20 64 69 66 66 65 72 65  | using a differe|
00003b60  6e 74 20 63 68 61 72 61  63 74 65 72 0a 20 20 20  |nt character.   |
00003b70  73 65 74 2e 20 57 68 65  6e 20 63 6f 6d 70 69 6c  |set. When compil|
00003b80  65 64 20 77 69 74 68 20  55 6e 69 63 6f 64 65 20  |ed with Unicode |
00003b90  73 75 70 70 6f 72 74 20  65 6e 61 62 6c 65 64 20  |support enabled |
00003ba0  6f 6e 20 70 6c 61 74 66  6f 72 6d 73 20 74 68 61  |on platforms tha|
00003bb0  74 0a 20 20 20 73 75 70  70 6f 72 74 20 77 69 64  |t.   support wid|
00003bc0  65 20 63 68 61 72 61 63  74 65 72 73 2c 20 7a 69  |e characters, zi|
00003bd0  70 20 6e 6f 77 20 73 74  6f 72 65 73 2c 20 69 6e  |p now stores, in|
00003be0  20 61 64 64 69 74 69 6f  6e 20 74 6f 20 74 68 65  | addition to the|
00003bf0  20 73 74 61 6e 64 61 72  64 0a 20 20 20 6c 6f 63  | standard.   loc|
00003c00  61 6c 20 70 61 74 68 20  66 6f 72 20 62 61 63 6b  |al path for back|
00003c10  77 61 72 64 20 63 6f 6d  70 61 74 69 62 69 6c 69  |ward compatibili|
00003c20  74 79 2c 20 74 68 65 20  55 54 46 2d 38 20 74 72  |ty, the UTF-8 tr|
00003c30  61 6e 73 6c 61 74 69 6f  6e 20 6f 66 20 74 68 65  |anslation of the|
00003c40  0a 20 20 20 70 61 74 68  2e 20 54 68 69 73 20 70  |.   path. This p|
00003c50  72 6f 76 69 64 65 73 20  61 20 63 6f 6d 6d 6f 6e  |rovides a common|
00003c60  20 75 6e 69 76 65 72 73  61 6c 20 63 68 61 72 61  | universal chara|
00003c70  63 74 65 72 20 73 65 74  20 66 6f 72 20 73 74 6f  |cter set for sto|
00003c80  72 69 6e 67 20 70 61 74  68 73 0a 20 20 20 74 68  |ring paths.   th|
00003c90  61 74 20 61 6c 6c 6f 77  73 20 74 68 65 73 65 20  |at allows these |
00003ca0  70 61 74 68 73 20 74 6f  20 62 65 20 66 75 6c 6c  |paths to be full|
00003cb0  79 20 65 78 74 72 61 63  74 65 64 20 6f 6e 20 6f  |y extracted on o|
00003cc0  74 68 65 72 20 73 79 73  74 65 6d 73 20 74 68 61  |ther systems tha|
00003cd0  74 0a 20 20 20 73 75 70  70 6f 72 74 20 55 6e 69  |t.   support Uni|
00003ce0  63 6f 64 65 20 61 6e 64  20 74 6f 20 6d 61 74 63  |code and to matc|
00003cf0  68 20 61 73 20 63 6c 6f  73 65 20 61 73 20 70 6f  |h as close as po|
00003d00  73 73 69 62 6c 65 20 6f  6e 20 73 79 73 74 65 6d  |ssible on system|
00003d10  73 20 74 68 61 74 0a 20  20 20 64 6f 6e 27 74 2e  |s that.   don't.|
00003d20  0a 0a 20 20 20 4f 6e 20  57 69 6e 33 32 20 73 79  |..   On Win32 sy|
00003d30  73 74 65 6d 73 20 77 68  65 72 65 20 70 61 74 68  |stems where path|
00003d40  73 20 61 72 65 20 69 6e  74 65 72 6e 61 6c 6c 79  |s are internally|
00003d50  20 73 74 6f 72 65 64 20  61 73 20 55 6e 69 63 6f  | stored as Unico|
00003d60  64 65 20 62 75 74 0a 20  20 20 72 65 70 72 65 73  |de but.   repres|
00003d70  65 6e 74 65 64 20 69 6e  20 74 68 65 20 6c 6f 63  |ented in the loc|
00003d80  61 6c 20 63 68 61 72 61  63 74 65 72 20 73 65 74  |al character set|
00003d90  2c 20 69 74 27 73 20 70  6f 73 73 69 62 6c 65 20  |, it's possible |
00003da0  74 68 61 74 20 73 6f 6d  65 20 70 61 74 68 73 0a  |that some paths.|
00003db0  20 20 20 77 69 6c 6c 20  62 65 20 73 6b 69 70 70  |   will be skipp|
00003dc0  65 64 20 64 75 72 69 6e  67 20 61 20 6c 6f 63 61  |ed during a loca|
00003dd0  6c 20 63 68 61 72 61 63  74 65 72 20 73 65 74 20  |l character set |
00003de0  64 69 72 65 63 74 6f 72  79 20 73 63 61 6e 2e 20  |directory scan. |
00003df0  7a 69 70 20 77 69 74 68  0a 20 20 20 55 6e 69 63  |zip with.   Unic|
00003e00  6f 64 65 20 73 75 70 70  6f 72 74 20 6e 6f 77 20  |ode support now |
00003e10  63 61 6e 20 72 65 61 64  20 61 6e 64 20 73 74 6f  |can read and sto|
00003e20  72 65 20 74 68 65 73 65  20 70 61 74 68 73 2e 20  |re these paths. |
00003e30  4e 6f 74 65 20 74 68 61  74 20 57 69 6e 20 39 78  |Note that Win 9x|
00003e40  0a 20 20 20 73 79 73 74  65 6d 73 20 61 6e 64 20  |.   systems and |
00003e50  46 41 54 20 66 69 6c 65  20 73 79 73 74 65 6d 73  |FAT file systems|
00003e60  20 64 6f 6e 27 74 20 66  75 6c 6c 79 20 73 75 70  | don't fully sup|
00003e70  70 6f 72 74 20 55 6e 69  63 6f 64 65 2e 0a 0a 20  |port Unicode... |
00003e80  20 20 42 65 20 61 77 61  72 65 20 74 68 61 74 20  |  Be aware that |
00003e90  63 6f 6e 73 6f 6c 65 20  77 69 6e 64 6f 77 73 20  |console windows |
00003ea0  6f 6e 20 57 69 6e 33 32  20 61 6e 64 20 55 6e 69  |on Win32 and Uni|
00003eb0  78 2c 20 66 6f 72 20 65  78 61 6d 70 6c 65 2c 0a  |x, for example,.|
00003ec0  20 20 20 73 6f 6d 65 74  69 6d 65 73 20 64 6f 6e  |   sometimes don|
00003ed0  27 74 20 61 63 63 75 72  61 74 65 6c 79 20 73 68  |'t accurately sh|
00003ee0  6f 77 20 61 6c 6c 20 63  68 61 72 61 63 74 65 72  |ow all character|
00003ef0  73 20 64 75 65 20 74 6f  20 68 6f 77 20 65 61 63  |s due to how eac|
00003f00  68 0a 20 20 20 6f 70 65  72 61 74 69 6e 67 20 73  |h.   operating s|
00003f10  79 73 74 65 6d 20 73 77  69 74 63 68 65 73 20 69  |ystem switches i|
00003f20  6e 20 63 68 61 72 61 63  74 65 72 20 73 65 74 73  |n character sets|
00003f30  20 66 6f 72 20 64 69 73  70 6c 61 79 2e 20 48 6f  | for display. Ho|
00003f40  77 65 76 65 72 2c 0a 20  20 20 64 69 72 65 63 74  |wever,.   direct|
00003f50  6f 72 79 20 6e 61 76 69  67 61 74 69 6f 6e 20 74  |ory navigation t|
00003f60  6f 6f 6c 73 20 73 68 6f  75 6c 64 20 73 68 6f 77  |ools should show|
00003f70  20 74 68 65 20 63 6f 72  72 65 63 74 20 70 61 74  | the correct pat|
00003f80  68 73 20 69 66 20 74 68  65 20 6e 65 65 64 65 64  |hs if the needed|
00003f90  0a 20 20 20 66 6f 6e 74  73 20 61 72 65 20 6c 6f  |.   fonts are lo|
00003fa0  61 64 65 64 2e 0a 0a 20  20 20 43 6f 6d 6d 61 6e  |aded...   Comman|
00003fb0  64 20 6c 69 6e 65 20 66  6f 72 6d 61 74 2e 20 54  |d line format. T|
00003fc0  68 69 73 20 76 65 72 73  69 6f 6e 20 6f 66 20 7a  |his version of z|
00003fd0  69 70 20 68 61 73 20 75  70 64 61 74 65 64 20 63  |ip has updated c|
00003fe0  6f 6d 6d 61 6e 64 20 6c  69 6e 65 0a 20 20 20 70  |ommand line.   p|
00003ff0  72 6f 63 65 73 73 69 6e  67 20 61 6e 64 20 73 75  |rocessing and su|
00004000  70 70 6f 72 74 20 66 6f  72 20 6c 6f 6e 67 20 6f  |pport for long o|
00004010  70 74 69 6f 6e 73 2e 0a  0a 20 20 20 53 68 6f 72  |ptions...   Shor|
00004020  74 20 6f 70 74 69 6f 6e  73 20 74 61 6b 65 20 74  |t options take t|
00004030  68 65 20 66 6f 72 6d 0a  0a 20 20 20 2d 73 5b 2d  |he form..   -s[-|
00004040  5d 5b 73 5b 2d 5d 2e 2e  2e 5d 5b 76 61 6c 75 65  |][s[-]...][value|
00004050  5d 5b 3d 76 61 6c 75 65  5d 5b 20 76 61 6c 75 65  |][=value][ value|
00004060  5d 0a 0a 20 20 20 77 68  65 72 65 20 73 20 69 73  |]..   where s is|
00004070  20 61 20 6f 6e 65 20 6f  72 20 74 77 6f 20 63 68  | a one or two ch|
00004080  61 72 61 63 74 65 72 20  73 68 6f 72 74 20 6f 70  |aracter short op|
00004090  74 69 6f 6e 2e 20 41 20  73 68 6f 72 74 20 6f 70  |tion. A short op|
000040a0  74 69 6f 6e 20 74 68 61  74 0a 20 20 20 74 61 6b  |tion that.   tak|
000040b0  65 73 20 61 20 76 61 6c  75 65 20 69 73 20 6c 61  |es a value is la|
000040c0  73 74 20 69 6e 20 61 6e  20 61 72 67 75 6d 65 6e  |st in an argumen|
000040d0  74 20 61 6e 64 20 61 6e  79 74 68 69 6e 67 20 61  |t and anything a|
000040e0  66 74 65 72 20 69 74 20  69 73 20 74 61 6b 65 6e  |fter it is taken|
000040f0  20 61 73 0a 20 20 20 74  68 65 20 76 61 6c 75 65  | as.   the value|
00004100  2e 20 49 66 20 74 68 65  20 6f 70 74 69 6f 6e 20  |. If the option |
00004110  63 61 6e 20 62 65 20 6e  65 67 61 74 65 64 20 61  |can be negated a|
00004120  6e 64 20 22 2d 22 20 69  6d 6d 65 64 69 61 74 65  |nd "-" immediate|
00004130  6c 79 20 66 6f 6c 6c 6f  77 73 0a 20 20 20 74 68  |ly follows.   th|
00004140  65 20 6f 70 74 69 6f 6e  2c 20 74 68 65 20 6f 70  |e option, the op|
00004150  74 69 6f 6e 20 69 73 20  6e 65 67 61 74 65 64 2e  |tion is negated.|
00004160  20 53 68 6f 72 74 20 6f  70 74 69 6f 6e 73 20 63  | Short options c|
00004170  61 6e 20 61 6c 73 6f 20  62 65 20 67 69 76 65 6e  |an also be given|
00004180  20 61 73 0a 20 20 20 73  65 70 61 72 61 74 65 20  | as.   separate |
00004190  61 72 67 75 6d 65 6e 74  73 0a 0a 20 20 20 2d 73  |arguments..   -s|
000041a0  5b 2d 5d 5b 76 61 6c 75  65 5d 5b 3d 76 61 6c 75  |[-][value][=valu|
000041b0  65 5d 5b 20 76 61 6c 75  65 5d 20 2d 73 5b 2d 5d  |e][ value] -s[-]|
000041c0  5b 76 61 6c 75 65 5d 5b  3d 76 61 6c 75 65 5d 5b  |[value][=value][|
000041d0  20 76 61 6c 75 65 5d 20  2e 2e 2e 0a 0a 20 20 20  | value] .....   |
000041e0  53 68 6f 72 74 20 6f 70  74 69 6f 6e 73 20 69 6e  |Short options in|
000041f0  20 67 65 6e 65 72 61 6c  20 74 61 6b 65 20 76 61  | general take va|
00004200  6c 75 65 73 20 65 69 74  68 65 72 20 61 73 20 70  |lues either as p|
00004210  61 72 74 20 6f 66 20 74  68 65 20 73 61 6d 65 0a  |art of the same.|
00004220  20 20 20 61 72 67 75 6d  65 6e 74 20 6f 72 20 61  |   argument or a|
00004230  73 20 74 68 65 20 66 6f  6c 6c 6f 77 69 6e 67 20  |s the following |
00004240  61 72 67 75 6d 65 6e 74  2e 20 41 6e 20 6f 70 74  |argument. An opt|
00004250  69 6f 6e 61 6c 20 3d 20  69 73 20 61 6c 73 6f 0a  |ional = is also.|
00004260  20 20 20 73 75 70 70 6f  72 74 65 64 2e 20 53 6f  |   supported. So|
00004270  0a 0a 20 20 20 2d 74 74  6d 6d 64 64 79 79 79 79  |..   -ttmmddyyyy|
00004280  0a 0a 20 20 20 61 6e 64  0a 0a 20 20 20 2d 74 74  |..   and..   -tt|
00004290  3d 6d 6d 64 64 79 79 79  79 0a 0a 20 20 20 61 6e  |=mmddyyyy..   an|
000042a0  64 0a 0a 20 20 20 2d 74  74 20 6d 6d 64 64 79 79  |d..   -tt mmddyy|
000042b0  79 79 0a 0a 20 20 20 61  6c 6c 20 77 6f 72 6b 2e  |yy..   all work.|
000042c0  20 54 68 65 20 2d 78 20  61 6e 64 20 2d 69 20 6f  | The -x and -i o|
000042d0  70 74 69 6f 6e 73 20 61  63 63 65 70 74 20 6c 69  |ptions accept li|
000042e0  73 74 73 20 6f 66 20 76  61 6c 75 65 73 20 61 6e  |sts of values an|
000042f0  64 20 75 73 65 20 61 0a  20 20 20 73 6c 69 67 68  |d use a.   sligh|
00004300  74 6c 79 20 64 69 66 66  65 72 65 6e 74 20 66 6f  |tly different fo|
00004310  72 6d 61 74 20 64 65 73  63 72 69 62 65 64 20 62  |rmat described b|
00004320  65 6c 6f 77 2e 20 53 65  65 20 74 68 65 20 2d 78  |elow. See the -x|
00004330  20 61 6e 64 20 2d 69 20  6f 70 74 69 6f 6e 73 2e  | and -i options.|
00004340  0a 0a 20 20 20 4c 6f 6e  67 20 6f 70 74 69 6f 6e  |..   Long option|
00004350  73 20 74 61 6b 65 20 74  68 65 20 66 6f 72 6d 0a  |s take the form.|
00004360  0a 20 20 20 2d 2d 6c 6f  6e 67 6f 70 74 69 6f 6e  |.   --longoption|
00004370  5b 2d 5d 5b 3d 76 61 6c  75 65 5d 5b 20 76 61 6c  |[-][=value][ val|
00004380  75 65 5d 0a 0a 20 20 20  77 68 65 72 65 20 74 68  |ue]..   where th|
00004390  65 20 6f 70 74 69 6f 6e  20 73 74 61 72 74 73 20  |e option starts |
000043a0  77 69 74 68 20 2d 2d 2c  20 68 61 73 20 61 20 6d  |with --, has a m|
000043b0  75 6c 74 69 63 68 61 72  61 63 74 65 72 20 6e 61  |ulticharacter na|
000043c0  6d 65 2c 20 63 61 6e 0a  20 20 20 69 6e 63 6c 75  |me, can.   inclu|
000043d0  64 65 20 61 20 74 72 61  69 6c 69 6e 67 20 64 61  |de a trailing da|
000043e0  73 68 20 74 6f 20 6e 65  67 61 74 65 20 74 68 65  |sh to negate the|
000043f0  20 6f 70 74 69 6f 6e 20  28 69 66 20 74 68 65 20  | option (if the |
00004400  6f 70 74 69 6f 6e 20 73  75 70 70 6f 72 74 73 0a  |option supports.|
00004410  20 20 20 69 74 29 2c 20  61 6e 64 20 63 61 6e 20  |   it), and can |
00004420  68 61 76 65 20 61 20 76  61 6c 75 65 20 28 6f 70  |have a value (op|
00004430  74 69 6f 6e 20 61 72 67  75 6d 65 6e 74 29 20 73  |tion argument) s|
00004440  70 65 63 69 66 69 65 64  20 62 79 20 70 72 65 63  |pecified by prec|
00004450  65 65 64 69 6e 67 20 69  74 0a 20 20 20 77 69 74  |eeding it.   wit|
00004460  68 20 3d 20 28 6e 6f 20  73 70 61 63 65 73 29 2e  |h = (no spaces).|
00004470  20 56 61 6c 75 65 73 20  63 61 6e 20 61 6c 73 6f  | Values can also|
00004480  20 66 6f 6c 6c 6f 77 20  74 68 65 20 61 72 67 75  | follow the argu|
00004490  6d 65 6e 74 2e 20 53 6f  0a 0a 20 20 20 2d 2d 62  |ment. So..   --b|
000044a0  65 66 6f 72 65 2d 64 61  74 65 3d 6d 6d 64 64 79  |efore-date=mmddy|
000044b0  79 79 79 0a 0a 20 20 20  61 6e 64 0a 0a 20 20 20  |yyy..   and..   |
000044c0  2d 2d 62 65 66 6f 72 65  2d 64 61 74 65 20 6d 6d  |--before-date mm|
000044d0  64 64 79 79 79 79 0a 0a  20 20 20 62 6f 74 68 20  |ddyyyy..   both |
000044e0  77 6f 72 6b 2e 0a 0a 20  20 20 4c 6f 6e 67 20 6f  |work...   Long o|
000044f0  70 74 69 6f 6e 20 6e 61  6d 65 73 20 63 61 6e 20  |ption names can |
00004500  62 65 20 73 68 6f 72 74  65 6e 65 64 20 74 6f 20  |be shortened to |
00004510  74 68 65 20 73 68 6f 72  74 65 73 74 20 75 6e 69  |the shortest uni|
00004520  71 75 65 0a 20 20 20 61  62 62 72 65 76 69 61 74  |que.   abbreviat|
00004530  69 6f 6e 2e 20 53 65 65  20 74 68 65 20 6f 70 74  |ion. See the opt|
00004540  69 6f 6e 20 64 65 73 63  72 69 70 74 69 6f 6e 73  |ion descriptions|
00004550  20 62 65 6c 6f 77 20 66  6f 72 20 77 68 69 63 68  | below for which|
00004560  20 73 75 70 70 6f 72 74  20 6c 6f 6e 67 0a 20 20  | support long.  |
00004570  20 6f 70 74 69 6f 6e 73  2e 20 54 6f 20 61 76 6f  | options. To avo|
00004580  69 64 20 63 6f 6e 66 75  73 69 6f 6e 2c 20 61 76  |id confusion, av|
00004590  6f 69 64 20 61 62 62 72  65 76 69 61 74 69 6e 67  |oid abbreviating|
000045a0  20 61 20 6e 65 67 61 74  61 62 6c 65 20 6f 70 74  | a negatable opt|
000045b0  69 6f 6e 0a 20 20 20 77  69 74 68 20 61 6e 20 65  |ion.   with an e|
000045c0  6d 62 65 64 64 65 64 20  64 61 73 68 20 28 22 2d  |mbedded dash ("-|
000045d0  22 29 20 61 74 20 74 68  65 20 64 61 73 68 20 69  |") at the dash i|
000045e0  66 20 79 6f 75 20 70 6c  61 6e 20 74 6f 20 6e 65  |f you plan to ne|
000045f0  67 61 74 65 20 69 74 20  28 74 68 65 0a 20 20 20  |gate it (the.   |
00004600  70 61 72 73 65 72 20 77  6f 75 6c 64 20 63 6f 6e  |parser would con|
00004610  73 69 64 65 72 20 61 20  74 72 61 69 6c 69 6e 67  |sider a trailing|
00004620  20 64 61 73 68 2c 20 73  75 63 68 20 61 73 20 66  | dash, such as f|
00004630  6f 72 20 74 68 65 20 6f  70 74 69 6f 6e 0a 20 20  |or the option.  |
00004640  20 2d 2d 73 6f 6d 65 2d  6f 70 74 69 6f 6e 20 75  | --some-option u|
00004650  73 69 6e 67 20 2d 2d 73  6f 6d 65 2d 20 61 73 20  |sing --some- as |
00004660  74 68 65 20 6f 70 74 69  6f 6e 2c 20 61 73 20 70  |the option, as p|
00004670  61 72 74 20 6f 66 20 74  68 65 20 6e 61 6d 65 20  |art of the name |
00004680  72 61 74 68 65 72 0a 20  20 20 74 68 61 6e 20 61  |rather.   than a|
00004690  20 6e 65 67 61 74 69 6e  67 20 64 61 73 68 29 2e  | negating dash).|
000046a0  20 54 68 69 73 20 6d 61  79 20 62 65 20 63 68 61  | This may be cha|
000046b0  6e 67 65 64 20 74 6f 20  66 6f 72 63 65 20 74 68  |nged to force th|
000046c0  65 20 6c 61 73 74 20 64  61 73 68 20 69 6e 0a 20  |e last dash in. |
000046d0  20 20 2d 2d 73 6f 6d 65  2d 20 74 6f 20 62 65 20  |  --some- to be |
000046e0  6e 65 67 61 74 69 6e 67  20 69 6e 20 74 68 65 20  |negating in the |
000046f0  66 75 74 75 72 65 2e 0a  0a 4f 70 74 69 6f 6e 73  |future...Options|
00004700  0a 0a 20 20 20 2d 61 0a  0a 20 20 20 2d 2d 61 73  |..   -a..   --as|
00004710  63 69 69 0a 20 20 20 20  20 20 20 20 20 20 5b 53  |cii.          [S|
00004720  79 73 74 65 6d 73 20 75  73 69 6e 67 20 45 42 43  |ystems using EBC|
00004730  44 49 43 5d 20 54 72 61  6e 73 6c 61 74 65 20 66  |DIC] Translate f|
00004740  69 6c 65 20 74 6f 20 41  53 43 49 49 20 66 6f 72  |ile to ASCII for|
00004750  6d 61 74 2e 0a 0a 20 20  20 2d 41 0a 0a 20 20 20  |mat...   -A..   |
00004760  2d 2d 61 64 6a 75 73 74  2d 73 66 78 0a 20 20 20  |--adjust-sfx.   |
00004770  20 20 20 20 20 20 20 41  64 6a 75 73 74 20 73 65  |       Adjust se|
00004780  6c 66 2d 65 78 74 72 61  63 74 69 6e 67 20 65 78  |lf-extracting ex|
00004790  65 63 75 74 61 62 6c 65  20 61 72 63 68 69 76 65  |ecutable archive|
000047a0  2e 20 41 20 73 65 6c 66  2d 65 78 74 72 61 63 74  |. A self-extract|
000047b0  69 6e 67 0a 20 20 20 20  20 20 20 20 20 20 65 78  |ing.          ex|
000047c0  65 63 75 74 61 62 6c 65  20 61 72 63 68 69 76 65  |ecutable archive|
000047d0  20 69 73 20 63 72 65 61  74 65 64 20 62 79 20 70  | is created by p|
000047e0  72 65 70 65 6e 64 69 6e  67 20 74 68 65 20 53 46  |repending the SF|
000047f0  58 20 73 74 75 62 20 74  6f 20 61 6e 0a 20 20 20  |X stub to an.   |
00004800  20 20 20 20 20 20 20 65  78 69 73 74 69 6e 67 20  |       existing |
00004810  61 72 63 68 69 76 65 2e  20 54 68 65 20 2d 41 20  |archive. The -A |
00004820  6f 70 74 69 6f 6e 20 74  65 6c 6c 73 20 7a 69 70  |option tells zip|
00004830  20 74 6f 20 61 64 6a 75  73 74 20 74 68 65 20 65  | to adjust the e|
00004840  6e 74 72 79 0a 20 20 20  20 20 20 20 20 20 20 6f  |ntry.          o|
00004850  66 66 73 65 74 73 20 73  74 6f 72 65 64 20 69 6e  |ffsets stored in|
00004860  20 74 68 65 20 61 72 63  68 69 76 65 20 74 6f 20  | the archive to |
00004870  74 61 6b 65 20 69 6e 74  6f 20 61 63 63 6f 75 6e  |take into accoun|
00004880  74 20 74 68 69 73 0a 20  20 20 20 20 20 20 20 20  |t this.         |
00004890  20 22 70 72 65 61 6d 62  6c 65 22 20 64 61 74 61  | "preamble" data|
000048a0  2e 0a 0a 20 20 20 4e 6f  74 65 3a 20 73 65 6c 66  |...   Note: self|
000048b0  2d 65 78 74 72 61 63 74  69 6e 67 20 61 72 63 68  |-extracting arch|
000048c0  69 76 65 73 20 66 6f 72  20 74 68 65 20 41 6d 69  |ives for the Ami|
000048d0  67 61 20 61 72 65 20 61  20 73 70 65 63 69 61 6c  |ga are a special|
000048e0  20 63 61 73 65 2e 20 41  74 0a 20 20 20 70 72 65  | case. At.   pre|
000048f0  73 65 6e 74 2c 20 6f 6e  6c 79 20 74 68 65 20 41  |sent, only the A|
00004900  6d 69 67 61 20 70 6f 72  74 20 6f 66 20 7a 69 70  |miga port of zip|
00004910  20 69 73 20 63 61 70 61  62 6c 65 20 6f 66 20 61  | is capable of a|
00004920  64 6a 75 73 74 69 6e 67  20 6f 72 0a 20 20 20 75  |djusting or.   u|
00004930  70 64 61 74 69 6e 67 20  74 68 65 73 65 20 77 69  |pdating these wi|
00004940  74 68 6f 75 74 20 63 6f  72 72 75 70 74 69 6e 67  |thout corrupting|
00004950  20 74 68 65 6d 2e 20 2d  4a 20 63 61 6e 20 62 65  | them. -J can be|
00004960  20 75 73 65 64 20 74 6f  20 72 65 6d 6f 76 65 20  | used to remove |
00004970  74 68 65 0a 20 20 20 53  46 58 20 73 74 75 62 20  |the.   SFX stub |
00004980  69 66 20 6f 74 68 65 72  20 75 70 64 61 74 65 73  |if other updates|
00004990  20 6e 65 65 64 20 74 6f  20 62 65 20 6d 61 64 65  | need to be made|
000049a0  2e 0a 0a 20 20 20 2d 41  43 0a 0a 20 20 20 2d 2d  |...   -AC..   --|
000049b0  61 72 63 68 69 76 65 2d  63 6c 65 61 72 0a 20 20  |archive-clear.  |
000049c0  20 20 20 20 20 20 20 20  5b 57 49 4e 33 32 5d 20  |        [WIN32] |
000049d0  4f 6e 63 65 20 61 72 63  68 69 76 65 20 69 73 20  |Once archive is |
000049e0  63 72 65 61 74 65 64 20  28 61 6e 64 20 74 65 73  |created (and tes|
000049f0  74 65 64 20 69 66 20 2d  54 20 69 73 20 75 73 65  |ted if -T is use|
00004a00  64 2c 0a 20 20 20 20 20  20 20 20 20 20 77 68 69  |d,.          whi|
00004a10  63 68 20 69 73 20 72 65  63 6f 6d 6d 65 6e 64 65  |ch is recommende|
00004a20  64 29 2c 20 63 6c 65 61  72 20 74 68 65 20 61 72  |d), clear the ar|
00004a30  63 68 69 76 65 20 62 69  74 73 20 6f 66 20 66 69  |chive bits of fi|
00004a40  6c 65 73 0a 20 20 20 20  20 20 20 20 20 20 70 72  |les.          pr|
00004a50  6f 63 65 73 73 65 64 2e  20 57 41 52 4e 49 4e 47  |ocessed. WARNING|
00004a60  3a 20 4f 6e 63 65 20 74  68 65 20 62 69 74 73 20  |: Once the bits |
00004a70  61 72 65 20 63 6c 65 61  72 65 64 20 74 68 65 79  |are cleared they|
00004a80  20 61 72 65 20 63 6c 65  61 72 65 64 2e 0a 20 20  | are cleared..  |
00004a90  20 20 20 20 20 20 20 20  59 6f 75 20 6d 61 79 20  |        You may |
00004aa0  77 61 6e 74 20 74 6f 20  75 73 65 20 74 68 65 20  |want to use the |
00004ab0  2d 73 66 20 73 68 6f 77  20 66 69 6c 65 73 20 6f  |-sf show files o|
00004ac0  70 74 69 6f 6e 20 74 6f  20 73 74 6f 72 65 20 74  |ption to store t|
00004ad0  68 65 20 6c 69 73 74 0a  20 20 20 20 20 20 20 20  |he list.        |
00004ae0  20 20 6f 66 20 66 69 6c  65 73 20 70 72 6f 63 65  |  of files proce|
00004af0  73 73 65 64 20 69 6e 20  63 61 73 65 20 74 68 65  |ssed in case the|
00004b00  20 61 72 63 68 69 76 65  20 6f 70 65 72 61 74 69  | archive operati|
00004b10  6f 6e 20 6d 75 73 74 20  62 65 0a 20 20 20 20 20  |on must be.     |
00004b20  20 20 20 20 20 72 65 70  65 61 74 65 64 2e 20 41  |     repeated. A|
00004b30  6c 73 6f 20 63 6f 6e 73  69 64 65 72 20 75 73 69  |lso consider usi|
00004b40  6e 67 20 74 68 65 20 2d  4d 4d 20 6d 75 73 74 20  |ng the -MM must |
00004b50  6d 61 74 63 68 20 6f 70  74 69 6f 6e 2e 20 42 65  |match option. Be|
00004b60  0a 20 20 20 20 20 20 20  20 20 20 73 75 72 65 20  |.          sure |
00004b70  74 6f 20 63 68 65 63 6b  20 6f 75 74 20 2d 44 46  |to check out -DF|
00004b80  20 61 73 20 61 20 70 6f  73 73 69 62 6c 79 20 62  | as a possibly b|
00004b90  65 74 74 65 72 20 77 61  79 20 74 6f 20 64 6f 0a  |etter way to do.|
00004ba0  20 20 20 20 20 20 20 20  20 20 69 6e 63 72 65 6d  |          increm|
00004bb0  65 6e 74 61 6c 20 62 61  63 6b 75 70 73 2e 0a 0a  |ental backups...|
00004bc0  20 20 20 2d 41 53 0a 0a  20 20 20 2d 2d 61 72 63  |   -AS..   --arc|
00004bd0  68 69 76 65 2d 73 65 74  0a 20 20 20 20 20 20 20  |hive-set.       |
00004be0  20 20 20 5b 57 49 4e 33  32 5d 20 4f 6e 6c 79 20  |   [WIN32] Only |
00004bf0  69 6e 63 6c 75 64 65 20  66 69 6c 65 73 20 74 68  |include files th|
00004c00  61 74 20 68 61 76 65 20  74 68 65 20 61 72 63 68  |at have the arch|
00004c10  69 76 65 20 62 69 74 20  73 65 74 2e 0a 20 20 20  |ive bit set..   |
00004c20  20 20 20 20 20 20 20 44  69 72 65 63 74 6f 72 69  |       Directori|
00004c30  65 73 20 61 72 65 20 6e  6f 74 20 73 74 6f 72 65  |es are not store|
00004c40  64 20 77 68 65 6e 20 2d  41 53 20 69 73 20 75 73  |d when -AS is us|
00004c50  65 64 2c 20 74 68 6f 75  67 68 20 62 79 20 64 65  |ed, though by de|
00004c60  66 61 75 6c 74 0a 20 20  20 20 20 20 20 20 20 20  |fault.          |
00004c70  74 68 65 20 70 61 74 68  73 20 6f 66 20 65 6e 74  |the paths of ent|
00004c80  72 69 65 73 2c 20 69 6e  63 6c 75 64 69 6e 67 20  |ries, including |
00004c90  64 69 72 65 63 74 6f 72  69 65 73 2c 20 61 72 65  |directories, are|
00004ca0  20 73 74 6f 72 65 64 20  61 73 0a 20 20 20 20 20  | stored as.     |
00004cb0  20 20 20 20 20 75 73 75  61 6c 20 61 6e 64 20 63  |     usual and c|
00004cc0  61 6e 20 62 65 20 75 73  65 64 20 62 79 20 6d 6f  |an be used by mo|
00004cd0  73 74 20 75 6e 7a 69 70  73 20 74 6f 20 72 65 63  |st unzips to rec|
00004ce0  72 65 61 74 65 20 64 69  72 65 63 74 6f 72 69 65  |reate directorie|
00004cf0  73 2e 0a 0a 20 20 20 20  20 20 20 20 20 20 54 68  |s...          Th|
00004d00  65 20 61 72 63 68 69 76  65 20 62 69 74 20 69 73  |e archive bit is|
00004d10  20 73 65 74 20 62 79 20  74 68 65 20 6f 70 65 72  | set by the oper|
00004d20  61 74 69 6e 67 20 73 79  73 74 65 6d 20 77 68 65  |ating system whe|
00004d30  6e 20 61 20 66 69 6c 65  20 69 73 0a 20 20 20 20  |n a file is.    |
00004d40  20 20 20 20 20 20 6d 6f  64 69 66 69 65 64 20 61  |      modified a|
00004d50  6e 64 2c 20 69 66 20 75  73 65 64 20 77 69 74 68  |nd, if used with|
00004d60  20 2d 41 43 2c 20 2d 41  53 20 63 61 6e 20 70 72  | -AC, -AS can pr|
00004d70  6f 76 69 64 65 20 61 6e  20 69 6e 63 72 65 6d 65  |ovide an increme|
00004d80  6e 74 61 6c 0a 20 20 20  20 20 20 20 20 20 20 62  |ntal.          b|
00004d90  61 63 6b 75 70 20 63 61  70 61 62 69 6c 69 74 79  |ackup capability|
00004da0  2e 20 48 6f 77 65 76 65  72 2c 20 6f 74 68 65 72  |. However, other|
00004db0  20 61 70 70 6c 69 63 61  74 69 6f 6e 73 20 63 61  | applications ca|
00004dc0  6e 20 6d 6f 64 69 66 79  20 74 68 65 0a 20 20 20  |n modify the.   |
00004dd0  20 20 20 20 20 20 20 61  72 63 68 69 76 65 20 62  |       archive b|
00004de0  69 74 20 61 6e 64 20 69  74 20 6d 61 79 20 6e 6f  |it and it may no|
00004df0  74 20 62 65 20 61 20 72  65 6c 69 61 62 6c 65 20  |t be a reliable |
00004e00  69 6e 64 69 63 61 74 6f  72 20 6f 66 20 77 68 69  |indicator of whi|
00004e10  63 68 0a 20 20 20 20 20  20 20 20 20 20 66 69 6c  |ch.          fil|
00004e20  65 73 20 68 61 76 65 20  63 68 61 6e 67 65 64 20  |es have changed |
00004e30  73 69 6e 63 65 20 74 68  65 20 6c 61 73 74 20 61  |since the last a|
00004e40  72 63 68 69 76 65 20 6f  70 65 72 61 74 69 6f 6e  |rchive operation|
00004e50  2e 0a 20 20 20 20 20 20  20 20 20 20 41 6c 74 65  |..          Alte|
00004e60  72 6e 61 74 69 76 65 20  77 61 79 73 20 74 6f 20  |rnative ways to |
00004e70  63 72 65 61 74 65 20 69  6e 63 72 65 6d 65 6e 74  |create increment|
00004e80  61 6c 20 62 61 63 6b 75  70 73 20 61 72 65 20 75  |al backups are u|
00004e90  73 69 6e 67 20 2d 74 20  74 6f 0a 20 20 20 20 20  |sing -t to.     |
00004ea0  20 20 20 20 20 75 73 65  20 66 69 6c 65 20 64 61  |     use file da|
00004eb0  74 65 73 2c 20 74 68 6f  75 67 68 20 74 68 69 73  |tes, though this|
00004ec0  20 77 6f 6e 27 74 20 63  61 74 63 68 20 6f 6c 64  | won't catch old|
00004ed0  20 66 69 6c 65 73 20 63  6f 70 69 65 64 20 74 6f  | files copied to|
00004ee0  0a 20 20 20 20 20 20 20  20 20 20 64 69 72 65 63  |.          direc|
00004ef0  74 6f 72 69 65 73 20 62  65 69 6e 67 20 61 72 63  |tories being arc|
00004f00  68 69 76 65 64 2c 20 61  6e 64 20 2d 44 46 20 74  |hived, and -DF t|
00004f10  6f 20 63 72 65 61 74 65  20 61 20 64 69 66 66 65  |o create a diffe|
00004f20  72 65 6e 74 69 61 6c 0a  20 20 20 20 20 20 20 20  |rential.        |
00004f30  20 20 61 72 63 68 69 76  65 2e 0a 0a 20 20 20 2d  |  archive...   -|
00004f40  42 0a 0a 20 20 20 2d 2d  62 69 6e 61 72 79 0a 20  |B..   --binary. |
00004f50  20 20 20 20 20 20 20 20  20 5b 56 4d 2f 43 4d 53  |         [VM/CMS|
00004f60  20 61 6e 64 20 4d 56 53  5d 20 66 6f 72 63 65 20  | and MVS] force |
00004f70  66 69 6c 65 20 74 6f 20  62 65 20 72 65 61 64 20  |file to be read |
00004f80  62 69 6e 61 72 79 20 28  64 65 66 61 75 6c 74 20  |binary (default |
00004f90  69 73 0a 20 20 20 20 20  20 20 20 20 20 74 65 78  |is.          tex|
00004fa0  74 29 2e 0a 0a 20 20 20  2d 42 6e 0a 20 20 20 20  |t)...   -Bn.    |
00004fb0  20 20 20 20 20 20 5b 54  41 4e 44 45 4d 5d 20 73  |      [TANDEM] s|
00004fc0  65 74 20 45 64 69 74 2f  45 6e 73 63 72 69 62 65  |et Edit/Enscribe|
00004fd0  20 66 6f 72 6d 61 74 74  69 6e 67 20 6f 70 74 69  | formatting opti|
00004fe0  6f 6e 73 20 77 69 74 68  20 6e 20 64 65 66 69 6e  |ons with n defin|
00004ff0  65 64 20 61 73 0a 0a 20  20 20 20 20 62 69 74 20  |ed as..     bit |
00005000  30 3a 20 44 6f 6e 27 74  20 61 64 64 20 64 65 6c  |0: Don't add del|
00005010  69 6d 69 74 65 72 20 28  45 64 69 74 2f 45 6e 73  |imiter (Edit/Ens|
00005020  63 72 69 62 65 29 0a 0a  20 20 20 20 20 62 69 74  |cribe)..     bit|
00005030  20 31 3a 20 55 73 65 20  4c 46 20 72 61 74 68 65  | 1: Use LF rathe|
00005040  72 20 74 68 61 6e 20 43  52 2f 4c 46 20 61 73 20  |r than CR/LF as |
00005050  64 65 6c 69 6d 69 74 65  72 20 28 45 64 69 74 2f  |delimiter (Edit/|
00005060  45 6e 73 63 72 69 62 65  29 0a 0a 20 20 20 20 20  |Enscribe)..     |
00005070  62 69 74 20 32 3a 20 53  70 61 63 65 20 66 69 6c  |bit 2: Space fil|
00005080  6c 20 72 65 63 6f 72 64  20 74 6f 20 6d 61 78 69  |l record to maxi|
00005090  6d 75 6d 20 72 65 63 6f  72 64 20 6c 65 6e 67 74  |mum record lengt|
000050a0  68 20 28 45 6e 73 63 72  69 62 65 29 0a 0a 20 20  |h (Enscribe)..  |
000050b0  20 20 20 62 69 74 20 33  3a 20 54 72 69 6d 20 74  |   bit 3: Trim t|
000050c0  72 61 69 6c 69 6e 67 20  73 70 61 63 65 20 28 45  |railing space (E|
000050d0  6e 73 63 72 69 62 65 29  0a 0a 20 20 20 20 20 62  |nscribe)..     b|
000050e0  69 74 20 38 3a 20 46 6f  72 63 65 20 33 30 4b 20  |it 8: Force 30K |
000050f0  28 45 78 70 61 6e 64 29  20 6c 61 72 67 65 20 72  |(Expand) large r|
00005100  65 61 64 20 66 6f 72 20  75 6e 73 74 72 75 63 74  |ead for unstruct|
00005110  75 72 65 64 20 66 69 6c  65 73 0a 0a 20 20 20 2d  |ured files..   -|
00005120  62 20 70 61 74 68 0a 0a  20 20 20 2d 2d 74 65 6d  |b path..   --tem|
00005130  70 2d 70 61 74 68 20 70  61 74 68 0a 20 20 20 20  |p-path path.    |
00005140  20 20 20 20 20 20 55 73  65 20 74 68 65 20 73 70  |      Use the sp|
00005150  65 63 69 66 69 65 64 20  70 61 74 68 20 66 6f 72  |ecified path for|
00005160  20 74 68 65 20 74 65 6d  70 6f 72 61 72 79 20 7a  | the temporary z|
00005170  69 70 20 61 72 63 68 69  76 65 2e 20 46 6f 72 0a  |ip archive. For.|
00005180  20 20 20 20 20 20 20 20  20 20 65 78 61 6d 70 6c  |          exampl|
00005190  65 3a 0a 0a 20 20 20 7a  69 70 20 2d 62 20 2f 74  |e:..   zip -b /t|
000051a0  6d 70 20 73 74 75 66 66  20 2a 0a 0a 20 20 20 77  |mp stuff *..   w|
000051b0  69 6c 6c 20 70 75 74 20  74 68 65 20 74 65 6d 70  |ill put the temp|
000051c0  6f 72 61 72 79 0a 20 20  20 20 20 20 20 20 20 20  |orary.          |
000051d0  7a 69 70 20 61 72 63 68  69 76 65 20 69 6e 20 74  |zip archive in t|
000051e0  68 65 20 64 69 72 65 63  74 6f 72 79 20 2f 74 6d  |he directory /tm|
000051f0  70 2c 20 63 6f 70 79 69  6e 67 20 6f 76 65 72 20  |p, copying over |
00005200  73 74 75 66 66 2e 7a 69  70 20 74 6f 0a 20 20 20  |stuff.zip to.   |
00005210  20 20 20 20 20 20 20 74  68 65 20 63 75 72 72 65  |       the curre|
00005220  6e 74 20 64 69 72 65 63  74 6f 72 79 20 77 68 65  |nt directory whe|
00005230  6e 20 64 6f 6e 65 2e 20  54 68 69 73 20 6f 70 74  |n done. This opt|
00005240  69 6f 6e 20 69 73 20 75  73 65 66 75 6c 20 77 68  |ion is useful wh|
00005250  65 6e 0a 20 20 20 20 20  20 20 20 20 20 75 70 64  |en.          upd|
00005260  61 74 69 6e 67 20 61 6e  20 65 78 69 73 74 69 6e  |ating an existin|
00005270  67 20 61 72 63 68 69 76  65 20 61 6e 64 20 74 68  |g archive and th|
00005280  65 20 66 69 6c 65 20 73  79 73 74 65 6d 20 63 6f  |e file system co|
00005290  6e 74 61 69 6e 69 6e 67  0a 20 20 20 20 20 20 20  |ntaining.       |
000052a0  20 20 20 74 68 69 73 20  6f 6c 64 20 61 72 63 68  |   this old arch|
000052b0  69 76 65 20 64 6f 65 73  20 6e 6f 74 20 68 61 76  |ive does not hav|
000052c0  65 20 65 6e 6f 75 67 68  20 73 70 61 63 65 20 74  |e enough space t|
000052d0  6f 20 68 6f 6c 64 20 62  6f 74 68 20 6f 6c 64 0a  |o hold both old.|
000052e0  20 20 20 20 20 20 20 20  20 20 61 6e 64 20 6e 65  |          and ne|
000052f0  77 20 61 72 63 68 69 76  65 73 20 61 74 20 74 68  |w archives at th|
00005300  65 20 73 61 6d 65 20 74  69 6d 65 2e 20 49 74 20  |e same time. It |
00005310  6d 61 79 20 61 6c 73 6f  20 62 65 20 75 73 65 66  |may also be usef|
00005320  75 6c 20 77 68 65 6e 0a  20 20 20 20 20 20 20 20  |ul when.        |
00005330  20 20 73 74 72 65 61 6d  69 6e 67 20 69 6e 20 73  |  streaming in s|
00005340  6f 6d 65 20 63 61 73 65  73 20 74 6f 20 61 76 6f  |ome cases to avo|
00005350  69 64 20 74 68 65 20 6e  65 65 64 20 66 6f 72 20  |id the need for |
00005360  64 61 74 61 20 64 65 73  63 72 69 70 74 6f 72 73  |data descriptors|
00005370  2e 0a 20 20 20 20 20 20  20 20 20 20 4e 6f 74 65  |..          Note|
00005380  20 74 68 61 74 20 75 73  69 6e 67 20 74 68 69 73  | that using this|
00005390  20 6f 70 74 69 6f 6e 20  6d 61 79 20 72 65 71 75  | option may requ|
000053a0  69 72 65 20 7a 69 70 20  74 61 6b 65 20 61 64 64  |ire zip take add|
000053b0  69 74 69 6f 6e 61 6c 0a  20 20 20 20 20 20 20 20  |itional.        |
000053c0  20 20 74 69 6d 65 20 74  6f 20 63 6f 70 79 20 74  |  time to copy t|
000053d0  68 65 20 61 72 63 68 69  76 65 20 66 69 6c 65 20  |he archive file |
000053e0  77 68 65 6e 20 64 6f 6e  65 20 74 6f 20 74 68 65  |when done to the|
000053f0  20 64 65 73 74 69 6e 61  74 69 6f 6e 20 66 69 6c  | destination fil|
00005400  65 0a 20 20 20 20 20 20  20 20 20 20 73 79 73 74  |e.          syst|
00005410  65 6d 2e 0a 0a 20 20 20  2d 63 0a 0a 20 20 20 2d  |em...   -c..   -|
00005420  2d 65 6e 74 72 79 2d 63  6f 6d 6d 65 6e 74 73 0a  |-entry-comments.|
00005430  20 20 20 20 20 20 20 20  20 20 41 64 64 20 6f 6e  |          Add on|
00005440  65 2d 6c 69 6e 65 20 63  6f 6d 6d 65 6e 74 73 20  |e-line comments |
00005450  66 6f 72 20 65 61 63 68  20 66 69 6c 65 2e 20 46  |for each file. F|
00005460  69 6c 65 20 6f 70 65 72  61 74 69 6f 6e 73 20 28  |ile operations (|
00005470  61 64 64 69 6e 67 2c 0a  20 20 20 20 20 20 20 20  |adding,.        |
00005480  20 20 75 70 64 61 74 69  6e 67 29 20 61 72 65 20  |  updating) are |
00005490  64 6f 6e 65 20 66 69 72  73 74 2c 20 61 6e 64 20  |done first, and |
000054a0  74 68 65 20 75 73 65 72  20 69 73 20 74 68 65 6e  |the user is then|
000054b0  20 70 72 6f 6d 70 74 65  64 20 66 6f 72 20 61 0a  | prompted for a.|
000054c0  20 20 20 20 20 20 20 20  20 20 6f 6e 65 2d 6c 69  |          one-li|
000054d0  6e 65 20 63 6f 6d 6d 65  6e 74 20 66 6f 72 20 65  |ne comment for e|
000054e0  61 63 68 20 66 69 6c 65  2e 20 45 6e 74 65 72 20  |ach file. Enter |
000054f0  74 68 65 20 63 6f 6d 6d  65 6e 74 20 66 6f 6c 6c  |the comment foll|
00005500  6f 77 65 64 20 62 79 0a  20 20 20 20 20 20 20 20  |owed by.        |
00005510  20 20 72 65 74 75 72 6e  2c 20 6f 72 20 6a 75 73  |  return, or jus|
00005520  74 20 72 65 74 75 72 6e  20 66 6f 72 20 6e 6f 20  |t return for no |
00005530  63 6f 6d 6d 65 6e 74 2e  0a 0a 20 20 20 2d 43 0a  |comment...   -C.|
00005540  0a 20 20 20 2d 2d 70 72  65 73 65 72 76 65 2d 63  |.   --preserve-c|
00005550  61 73 65 0a 20 20 20 20  20 20 20 20 20 20 5b 56  |ase.          [V|
00005560  4d 53 5d 20 50 72 65 73  65 72 76 65 20 63 61 73  |MS] Preserve cas|
00005570  65 20 61 6c 6c 20 6f 6e  20 56 4d 53 2e 20 4e 65  |e all on VMS. Ne|
00005580  67 61 74 69 6e 67 20 74  68 69 73 20 6f 70 74 69  |gating this opti|
00005590  6f 6e 20 28 2d 43 2d 29  0a 20 20 20 20 20 20 20  |on (-C-).       |
000055a0  20 20 20 64 6f 77 6e 63  61 73 65 73 2e 0a 0a 20  |   downcases... |
000055b0  20 20 2d 43 32 0a 0a 20  20 20 2d 2d 70 72 65 73  |  -C2..   --pres|
000055c0  65 72 76 65 2d 63 61 73  65 2d 32 0a 20 20 20 20  |erve-case-2.    |
000055d0  20 20 20 20 20 20 5b 56  4d 53 5d 20 50 72 65 73  |      [VMS] Pres|
000055e0  65 72 76 65 20 63 61 73  65 20 4f 44 53 32 20 6f  |erve case ODS2 o|
000055f0  6e 20 56 4d 53 2e 20 4e  65 67 61 74 69 6e 67 20  |n VMS. Negating |
00005600  74 68 69 73 20 6f 70 74  69 6f 6e 20 28 2d 43 32  |this option (-C2|
00005610  2d 29 0a 20 20 20 20 20  20 20 20 20 20 64 6f 77  |-).          dow|
00005620  6e 63 61 73 65 73 2e 0a  0a 20 20 20 2d 43 35 0a  |ncases...   -C5.|
00005630  0a 20 20 20 2d 2d 70 72  65 73 65 72 76 65 2d 63  |.   --preserve-c|
00005640  61 73 65 2d 35 0a 20 20  20 20 20 20 20 20 20 20  |ase-5.          |
00005650  5b 56 4d 53 5d 20 50 72  65 73 65 72 76 65 20 63  |[VMS] Preserve c|
00005660  61 73 65 20 4f 44 53 35  20 6f 6e 20 56 4d 53 2e  |ase ODS5 on VMS.|
00005670  20 4e 65 67 61 74 69 6e  67 20 74 68 69 73 20 6f  | Negating this o|
00005680  70 74 69 6f 6e 20 28 2d  43 35 2d 29 0a 20 20 20  |ption (-C5-).   |
00005690  20 20 20 20 20 20 20 64  6f 77 6e 63 61 73 65 73  |       downcases|
000056a0  2e 0a 0a 20 20 20 2d 64  0a 0a 20 20 20 2d 2d 64  |...   -d..   --d|
000056b0  65 6c 65 74 65 0a 20 20  20 20 20 20 20 20 20 20  |elete.          |
000056c0  52 65 6d 6f 76 65 20 28  64 65 6c 65 74 65 29 20  |Remove (delete) |
000056d0  65 6e 74 72 69 65 73 20  66 72 6f 6d 20 61 20 7a  |entries from a z|
000056e0  69 70 20 61 72 63 68 69  76 65 2e 20 46 6f 72 20  |ip archive. For |
000056f0  65 78 61 6d 70 6c 65 3a  0a 0a 20 20 20 7a 69 70  |example:..   zip|
00005700  20 2d 64 20 66 6f 6f 20  66 6f 6f 2f 74 6f 6d 2f  | -d foo foo/tom/|
00005710  6a 75 6e 6b 20 66 6f 6f  2f 68 61 72 72 79 2f 5c  |junk foo/harry/\|
00005720  2a 20 5c 2a 2e 6f 0a 0a  20 20 20 77 69 6c 6c 20  |* \*.o..   will |
00005730  72 65 6d 6f 76 65 20 74  68 65 20 65 6e 74 72 79  |remove the entry|
00005740  0a 20 20 20 20 20 20 20  20 20 20 66 6f 6f 2f 74  |.          foo/t|
00005750  6f 6d 2f 6a 75 6e 6b 2c  20 61 6c 6c 20 6f 66 20  |om/junk, all of |
00005760  74 68 65 20 66 69 6c 65  73 20 74 68 61 74 20 73  |the files that s|
00005770  74 61 72 74 20 77 69 74  68 20 66 6f 6f 2f 68 61  |tart with foo/ha|
00005780  72 72 79 2f 2c 20 61 6e  64 0a 20 20 20 20 20 20  |rry/, and.      |
00005790  20 20 20 20 61 6c 6c 20  6f 66 20 74 68 65 20 66  |    all of the f|
000057a0  69 6c 65 73 20 74 68 61  74 20 65 6e 64 20 77 69  |iles that end wi|
000057b0  74 68 20 2e 6f 20 28 69  6e 20 61 6e 79 20 70 61  |th .o (in any pa|
000057c0  74 68 29 2e 20 4e 6f 74  65 20 74 68 61 74 0a 20  |th). Note that. |
000057d0  20 20 20 20 20 20 20 20  20 73 68 65 6c 6c 20 70  |         shell p|
000057e0  61 74 68 6e 61 6d 65 20  65 78 70 61 6e 73 69 6f  |athname expansio|
000057f0  6e 20 68 61 73 20 62 65  65 6e 20 69 6e 68 69 62  |n has been inhib|
00005800  69 74 65 64 20 77 69 74  68 20 62 61 63 6b 73 6c  |ited with backsl|
00005810  61 73 68 65 73 2c 0a 20  20 20 20 20 20 20 20 20  |ashes,.         |
00005820  20 73 6f 20 74 68 61 74  20 7a 69 70 20 63 61 6e  | so that zip can|
00005830  20 73 65 65 20 74 68 65  20 61 73 74 65 72 69 73  | see the asteris|
00005840  6b 73 2c 20 65 6e 61 62  6c 69 6e 67 20 7a 69 70  |ks, enabling zip|
00005850  20 74 6f 20 6d 61 74 63  68 20 6f 6e 20 74 68 65  | to match on the|
00005860  0a 20 20 20 20 20 20 20  20 20 20 63 6f 6e 74 65  |.          conte|
00005870  6e 74 73 20 6f 66 20 74  68 65 20 7a 69 70 20 61  |nts of the zip a|
00005880  72 63 68 69 76 65 20 69  6e 73 74 65 61 64 20 6f  |rchive instead o|
00005890  66 20 74 68 65 20 63 6f  6e 74 65 6e 74 73 20 6f  |f the contents o|
000058a0  66 20 74 68 65 0a 20 20  20 20 20 20 20 20 20 20  |f the.          |
000058b0  63 75 72 72 65 6e 74 20  64 69 72 65 63 74 6f 72  |current director|
000058c0  79 2e 20 28 54 68 65 20  62 61 63 6b 73 6c 61 73  |y. (The backslas|
000058d0  68 65 73 20 61 72 65 20  6e 6f 74 20 75 73 65 64  |hes are not used|
000058e0  20 6f 6e 20 4d 53 44 4f  53 2d 62 61 73 65 64 0a  | on MSDOS-based.|
000058f0  20 20 20 20 20 20 20 20  20 20 70 6c 61 74 66 6f  |          platfo|
00005900  72 6d 73 2e 29 20 43 61  6e 20 61 6c 73 6f 20 75  |rms.) Can also u|
00005910  73 65 20 71 75 6f 74 65  73 20 74 6f 20 65 73 63  |se quotes to esc|
00005920  61 70 65 20 74 68 65 20  61 73 74 65 72 69 73 6b  |ape the asterisk|
00005930  73 20 61 73 20 69 6e 0a  0a 20 20 20 7a 69 70 20  |s as in..   zip |
00005940  2d 64 20 66 6f 6f 20 66  6f 6f 2f 74 6f 6d 2f 6a  |-d foo foo/tom/j|
00005950  75 6e 6b 20 22 66 6f 6f  2f 68 61 72 72 79 2f 2a  |unk "foo/harry/*|
00005960  22 20 22 2a 2e 6f 22 0a  0a 20 20 20 4e 6f 74 20  |" "*.o"..   Not |
00005970  65 73 63 61 70 69 6e 67  20 74 68 65 20 61 73 74  |escaping the ast|
00005980  65 72 69 73 6b 73 20 6f  6e 20 61 20 73 79 73 74  |erisks on a syst|
00005990  65 6d 20 77 68 65 72 65  20 74 68 65 20 73 68 65  |em where the she|
000059a0  6c 6c 20 65 78 70 61 6e  64 73 0a 20 20 20 20 20  |ll expands.     |
000059b0  20 20 20 20 20 77 69 6c  64 63 61 72 64 73 20 63  |     wildcards c|
000059c0  6f 75 6c 64 20 72 65 73  75 6c 74 20 69 6e 20 74  |ould result in t|
000059d0  68 65 20 61 73 74 65 72  69 73 6b 73 20 62 65 69  |he asterisks bei|
000059e0  6e 67 20 63 6f 6e 76 65  72 74 65 64 20 74 6f 20  |ng converted to |
000059f0  61 0a 20 20 20 20 20 20  20 20 20 20 6c 69 73 74  |a.          list|
00005a00  20 6f 66 20 66 69 6c 65  73 20 69 6e 20 74 68 65  | of files in the|
00005a10  20 63 75 72 72 65 6e 74  20 64 69 72 65 63 74 6f  | current directo|
00005a20  72 79 20 61 6e 64 20 74  68 61 74 20 6c 69 73 74  |ry and that list|
00005a30  20 75 73 65 64 20 74 6f  0a 20 20 20 20 20 20 20  | used to.       |
00005a40  20 20 20 64 65 6c 65 74  65 20 65 6e 74 72 69 65  |   delete entrie|
00005a50  73 20 66 72 6f 6d 20 74  68 65 20 61 72 63 68 69  |s from the archi|
00005a60  76 65 2e 0a 0a 20 20 20  55 6e 64 65 72 20 4d 53  |ve...   Under MS|
00005a70  44 4f 53 2c 0a 20 20 20  20 20 20 20 20 20 20 2d  |DOS,.          -|
00005a80  64 20 69 73 20 63 61 73  65 20 73 65 6e 73 69 74  |d is case sensit|
00005a90  69 76 65 20 77 68 65 6e  20 69 74 20 6d 61 74 63  |ive when it matc|
00005aa0  68 65 73 20 6e 61 6d 65  73 20 69 6e 20 74 68 65  |hes names in the|
00005ab0  20 7a 69 70 20 61 72 63  68 69 76 65 2e 0a 20 20  | zip archive..  |
00005ac0  20 20 20 20 20 20 20 20  54 68 69 73 20 72 65 71  |        This req|
00005ad0  75 69 72 65 73 20 74 68  61 74 20 66 69 6c 65 20  |uires that file |
00005ae0  6e 61 6d 65 73 20 62 65  20 65 6e 74 65 72 65 64  |names be entered|
00005af0  20 69 6e 20 75 70 70 65  72 20 63 61 73 65 20 69  | in upper case i|
00005b00  66 20 74 68 65 79 0a 20  20 20 20 20 20 20 20 20  |f they.         |
00005b10  20 77 65 72 65 20 7a 69  70 70 65 64 20 62 79 20  | were zipped by |
00005b20  50 4b 5a 49 50 20 6f 6e  20 61 6e 20 4d 53 44 4f  |PKZIP on an MSDO|
00005b30  53 20 73 79 73 74 65 6d  2e 20 28 57 65 20 63 6f  |S system. (We co|
00005b40  6e 73 69 64 65 72 65 64  20 6d 61 6b 69 6e 67 0a  |nsidered making.|
00005b50  20 20 20 20 20 20 20 20  20 20 74 68 69 73 20 63  |          this c|
00005b60  61 73 65 20 69 6e 73 65  6e 73 69 74 69 76 65 20  |ase insensitive |
00005b70  6f 6e 20 73 79 73 74 65  6d 73 20 77 68 65 72 65  |on systems where|
00005b80  20 70 61 74 68 73 20 77  65 72 65 20 63 61 73 65  | paths were case|
00005b90  0a 20 20 20 20 20 20 20  20 20 20 69 6e 73 65 6e  |.          insen|
00005ba0  73 69 74 69 76 65 2c 20  62 75 74 20 69 74 20 69  |sitive, but it i|
00005bb0  73 20 70 6f 73 73 69 62  6c 65 20 74 68 65 20 61  |s possible the a|
00005bc0  72 63 68 69 76 65 20 63  61 6d 65 20 66 72 6f 6d  |rchive came from|
00005bd0  20 61 20 73 79 73 74 65  6d 0a 20 20 20 20 20 20  | a system.      |
00005be0  20 20 20 20 77 68 65 72  65 20 63 61 73 65 20 64  |    where case d|
00005bf0  6f 65 73 20 6d 61 74 74  65 72 20 61 6e 64 20 74  |oes matter and t|
00005c00  68 65 20 61 72 63 68 69  76 65 20 63 6f 75 6c 64  |he archive could|
00005c10  20 69 6e 63 6c 75 64 65  20 62 6f 74 68 20 42 61  | include both Ba|
00005c20  72 0a 20 20 20 20 20 20  20 20 20 20 61 6e 64 20  |r.          and |
00005c30  62 61 72 20 61 73 20 73  65 70 61 72 61 74 65 20  |bar as separate |
00005c40  66 69 6c 65 73 20 69 6e  20 74 68 65 20 61 72 63  |files in the arc|
00005c50  68 69 76 65 2e 29 20 42  75 74 20 73 65 65 20 74  |hive.) But see t|
00005c60  68 65 20 6e 65 77 0a 20  20 20 20 20 20 20 20 20  |he new.         |
00005c70  20 6f 70 74 69 6f 6e 20  2d 69 63 20 74 6f 20 69  | option -ic to i|
00005c80  67 6e 6f 72 65 20 63 61  73 65 20 69 6e 20 74 68  |gnore case in th|
00005c90  65 20 61 72 63 68 69 76  65 2e 0a 0a 20 20 20 2d  |e archive...   -|
00005ca0  64 62 0a 0a 20 20 20 2d  2d 64 69 73 70 6c 61 79  |db..   --display|
00005cb0  2d 62 79 74 65 73 0a 20  20 20 20 20 20 20 20 20  |-bytes.         |
00005cc0  20 44 69 73 70 6c 61 79  20 72 75 6e 6e 69 6e 67  | Display running|
00005cd0  20 62 79 74 65 20 63 6f  75 6e 74 73 20 73 68 6f  | byte counts sho|
00005ce0  77 69 6e 67 20 74 68 65  20 62 79 74 65 73 20 7a  |wing the bytes z|
00005cf0  69 70 70 65 64 20 61 6e  64 20 74 68 65 0a 20 20  |ipped and the.  |
00005d00  20 20 20 20 20 20 20 20  62 79 74 65 73 20 74 6f  |        bytes to|
00005d10  20 67 6f 2e 0a 0a 20 20  20 2d 64 63 0a 0a 20 20  | go...   -dc..  |
00005d20  20 2d 2d 64 69 73 70 6c  61 79 2d 63 6f 75 6e 74  | --display-count|
00005d30  73 0a 20 20 20 20 20 20  20 20 20 20 44 69 73 70  |s.          Disp|
00005d40  6c 61 79 20 72 75 6e 6e  69 6e 67 20 63 6f 75 6e  |lay running coun|
00005d50  74 20 6f 66 20 65 6e 74  72 69 65 73 20 7a 69 70  |t of entries zip|
00005d60  70 65 64 20 61 6e 64 20  65 6e 74 72 69 65 73 20  |ped and entries |
00005d70  74 6f 20 67 6f 2e 0a 0a  20 20 20 2d 64 64 0a 0a  |to go...   -dd..|
00005d80  20 20 20 2d 2d 64 69 73  70 6c 61 79 2d 64 6f 74  |   --display-dot|
00005d90  73 0a 20 20 20 20 20 20  20 20 20 20 44 69 73 70  |s.          Disp|
00005da0  6c 61 79 20 64 6f 74 73  20 77 68 69 6c 65 20 65  |lay dots while e|
00005db0  61 63 68 20 65 6e 74 72  79 20 69 73 20 7a 69 70  |ach entry is zip|
00005dc0  70 65 64 20 28 65 78 63  65 70 74 20 6f 6e 20 70  |ped (except on p|
00005dd0  6f 72 74 73 20 74 68 61  74 0a 20 20 20 20 20 20  |orts that.      |
00005de0  20 20 20 20 68 61 76 65  20 74 68 65 69 72 20 6f  |    have their o|
00005df0  77 6e 20 70 72 6f 67 72  65 73 73 20 69 6e 64 69  |wn progress indi|
00005e00  63 61 74 6f 72 29 2e 20  53 65 65 20 2d 64 73 20  |cator). See -ds |
00005e10  62 65 6c 6f 77 20 66 6f  72 20 73 65 74 74 69 6e  |below for settin|
00005e20  67 0a 20 20 20 20 20 20  20 20 20 20 64 6f 74 20  |g.          dot |
00005e30  73 69 7a 65 2e 20 54 68  65 20 64 65 66 61 75 6c  |size. The defaul|
00005e40  74 20 69 73 20 61 20 64  6f 74 20 65 76 65 72 79  |t is a dot every|
00005e50  20 31 30 20 4d 42 20 6f  66 20 69 6e 70 75 74 20  | 10 MB of input |
00005e60  66 69 6c 65 0a 20 20 20  20 20 20 20 20 20 20 70  |file.          p|
00005e70  72 6f 63 65 73 73 65 64  2e 20 54 68 65 20 2d 76  |rocessed. The -v|
00005e80  20 6f 70 74 69 6f 6e 20  61 6c 73 6f 20 64 69 73  | option also dis|
00005e90  70 6c 61 79 73 20 64 6f  74 73 20 28 70 72 65 76  |plays dots (prev|
00005ea0  69 6f 75 73 6c 79 20 61  74 20 61 0a 20 20 20 20  |iously at a.    |
00005eb0  20 20 20 20 20 20 6d 75  63 68 20 68 69 67 68 65  |      much highe|
00005ec0  72 20 72 61 74 65 20 74  68 61 6e 20 74 68 69 73  |r rate than this|
00005ed0  20 62 75 74 20 6e 6f 77  20 2d 76 20 61 6c 73 6f  | but now -v also|
00005ee0  20 64 65 66 61 75 6c 74  73 20 74 6f 20 31 30 20  | defaults to 10 |
00005ef0  4d 42 29 0a 20 20 20 20  20 20 20 20 20 20 61 6e  |MB).          an|
00005f00  64 20 74 68 69 73 20 72  61 74 65 20 69 73 20 61  |d this rate is a|
00005f10  6c 73 6f 20 63 6f 6e 74  72 6f 6c 6c 65 64 20 62  |lso controlled b|
00005f20  79 20 2d 64 73 2e 0a 0a  20 20 20 2d 64 66 0a 0a  |y -ds...   -df..|
00005f30  20 20 20 2d 2d 64 61 74  61 66 6f 72 6b 0a 20 20  |   --datafork.  |
00005f40  20 20 20 20 20 20 20 20  5b 4d 61 63 4f 53 5d 20  |        [MacOS] |
00005f50  49 6e 63 6c 75 64 65 20  6f 6e 6c 79 20 64 61 74  |Include only dat|
00005f60  61 2d 66 6f 72 6b 20 6f  66 20 66 69 6c 65 73 20  |a-fork of files |
00005f70  7a 69 70 70 65 64 20 69  6e 74 6f 20 74 68 65 0a  |zipped into the.|
00005f80  20 20 20 20 20 20 20 20  20 20 61 72 63 68 69 76  |          archiv|
00005f90  65 2e 20 47 6f 6f 64 20  66 6f 72 20 65 78 70 6f  |e. Good for expo|
00005fa0  72 74 69 6e 67 20 66 69  6c 65 73 20 74 6f 20 66  |rting files to f|
00005fb0  6f 72 65 69 67 6e 20 6f  70 65 72 61 74 69 6e 67  |oreign operating|
00005fc0  2d 73 79 73 74 65 6d 73  2e 0a 20 20 20 20 20 20  |-systems..      |
00005fd0  20 20 20 20 52 65 73 6f  75 72 63 65 2d 66 6f 72  |    Resource-for|
00005fe0  6b 73 20 77 69 6c 6c 20  62 65 20 69 67 6e 6f 72  |ks will be ignor|
00005ff0  65 64 20 61 74 20 61 6c  6c 2e 0a 0a 20 20 20 2d  |ed at all...   -|
00006000  64 67 0a 0a 20 20 20 2d  2d 64 69 73 70 6c 61 79  |dg..   --display|
00006010  2d 67 6c 6f 62 61 6c 64  6f 74 73 0a 20 20 20 20  |-globaldots.    |
00006020  20 20 20 20 20 20 44 69  73 70 6c 61 79 20 70 72  |      Display pr|
00006030  6f 67 72 65 73 73 20 64  6f 74 73 20 66 6f 72 20  |ogress dots for |
00006040  74 68 65 20 61 72 63 68  69 76 65 20 69 6e 73 74  |the archive inst|
00006050  65 61 64 20 6f 66 20 66  6f 72 20 65 61 63 68 20  |ead of for each |
00006060  66 69 6c 65 2e 0a 20 20  20 20 20 20 20 20 20 20  |file..          |
00006070  54 68 65 20 63 6f 6d 6d  61 6e 64 0a 0a 20 20 20  |The command..   |
00006080  7a 69 70 20 2d 71 64 67  64 73 20 31 30 6d 0a 0a  |zip -qdgds 10m..|
00006090  20 20 20 77 69 6c 6c 20  74 75 72 6e 20 6f 66 66  |   will turn off|
000060a0  20 6d 6f 73 74 20 6f 75  74 70 75 74 20 65 78 63  | most output exc|
000060b0  65 70 74 20 64 6f 74 73  20 65 76 65 72 79 20 31  |ept dots every 1|
000060c0  30 20 4d 42 2e 0a 0a 20  20 20 2d 64 73 20 73 69  |0 MB...   -ds si|
000060d0  7a 65 0a 0a 20 20 20 2d  2d 64 6f 74 2d 73 69 7a  |ze..   --dot-siz|
000060e0  65 20 73 69 7a 65 0a 20  20 20 20 20 20 20 20 20  |e size.         |
000060f0  20 53 65 74 20 61 6d 6f  75 6e 74 20 6f 66 20 69  | Set amount of i|
00006100  6e 70 75 74 20 66 69 6c  65 20 70 72 6f 63 65 73  |nput file proces|
00006110  73 65 64 20 66 6f 72 20  65 61 63 68 20 64 6f 74  |sed for each dot|
00006120  20 64 69 73 70 6c 61 79  65 64 2e 20 53 65 65 0a  | displayed. See.|
00006130  20 20 20 20 20 20 20 20  20 20 2d 64 64 20 74 6f  |          -dd to|
00006140  20 65 6e 61 62 6c 65 20  64 69 73 70 6c 61 79 69  | enable displayi|
00006150  6e 67 20 64 6f 74 73 2e  20 53 65 74 74 69 6e 67  |ng dots. Setting|
00006160  20 74 68 69 73 20 6f 70  74 69 6f 6e 20 69 6d 70  | this option imp|
00006170  6c 69 65 73 20 2d 64 64  2e 0a 20 20 20 20 20 20  |lies -dd..      |
00006180  20 20 20 20 53 69 7a 65  20 69 73 20 69 6e 20 74  |    Size is in t|
00006190  68 65 20 66 6f 72 6d 61  74 20 6e 6d 20 77 68 65  |he format nm whe|
000061a0  72 65 20 6e 20 69 73 20  61 20 6e 75 6d 62 65 72  |re n is a number|
000061b0  20 61 6e 64 20 6d 20 69  73 20 61 0a 20 20 20 20  | and m is a.    |
000061c0  20 20 20 20 20 20 6d 75  6c 74 69 70 6c 69 65 72  |      multiplier|
000061d0  2e 20 43 75 72 72 65 6e  74 6c 79 20 6d 20 63 61  |. Currently m ca|
000061e0  6e 20 62 65 20 6b 20 28  4b 42 29 2c 20 6d 20 28  |n be k (KB), m (|
000061f0  4d 42 29 2c 20 67 20 28  47 42 29 2c 20 6f 72 20  |MB), g (GB), or |
00006200  74 0a 20 20 20 20 20 20  20 20 20 20 28 54 42 29  |t.          (TB)|
00006210  2c 20 73 6f 20 69 66 20  6e 20 69 73 20 31 30 30  |, so if n is 100|
00006220  20 61 6e 64 20 6d 20 69  73 20 6b 2c 20 73 69 7a  | and m is k, siz|
00006230  65 20 77 6f 75 6c 64 20  62 65 20 31 30 30 6b 20  |e would be 100k |
00006240  77 68 69 63 68 20 69 73  0a 20 20 20 20 20 20 20  |which is.       |
00006250  20 20 20 31 30 30 20 4b  42 2e 20 54 68 65 20 64  |   100 KB. The d|
00006260  65 66 61 75 6c 74 20 69  73 20 31 30 20 4d 42 2e  |efault is 10 MB.|
00006270  0a 0a 20 20 20 54 68 65  20 2d 76 20 6f 70 74 69  |..   The -v opti|
00006280  6f 6e 20 61 6c 73 6f 20  64 69 73 70 6c 61 79 73  |on also displays|
00006290  20 64 6f 74 73 20 61 6e  64 20 6e 6f 77 20 64 65  | dots and now de|
000062a0  66 61 75 6c 74 73 20 74  6f 0a 20 20 20 20 20 20  |faults to.      |
000062b0  20 20 20 20 31 30 20 4d  42 20 61 6c 73 6f 2e 20  |    10 MB also. |
000062c0  54 68 69 73 20 72 61 74  65 20 69 73 20 61 6c 73  |This rate is als|
000062d0  6f 20 63 6f 6e 74 72 6f  6c 6c 65 64 20 62 79 20  |o controlled by |
000062e0  74 68 69 73 20 6f 70 74  69 6f 6e 2e 20 41 20 73  |this option. A s|
000062f0  69 7a 65 0a 20 20 20 20  20 20 20 20 20 20 6f 66  |ize.          of|
00006300  20 30 20 74 75 72 6e 73  20 64 6f 74 73 20 6f 66  | 0 turns dots of|
00006310  66 2e 0a 0a 20 20 20 54  68 69 73 20 6f 70 74 69  |f...   This opti|
00006320  6f 6e 20 64 6f 65 73 20  6e 6f 74 20 63 6f 6e 74  |on does not cont|
00006330  72 6f 6c 20 74 68 65 20  64 6f 74 73 20 66 72 6f  |rol the dots fro|
00006340  6d 20 74 68 65 20 22 53  63 61 6e 6e 69 6e 67 20  |m the "Scanning |
00006350  66 69 6c 65 73 22 0a 20  20 20 20 20 20 20 20 20  |files".         |
00006360  20 6d 65 73 73 61 67 65  20 61 73 0a 20 20 20 20  | message as.    |
00006370  20 20 20 20 20 20 7a 69  70 20 73 63 61 6e 73 20  |      zip scans |
00006380  66 6f 72 20 69 6e 70 75  74 20 66 69 6c 65 73 2e  |for input files.|
00006390  20 54 68 65 20 64 6f 74  20 73 69 7a 65 20 66 6f  | The dot size fo|
000063a0  72 20 74 68 61 74 20 69  73 20 66 69 78 65 64 20  |r that is fixed |
000063b0  61 74 20 32 0a 20 20 20  20 20 20 20 20 20 20 73  |at 2.          s|
000063c0  65 63 6f 6e 64 73 20 6f  72 20 61 20 66 69 78 65  |econds or a fixe|
000063d0  64 20 6e 75 6d 62 65 72  20 6f 66 20 65 6e 74 72  |d number of entr|
000063e0  69 65 73 2c 20 77 68 69  63 68 65 76 65 72 20 69  |ies, whichever i|
000063f0  73 20 6c 6f 6e 67 65 72  2e 0a 0a 20 20 20 2d 64  |s longer...   -d|
00006400  75 0a 0a 20 20 20 2d 2d  64 69 73 70 6c 61 79 2d  |u..   --display-|
00006410  75 73 69 7a 65 0a 20 20  20 20 20 20 20 20 20 20  |usize.          |
00006420  44 69 73 70 6c 61 79 20  74 68 65 20 75 6e 63 6f  |Display the unco|
00006430  6d 70 72 65 73 73 65 64  20 73 69 7a 65 20 6f 66  |mpressed size of|
00006440  20 65 61 63 68 20 65 6e  74 72 79 2e 0a 0a 20 20  | each entry...  |
00006450  20 2d 64 76 0a 0a 20 20  20 2d 2d 64 69 73 70 6c  | -dv..   --displ|
00006460  61 79 2d 76 6f 6c 75 6d  65 0a 20 20 20 20 20 20  |ay-volume.      |
00006470  20 20 20 20 44 69 73 70  6c 61 79 20 74 68 65 20  |    Display the |
00006480  76 6f 6c 75 6d 65 20 28  64 69 73 6b 29 20 6e 75  |volume (disk) nu|
00006490  6d 62 65 72 20 65 61 63  68 20 65 6e 74 72 79 20  |mber each entry |
000064a0  69 73 20 62 65 69 6e 67  20 72 65 61 64 20 66 72  |is being read fr|
000064b0  6f 6d 2c 0a 20 20 20 20  20 20 20 20 20 20 69 66  |om,.          if|
000064c0  20 72 65 61 64 69 6e 67  20 61 6e 20 65 78 69 73  | reading an exis|
000064d0  74 69 6e 67 20 61 72 63  68 69 76 65 2c 20 61 6e  |ting archive, an|
000064e0  64 20 62 65 69 6e 67 20  77 72 69 74 74 65 6e 20  |d being written |
000064f0  74 6f 2e 0a 0a 20 20 20  2d 44 0a 0a 20 20 20 2d  |to...   -D..   -|
00006500  2d 6e 6f 2d 64 69 72 2d  65 6e 74 72 69 65 73 0a  |-no-dir-entries.|
00006510  20 20 20 20 20 20 20 20  20 20 44 6f 20 6e 6f 74  |          Do not|
00006520  20 63 72 65 61 74 65 20  65 6e 74 72 69 65 73 20  | create entries |
00006530  69 6e 20 74 68 65 20 7a  69 70 20 61 72 63 68 69  |in the zip archi|
00006540  76 65 20 66 6f 72 20 64  69 72 65 63 74 6f 72 69  |ve for directori|
00006550  65 73 2e 0a 20 20 20 20  20 20 20 20 20 20 44 69  |es..          Di|
00006560  72 65 63 74 6f 72 79 20  65 6e 74 72 69 65 73 20  |rectory entries |
00006570  61 72 65 20 63 72 65 61  74 65 64 20 62 79 20 64  |are created by d|
00006580  65 66 61 75 6c 74 20 73  6f 20 74 68 61 74 20 74  |efault so that t|
00006590  68 65 69 72 0a 20 20 20  20 20 20 20 20 20 20 61  |heir.          a|
000065a0  74 74 72 69 62 75 74 65  73 20 63 61 6e 20 62 65  |ttributes can be|
000065b0  20 73 61 76 65 64 20 69  6e 20 74 68 65 20 7a 69  | saved in the zi|
000065c0  70 20 61 72 63 68 69 76  65 2e 20 54 68 65 20 65  |p archive. The e|
000065d0  6e 76 69 72 6f 6e 6d 65  6e 74 0a 20 20 20 20 20  |nvironment.     |
000065e0  20 20 20 20 20 76 61 72  69 61 62 6c 65 20 5a 49  |     variable ZI|
000065f0  50 4f 50 54 20 63 61 6e  20 62 65 20 75 73 65 64  |POPT can be used|
00006600  20 74 6f 20 63 68 61 6e  67 65 20 74 68 65 20 64  | to change the d|
00006610  65 66 61 75 6c 74 20 6f  70 74 69 6f 6e 73 2e 20  |efault options. |
00006620  46 6f 72 0a 20 20 20 20  20 20 20 20 20 20 65 78  |For.          ex|
00006630  61 6d 70 6c 65 20 75 6e  64 65 72 20 55 6e 69 78  |ample under Unix|
00006640  20 77 69 74 68 20 73 68  3a 0a 0a 20 20 20 5a 49  | with sh:..   ZI|
00006650  50 4f 50 54 3d 22 2d 44  22 3b 20 65 78 70 6f 72  |POPT="-D"; expor|
00006660  74 20 5a 49 50 4f 50 54  0a 0a 20 20 20 28 54 68  |t ZIPOPT..   (Th|
00006670  65 20 76 61 72 69 61 62  6c 65 20 5a 49 50 4f 50  |e variable ZIPOP|
00006680  54 20 63 61 6e 20 62 65  20 75 73 65 64 20 66 6f  |T can be used fo|
00006690  72 20 61 6e 79 20 6f 70  74 69 6f 6e 2c 20 69 6e  |r any option, in|
000066a0  63 6c 75 64 69 6e 67 20  2d 69 20 61 6e 64 20 2d  |cluding -i and -|
000066b0  78 0a 20 20 20 20 20 20  20 20 20 20 75 73 69 6e  |x.          usin|
000066c0  67 20 61 20 6e 65 77 20  6f 70 74 69 6f 6e 20 66  |g a new option f|
000066d0  6f 72 6d 61 74 20 64 65  74 61 69 6c 65 64 20 62  |ormat detailed b|
000066e0  65 6c 6f 77 2c 20 61 6e  64 20 63 61 6e 20 69 6e  |elow, and can in|
000066f0  63 6c 75 64 65 0a 20 20  20 20 20 20 20 20 20 20  |clude.          |
00006700  73 65 76 65 72 61 6c 20  6f 70 74 69 6f 6e 73 2e  |several options.|
00006710  29 20 54 68 65 20 6f 70  74 69 6f 6e 20 2d 44 20  |) The option -D |
00006720  69 73 20 61 20 73 68 6f  72 74 68 61 6e 64 20 66  |is a shorthand f|
00006730  6f 72 20 2d 78 20 22 2a  2f 22 20 62 75 74 0a 20  |or -x "*/" but. |
00006740  20 20 20 20 20 20 20 20  20 74 68 65 20 6c 61 74  |         the lat|
00006750  74 65 72 20 70 72 65 76  69 6f 75 73 6c 79 20 63  |ter previously c|
00006760  6f 75 6c 64 20 6e 6f 74  20 62 65 20 73 65 74 20  |ould not be set |
00006770  61 73 20 64 65 66 61 75  6c 74 20 69 6e 20 74 68  |as default in th|
00006780  65 20 5a 49 50 4f 50 54  0a 20 20 20 20 20 20 20  |e ZIPOPT.       |
00006790  20 20 20 65 6e 76 69 72  6f 6e 6d 65 6e 74 20 76  |   environment v|
000067a0  61 72 69 61 62 6c 65 20  61 73 20 74 68 65 20 63  |ariable as the c|
000067b0  6f 6e 74 65 6e 74 73 20  6f 66 20 5a 49 50 4f 50  |ontents of ZIPOP|
000067c0  54 20 67 65 74 73 20 69  6e 73 65 72 74 65 64 0a  |T gets inserted.|
000067d0  20 20 20 20 20 20 20 20  20 20 6e 65 61 72 20 74  |          near t|
000067e0  68 65 20 62 65 67 69 6e  6e 69 6e 67 20 6f 66 20  |he beginning of |
000067f0  74 68 65 20 63 6f 6d 6d  61 6e 64 20 6c 69 6e 65  |the command line|
00006800  20 61 6e 64 20 74 68 65  20 66 69 6c 65 20 6c 69  | and the file li|
00006810  73 74 20 68 61 64 20 74  6f 0a 20 20 20 20 20 20  |st had to.      |
00006820  20 20 20 20 65 6e 64 20  61 74 20 74 68 65 20 65  |    end at the e|
00006830  6e 64 20 6f 66 20 74 68  65 20 6c 69 6e 65 2e 0a  |nd of the line..|
00006840  0a 20 20 20 54 68 69 73  20 76 65 72 73 69 6f 6e  |.   This version|
00006850  20 6f 66 0a 20 20 20 20  20 20 20 20 20 20 7a 69  | of.          zi|
00006860  70 20 64 6f 65 73 20 61  6c 6c 6f 77 20 2d 78 20  |p does allow -x |
00006870  61 6e 64 20 2d 69 20 6f  70 74 69 6f 6e 73 20 69  |and -i options i|
00006880  6e 20 5a 49 50 4f 50 54  20 69 66 20 74 68 65 20  |n ZIPOPT if the |
00006890  66 6f 72 6d 0a 0a 20 20  20 2d 78 20 66 69 6c 65  |form..   -x file|
000068a0  20 66 69 6c 65 20 2e 2e  2e 20 40 0a 0a 20 20 20  | file ... @..   |
000068b0  69 73 20 75 73 65 64 2c  20 77 68 65 72 65 20 74  |is used, where t|
000068c0  68 65 20 40 20 28 61 6e  20 61 72 67 75 6d 65 6e  |he @ (an argumen|
000068d0  74 20 74 68 61 74 20 69  73 20 6a 75 73 74 20 40  |t that is just @|
000068e0  29 20 74 65 72 6d 69 6e  61 74 65 73 0a 20 20 20  |) terminates.   |
000068f0  20 20 20 20 20 20 20 74  68 65 20 6c 69 73 74 2e  |       the list.|
00006900  0a 0a 20 20 20 2d 44 46  0a 0a 20 20 20 2d 2d 64  |..   -DF..   --d|
00006910  69 66 66 65 72 65 6e 63  65 2d 61 72 63 68 69 76  |ifference-archiv|
00006920  65 0a 20 20 20 20 20 20  20 20 20 20 43 72 65 61  |e.          Crea|
00006930  74 65 20 61 6e 20 61 72  63 68 69 76 65 20 74 68  |te an archive th|
00006940  61 74 20 63 6f 6e 74 61  69 6e 73 20 61 6c 6c 20  |at contains all |
00006950  6e 65 77 20 61 6e 64 20  63 68 61 6e 67 65 64 20  |new and changed |
00006960  66 69 6c 65 73 20 73 69  6e 63 65 0a 20 20 20 20  |files since.    |
00006970  20 20 20 20 20 20 74 68  65 20 6f 72 69 67 69 6e  |      the origin|
00006980  61 6c 20 61 72 63 68 69  76 65 20 77 61 73 20 63  |al archive was c|
00006990  72 65 61 74 65 64 2e 20  46 6f 72 20 74 68 69 73  |reated. For this|
000069a0  20 74 6f 20 77 6f 72 6b  2c 20 74 68 65 20 69 6e  | to work, the in|
000069b0  70 75 74 0a 20 20 20 20  20 20 20 20 20 20 66 69  |put.          fi|
000069c0  6c 65 20 6c 69 73 74 20  61 6e 64 20 63 75 72 72  |le list and curr|
000069d0  65 6e 74 20 64 69 72 65  63 74 6f 72 79 20 6d 75  |ent directory mu|
000069e0  73 74 20 62 65 20 74 68  65 20 73 61 6d 65 20 61  |st be the same a|
000069f0  73 20 64 75 72 69 6e 67  20 74 68 65 0a 20 20 20  |s during the.   |
00006a00  20 20 20 20 20 20 20 6f  72 69 67 69 6e 61 6c 20  |       original |
00006a10  7a 69 70 20 6f 70 65 72  61 74 69 6f 6e 2e 0a 0a  |zip operation...|
00006a20  20 20 20 46 6f 72 20 65  78 61 6d 70 6c 65 2c 20  |   For example, |
00006a30  69 66 20 74 68 65 20 65  78 69 73 74 69 6e 67 20  |if the existing |
00006a40  61 72 63 68 69 76 65 20  77 61 73 20 63 72 65 61  |archive was crea|
00006a50  74 65 64 20 75 73 69 6e  67 0a 0a 20 20 20 7a 69  |ted using..   zi|
00006a60  70 20 2d 72 20 66 6f 6f  66 75 6c 6c 20 2e 0a 0a  |p -r foofull ...|
00006a70  20 20 20 66 72 6f 6d 20  74 68 65 20 62 61 72 20  |   from the bar |
00006a80  64 69 72 65 63 74 6f 72  79 2c 20 74 68 65 6e 20  |directory, then |
00006a90  74 68 65 20 63 6f 6d 6d  61 6e 64 0a 0a 20 20 20  |the command..   |
00006aa0  7a 69 70 20 2d 72 20 66  6f 6f 66 75 6c 6c 20 2e  |zip -r foofull .|
00006ab0  20 2d 44 46 20 2d 2d 6f  75 74 20 66 6f 6f 6e 65  | -DF --out foone|
00006ac0  77 0a 0a 20 20 20 61 6c  73 6f 20 66 72 6f 6d 20  |w..   also from |
00006ad0  74 68 65 20 62 61 72 20  64 69 72 65 63 74 6f 72  |the bar director|
00006ae0  79 20 63 72 65 61 74 65  73 20 74 68 65 20 61 72  |y creates the ar|
00006af0  63 68 69 76 65 20 66 6f  6f 6e 65 77 0a 20 20 20  |chive foonew.   |
00006b00  20 20 20 20 20 20 20 77  69 74 68 20 6a 75 73 74  |       with just|
00006b10  20 74 68 65 20 66 69 6c  65 73 20 6e 6f 74 20 69  | the files not i|
00006b20  6e 20 66 6f 6f 66 75 6c  6c 20 61 6e 64 20 74 68  |n foofull and th|
00006b30  65 20 66 69 6c 65 73 20  77 68 65 72 65 20 74 68  |e files where th|
00006b40  65 20 73 69 7a 65 0a 20  20 20 20 20 20 20 20 20  |e size.         |
00006b50  20 6f 72 20 66 69 6c 65  20 74 69 6d 65 20 6f 66  | or file time of|
00006b60  20 74 68 65 20 66 69 6c  65 73 20 64 6f 20 6e 6f  | the files do no|
00006b70  74 20 6d 61 74 63 68 20  74 68 6f 73 65 20 69 6e  |t match those in|
00006b80  20 66 6f 6f 66 75 6c 6c  2e 0a 0a 20 20 20 20 20  | foofull...     |
00006b90  20 20 20 20 20 4e 6f 74  65 20 74 68 61 74 20 74  |     Note that t|
00006ba0  68 65 20 74 69 6d 65 7a  6f 6e 65 20 65 6e 76 69  |he timezone envi|
00006bb0  72 6f 6e 6d 65 6e 74 20  76 61 72 69 61 62 6c 65  |ronment variable|
00006bc0  20 54 5a 20 73 68 6f 75  6c 64 20 62 65 20 73 65  | TZ should be se|
00006bd0  74 0a 20 20 20 20 20 20  20 20 20 20 61 63 63 6f  |t.          acco|
00006be0  72 64 69 6e 67 20 74 6f  20 74 68 65 20 6c 6f 63  |rding to the loc|
00006bf0  61 6c 20 74 69 6d 65 7a  6f 6e 65 20 69 6e 20 6f  |al timezone in o|
00006c00  72 64 65 72 20 66 6f 72  20 74 68 69 73 20 6f 70  |rder for this op|
00006c10  74 69 6f 6e 20 74 6f 0a  20 20 20 20 20 20 20 20  |tion to.        |
00006c20  20 20 77 6f 72 6b 20 63  6f 72 72 65 63 74 6c 79  |  work correctly|
00006c30  2e 20 41 20 63 68 61 6e  67 65 20 69 6e 20 74 69  |. A change in ti|
00006c40  6d 65 7a 6f 6e 65 20 73  69 6e 63 65 20 74 68 65  |mezone since the|
00006c50  20 6f 72 69 67 69 6e 61  6c 20 61 72 63 68 69 76  | original archiv|
00006c60  65 0a 20 20 20 20 20 20  20 20 20 20 77 61 73 20  |e.          was |
00006c70  63 72 65 61 74 65 64 20  63 6f 75 6c 64 20 72 65  |created could re|
00006c80  73 75 6c 74 20 69 6e 20  6e 6f 20 74 69 6d 65 73  |sult in no times|
00006c90  20 6d 61 74 63 68 69 6e  67 20 61 6e 64 20 61 6c  | matching and al|
00006ca0  6c 20 66 69 6c 65 73 0a  20 20 20 20 20 20 20 20  |l files.        |
00006cb0  20 20 62 65 69 6e 67 20  69 6e 63 6c 75 64 65 64  |  being included|
00006cc0  2e 0a 0a 20 20 20 20 20  20 20 20 20 20 41 20 70  |...          A p|
00006cd0  6f 73 73 69 62 6c 65 20  61 70 70 72 6f 61 63 68  |ossible approach|
00006ce0  20 74 6f 20 62 61 63 6b  69 6e 67 20 75 70 20 61  | to backing up a|
00006cf0  20 64 69 72 65 63 74 6f  72 79 20 6d 69 67 68 74  | directory might|
00006d00  20 62 65 20 74 6f 0a 20  20 20 20 20 20 20 20 20  | be to.         |
00006d10  20 63 72 65 61 74 65 20  61 20 6e 6f 72 6d 61 6c  | create a normal|
00006d20  20 61 72 63 68 69 76 65  20 6f 66 20 74 68 65 20  | archive of the |
00006d30  63 6f 6e 74 65 6e 74 73  20 6f 66 20 74 68 65 20  |contents of the |
00006d40  64 69 72 65 63 74 6f 72  79 20 61 73 20 61 0a 20  |directory as a. |
00006d50  20 20 20 20 20 20 20 20  20 66 75 6c 6c 20 62 61  |         full ba|
00006d60  63 6b 75 70 2c 20 74 68  65 6e 20 75 73 65 20 74  |ckup, then use t|
00006d70  68 69 73 20 6f 70 74 69  6f 6e 20 74 6f 20 63 72  |his option to cr|
00006d80  65 61 74 65 20 69 6e 63  72 65 6d 65 6e 74 61 6c  |eate incremental|
00006d90  0a 20 20 20 20 20 20 20  20 20 20 62 61 63 6b 75  |.          backu|
00006da0  70 73 2e 0a 0a 20 20 20  2d 65 0a 0a 20 20 20 2d  |ps...   -e..   -|
00006db0  2d 65 6e 63 72 79 70 74  0a 20 20 20 20 20 20 20  |-encrypt.       |
00006dc0  20 20 20 45 6e 63 72 79  70 74 20 74 68 65 20 63  |   Encrypt the c|
00006dd0  6f 6e 74 65 6e 74 73 20  6f 66 20 74 68 65 20 7a  |ontents of the z|
00006de0  69 70 20 61 72 63 68 69  76 65 20 75 73 69 6e 67  |ip archive using|
00006df0  20 61 20 70 61 73 73 77  6f 72 64 20 77 68 69 63  | a password whic|
00006e00  68 0a 20 20 20 20 20 20  20 20 20 20 69 73 20 65  |h.          is e|
00006e10  6e 74 65 72 65 64 20 6f  6e 20 74 68 65 20 74 65  |ntered on the te|
00006e20  72 6d 69 6e 61 6c 20 69  6e 20 72 65 73 70 6f 6e  |rminal in respon|
00006e30  73 65 20 74 6f 20 61 20  70 72 6f 6d 70 74 20 28  |se to a prompt (|
00006e40  74 68 69 73 20 77 69 6c  6c 0a 20 20 20 20 20 20  |this will.      |
00006e50  20 20 20 20 6e 6f 74 20  62 65 20 65 63 68 6f 65  |    not be echoe|
00006e60  64 3b 20 69 66 20 73 74  61 6e 64 61 72 64 20 65  |d; if standard e|
00006e70  72 72 6f 72 20 69 73 20  6e 6f 74 20 61 20 74 74  |rror is not a tt|
00006e80  79 2c 20 7a 69 70 20 77  69 6c 6c 20 65 78 69 74  |y, zip will exit|
00006e90  0a 20 20 20 20 20 20 20  20 20 20 77 69 74 68 20  |.          with |
00006ea0  61 6e 20 65 72 72 6f 72  29 2e 20 54 68 65 20 70  |an error). The p|
00006eb0  61 73 73 77 6f 72 64 20  70 72 6f 6d 70 74 20 69  |assword prompt i|
00006ec0  73 20 72 65 70 65 61 74  65 64 20 74 6f 20 73 61  |s repeated to sa|
00006ed0  76 65 20 74 68 65 0a 20  20 20 20 20 20 20 20 20  |ve the.         |
00006ee0  20 75 73 65 72 20 66 72  6f 6d 20 74 79 70 69 6e  | user from typin|
00006ef0  67 20 65 72 72 6f 72 73  2e 0a 0a 20 20 20 2d 45  |g errors...   -E|
00006f00  0a 0a 20 20 20 2d 2d 6c  6f 6e 67 6e 61 6d 65 73  |..   --longnames|
00006f10  0a 20 20 20 20 20 20 20  20 20 20 5b 4f 53 2f 32  |.          [OS/2|
00006f20  5d 20 55 73 65 20 74 68  65 20 2e 4c 4f 4e 47 4e  |] Use the .LONGN|
00006f30  41 4d 45 20 45 78 74 65  6e 64 65 64 20 41 74 74  |AME Extended Att|
00006f40  72 69 62 75 74 65 20 28  69 66 20 66 6f 75 6e 64  |ribute (if found|
00006f50  29 20 61 73 0a 20 20 20  20 20 20 20 20 20 20 66  |) as.          f|
00006f60  69 6c 65 6e 61 6d 65 2e  0a 0a 20 20 20 2d 66 0a  |ilename...   -f.|
00006f70  0a 20 20 20 2d 2d 66 72  65 73 68 65 6e 0a 20 20  |.   --freshen.  |
00006f80  20 20 20 20 20 20 20 20  52 65 70 6c 61 63 65 20  |        Replace |
00006f90  28 66 72 65 73 68 65 6e  29 20 61 6e 20 65 78 69  |(freshen) an exi|
00006fa0  73 74 69 6e 67 20 65 6e  74 72 79 20 69 6e 20 74  |sting entry in t|
00006fb0  68 65 20 7a 69 70 20 61  72 63 68 69 76 65 20 6f  |he zip archive o|
00006fc0  6e 6c 79 20 69 66 0a 20  20 20 20 20 20 20 20 20  |nly if.         |
00006fd0  20 69 74 20 68 61 73 20  62 65 65 6e 20 6d 6f 64  | it has been mod|
00006fe0  69 66 69 65 64 20 6d 6f  72 65 20 72 65 63 65 6e  |ified more recen|
00006ff0  74 6c 79 20 74 68 61 6e  20 74 68 65 20 76 65 72  |tly than the ver|
00007000  73 69 6f 6e 20 61 6c 72  65 61 64 79 20 69 6e 0a  |sion already in.|
00007010  20 20 20 20 20 20 20 20  20 20 74 68 65 20 7a 69  |          the zi|
00007020  70 20 61 72 63 68 69 76  65 3b 20 75 6e 6c 69 6b  |p archive; unlik|
00007030  65 20 74 68 65 20 75 70  64 61 74 65 20 6f 70 74  |e the update opt|
00007040  69 6f 6e 20 28 2d 75 29  20 74 68 69 73 20 77 69  |ion (-u) this wi|
00007050  6c 6c 20 6e 6f 74 0a 20  20 20 20 20 20 20 20 20  |ll not.         |
00007060  20 61 64 64 20 66 69 6c  65 73 20 74 68 61 74 20  | add files that |
00007070  61 72 65 20 6e 6f 74 20  61 6c 72 65 61 64 79 20  |are not already |
00007080  69 6e 20 74 68 65 20 7a  69 70 20 61 72 63 68 69  |in the zip archi|
00007090  76 65 2e 20 46 6f 72 20  65 78 61 6d 70 6c 65 3a  |ve. For example:|
000070a0  0a 0a 20 20 20 7a 69 70  20 2d 66 20 66 6f 6f 0a  |..   zip -f foo.|
000070b0  0a 20 20 20 54 68 69 73  20 63 6f 6d 6d 61 6e 64  |.   This command|
000070c0  20 73 68 6f 75 6c 64 20  62 65 20 72 75 6e 20 66  | should be run f|
000070d0  72 6f 6d 20 74 68 65 20  73 61 6d 65 20 64 69 72  |rom the same dir|
000070e0  65 63 74 6f 72 79 20 66  72 6f 6d 20 77 68 69 63  |ectory from whic|
000070f0  68 20 74 68 65 0a 20 20  20 20 20 20 20 20 20 20  |h the.          |
00007100  6f 72 69 67 69 6e 61 6c  0a 20 20 20 20 20 20 20  |original.       |
00007110  20 20 20 7a 69 70 20 63  6f 6d 6d 61 6e 64 20 77  |   zip command w|
00007120  61 73 20 72 75 6e 2c 20  73 69 6e 63 65 20 70 61  |as run, since pa|
00007130  74 68 73 20 73 74 6f 72  65 64 20 69 6e 20 7a 69  |ths stored in zi|
00007140  70 20 61 72 63 68 69 76  65 73 20 61 72 65 0a 20  |p archives are. |
00007150  20 20 20 20 20 20 20 20  20 61 6c 77 61 79 73 20  |         always |
00007160  72 65 6c 61 74 69 76 65  2e 0a 0a 20 20 20 4e 6f  |relative...   No|
00007170  74 65 20 74 68 61 74 20  74 68 65 20 74 69 6d 65  |te that the time|
00007180  7a 6f 6e 65 20 65 6e 76  69 72 6f 6e 6d 65 6e 74  |zone environment|
00007190  20 76 61 72 69 61 62 6c  65 20 54 5a 20 73 68 6f  | variable TZ sho|
000071a0  75 6c 64 20 62 65 20 73  65 74 20 61 63 63 6f 72  |uld be set accor|
000071b0  64 69 6e 67 0a 20 20 20  20 20 20 20 20 20 20 74  |ding.          t|
000071c0  6f 0a 20 20 20 20 20 20  20 20 20 20 74 68 65 20  |o.          the |
000071d0  6c 6f 63 61 6c 20 74 69  6d 65 7a 6f 6e 65 20 69  |local timezone i|
000071e0  6e 20 6f 72 64 65 72 20  66 6f 72 20 74 68 65 20  |n order for the |
000071f0  2d 66 2c 20 2d 75 20 61  6e 64 20 2d 6f 20 6f 70  |-f, -u and -o op|
00007200  74 69 6f 6e 73 20 74 6f  0a 20 20 20 20 20 20 20  |tions to.       |
00007210  20 20 20 77 6f 72 6b 20  63 6f 72 72 65 63 74 6c  |   work correctl|
00007220  79 2e 0a 0a 20 20 20 54  68 65 20 72 65 61 73 6f  |y...   The reaso|
00007230  6e 73 20 62 65 68 69 6e  64 20 74 68 69 73 20 61  |ns behind this a|
00007240  72 65 20 73 6f 6d 65 77  68 61 74 20 73 75 62 74  |re somewhat subt|
00007250  6c 65 20 62 75 74 20 68  61 76 65 20 74 6f 20 64  |le but have to d|
00007260  6f 20 77 69 74 68 20 74  68 65 0a 20 20 20 20 20  |o with the.     |
00007270  20 20 20 20 20 64 69 66  66 65 72 65 6e 63 65 73  |     differences|
00007280  0a 20 20 20 20 20 20 20  20 20 20 62 65 74 77 65  |.          betwe|
00007290  65 6e 20 74 68 65 20 55  6e 69 78 2d 66 6f 72 6d  |en the Unix-form|
000072a0  61 74 20 66 69 6c 65 20  74 69 6d 65 73 20 28 61  |at file times (a|
000072b0  6c 77 61 79 73 20 69 6e  20 47 4d 54 29 20 61 6e  |lways in GMT) an|
000072c0  64 20 6d 6f 73 74 20 6f  66 0a 20 20 20 20 20 20  |d most of.      |
000072d0  20 20 20 20 74 68 65 20  6f 74 68 65 72 20 6f 70  |    the other op|
000072e0  65 72 61 74 69 6e 67 20  73 79 73 74 65 6d 73 20  |erating systems |
000072f0  28 61 6c 77 61 79 73 20  6c 6f 63 61 6c 20 74 69  |(always local ti|
00007300  6d 65 29 20 61 6e 64 20  74 68 65 0a 20 20 20 20  |me) and the.    |
00007310  20 20 20 20 20 20 6e 65  63 65 73 73 69 74 79 20  |      necessity |
00007320  74 6f 20 63 6f 6d 70 61  72 65 20 74 68 65 20 74  |to compare the t|
00007330  77 6f 2e 20 41 20 74 79  70 69 63 61 6c 20 54 5a  |wo. A typical TZ|
00007340  20 76 61 6c 75 65 20 69  73 0a 20 20 20 20 20 20  | value is.      |
00007350  20 20 20 20 60 60 4d 45  54 2d 31 4d 45 53 54 27  |    ``MET-1MEST'|
00007360  27 20 28 4d 69 64 64 6c  65 20 45 75 72 6f 70 65  |' (Middle Europe|
00007370  61 6e 20 74 69 6d 65 20  77 69 74 68 20 61 75 74  |an time with aut|
00007380  6f 6d 61 74 69 63 20 61  64 6a 75 73 74 6d 65 6e  |omatic adjustmen|
00007390  74 0a 20 20 20 20 20 20  20 20 20 20 66 6f 72 20  |t.          for |
000073a0  60 60 73 75 6d 6d 65 72  74 69 6d 65 27 27 20 6f  |``summertime'' o|
000073b0  72 20 44 61 79 6c 69 67  68 74 20 53 61 76 69 6e  |r Daylight Savin|
000073c0  67 73 20 54 69 6d 65 29  2e 0a 0a 20 20 20 54 68  |gs Time)...   Th|
000073d0  65 20 66 6f 72 6d 61 74  20 69 73 20 54 54 54 68  |e format is TTTh|
000073e0  68 44 44 44 2c 20 77 68  65 72 65 20 54 54 54 20  |hDDD, where TTT |
000073f0  69 73 20 74 68 65 20 74  69 6d 65 20 7a 6f 6e 65  |is the time zone|
00007400  20 73 75 63 68 20 61 73  20 4d 45 54 2c 20 68 68  | such as MET, hh|
00007410  20 69 73 0a 20 20 20 20  20 20 20 20 20 20 74 68  | is.          th|
00007420  65 0a 20 20 20 20 20 20  20 20 20 20 64 69 66 66  |e.          diff|
00007430  65 72 65 6e 63 65 20 62  65 74 77 65 65 6e 20 47  |erence between G|
00007440  4d 54 20 61 6e 64 20 6c  6f 63 61 6c 20 74 69 6d  |MT and local tim|
00007450  65 20 73 75 63 68 20 61  73 20 2d 31 20 61 62 6f  |e such as -1 abo|
00007460  76 65 2c 20 61 6e 64 20  44 44 44 0a 20 20 20 20  |ve, and DDD.    |
00007470  20 20 20 20 20 20 69 73  20 74 68 65 20 74 69 6d  |      is the tim|
00007480  65 20 7a 6f 6e 65 20 77  68 65 6e 20 64 61 79 6c  |e zone when dayl|
00007490  69 67 68 74 20 73 61 76  69 6e 67 73 20 74 69 6d  |ight savings tim|
000074a0  65 20 69 73 20 69 6e 20  65 66 66 65 63 74 2e 20  |e is in effect. |
000074b0  4c 65 61 76 65 0a 20 20  20 20 20 20 20 20 20 20  |Leave.          |
000074c0  6f 66 66 20 74 68 65 20  44 44 44 20 69 66 20 74  |off the DDD if t|
000074d0  68 65 72 65 20 69 73 20  6e 6f 20 64 61 79 6c 69  |here is no dayli|
000074e0  67 68 74 20 73 61 76 69  6e 67 73 20 74 69 6d 65  |ght savings time|
000074f0  2e 20 46 6f 72 20 74 68  65 20 55 53 0a 20 20 20  |. For the US.   |
00007500  20 20 20 20 20 20 20 45  61 73 74 65 72 6e 20 74  |       Eastern t|
00007510  69 6d 65 20 7a 6f 6e 65  20 45 53 54 35 45 44 54  |ime zone EST5EDT|
00007520  2e 0a 0a 20 20 20 2d 46  0a 0a 20 20 20 2d 2d 66  |...   -F..   --f|
00007530  69 78 0a 0a 20 20 20 2d  46 46 0a 0a 20 20 20 2d  |ix..   -FF..   -|
00007540  2d 66 69 78 66 69 78 0a  20 20 20 20 20 20 20 20  |-fixfix.        |
00007550  20 20 46 69 78 20 74 68  65 20 7a 69 70 20 61 72  |  Fix the zip ar|
00007560  63 68 69 76 65 2e 20 54  68 65 20 2d 46 20 6f 70  |chive. The -F op|
00007570  74 69 6f 6e 20 63 61 6e  20 62 65 20 75 73 65 64  |tion can be used|
00007580  20 69 66 20 73 6f 6d 65  20 70 6f 72 74 69 6f 6e  | if some portion|
00007590  73 0a 20 20 20 20 20 20  20 20 20 20 6f 66 20 74  |s.          of t|
000075a0  68 65 20 61 72 63 68 69  76 65 20 61 72 65 20 6d  |he archive are m|
000075b0  69 73 73 69 6e 67 2c 20  62 75 74 20 72 65 71 75  |issing, but requ|
000075c0  69 72 65 73 20 61 20 72  65 61 73 6f 6e 61 62 6c  |ires a reasonabl|
000075d0  79 20 69 6e 74 61 63 74  0a 20 20 20 20 20 20 20  |y intact.       |
000075e0  20 20 20 63 65 6e 74 72  61 6c 20 64 69 72 65 63  |   central direc|
000075f0  74 6f 72 79 2e 20 54 68  65 20 69 6e 70 75 74 20  |tory. The input |
00007600  61 72 63 68 69 76 65 20  69 73 20 73 63 61 6e 6e  |archive is scann|
00007610  65 64 20 61 73 20 75 73  75 61 6c 2c 20 62 75 74  |ed as usual, but|
00007620  0a 20 20 20 20 20 20 20  20 20 20 7a 69 70 20 77  |.          zip w|
00007630  69 6c 6c 20 69 67 6e 6f  72 65 20 73 6f 6d 65 20  |ill ignore some |
00007640  70 72 6f 62 6c 65 6d 73  2e 20 54 68 65 20 72 65  |problems. The re|
00007650  73 75 6c 74 69 6e 67 20  61 72 63 68 69 76 65 20  |sulting archive |
00007660  73 68 6f 75 6c 64 20 62  65 0a 20 20 20 20 20 20  |should be.      |
00007670  20 20 20 20 76 61 6c 69  64 2c 20 62 75 74 20 61  |    valid, but a|
00007680  6e 79 20 69 6e 63 6f 6e  73 69 73 74 65 6e 74 20  |ny inconsistent |
00007690  65 6e 74 72 69 65 73 20  77 69 6c 6c 20 62 65 20  |entries will be |
000076a0  6c 65 66 74 20 6f 75 74  2e 0a 0a 20 20 20 57 68  |left out...   Wh|
000076b0  65 6e 20 64 6f 75 62 6c  65 64 20 61 73 20 69 6e  |en doubled as in|
000076c0  0a 20 20 20 20 20 20 20  20 20 20 2d 46 46 2c 20  |.          -FF, |
000076d0  74 68 65 20 61 72 63 68  69 76 65 20 69 73 20 73  |the archive is s|
000076e0  63 61 6e 6e 65 64 20 66  72 6f 6d 20 74 68 65 20  |canned from the |
000076f0  62 65 67 69 6e 6e 69 6e  67 20 61 6e 64 20 7a 69  |beginning and zi|
00007700  70 20 73 63 61 6e 73 0a  20 20 20 20 20 20 20 20  |p scans.        |
00007710  20 20 66 6f 72 20 73 70  65 63 69 61 6c 20 73 69  |  for special si|
00007720  67 6e 61 74 75 72 65 73  20 74 6f 20 69 64 65 6e  |gnatures to iden|
00007730  74 69 66 79 20 74 68 65  20 6c 69 6d 69 74 73 20  |tify the limits |
00007740  62 65 74 77 65 65 6e 20  74 68 65 0a 20 20 20 20  |between the.    |
00007750  20 20 20 20 20 20 61 72  63 68 69 76 65 20 6d 65  |      archive me|
00007760  6d 62 65 72 73 2e 20 54  68 65 20 73 69 6e 67 6c  |mbers. The singl|
00007770  65 20 2d 46 20 69 73 20  6d 6f 72 65 20 72 65 6c  |e -F is more rel|
00007780  69 61 62 6c 65 20 69 66  20 74 68 65 20 61 72 63  |iable if the arc|
00007790  68 69 76 65 0a 20 20 20  20 20 20 20 20 20 20 69  |hive.          i|
000077a0  73 20 6e 6f 74 20 74 6f  6f 20 6d 75 63 68 20 64  |s not too much d|
000077b0  61 6d 61 67 65 64 2c 20  73 6f 20 74 72 79 20 74  |amaged, so try t|
000077c0  68 69 73 20 6f 70 74 69  6f 6e 20 66 69 72 73 74  |his option first|
000077d0  2e 0a 0a 20 20 20 49 66  20 74 68 65 20 61 72 63  |...   If the arc|
000077e0  68 69 76 65 20 69 73 20  74 6f 6f 20 64 61 6d 61  |hive is too dama|
000077f0  67 65 64 20 6f 72 20 74  68 65 20 65 6e 64 20 68  |ged or the end h|
00007800  61 73 20 62 65 65 6e 20  74 72 75 6e 63 61 74 65  |as been truncate|
00007810  64 2c 20 79 6f 75 0a 20  20 20 20 20 20 20 20 20  |d, you.         |
00007820  20 6d 75 73 74 20 75 73  65 20 2d 46 46 2e 20 54  | must use -FF. T|
00007830  68 69 73 20 69 73 20 61  20 63 68 61 6e 67 65 20  |his is a change |
00007840  66 72 6f 6d 20 7a 69 70  20 32 2e 33 32 2c 20 77  |from zip 2.32, w|
00007850  68 65 72 65 20 74 68 65  20 2d 46 0a 20 20 20 20  |here the -F.    |
00007860  20 20 20 20 20 20 6f 70  74 69 6f 6e 20 69 73 20  |      option is |
00007870  61 62 6c 65 20 74 6f 20  72 65 61 64 20 61 20 74  |able to read a t|
00007880  72 75 6e 63 61 74 65 64  20 61 72 63 68 69 76 65  |runcated archive|
00007890  2e 20 54 68 65 20 2d 46  20 6f 70 74 69 6f 6e 20  |. The -F option |
000078a0  6e 6f 77 0a 20 20 20 20  20 20 20 20 20 20 6d 6f  |now.          mo|
000078b0  72 65 20 72 65 6c 69 61  62 6c 79 20 66 69 78 65  |re reliably fixe|
000078c0  73 20 61 72 63 68 69 76  65 73 20 77 69 74 68 20  |s archives with |
000078d0  6d 69 6e 6f 72 20 64 61  6d 61 67 65 20 61 6e 64  |minor damage and|
000078e0  20 74 68 65 20 2d 46 46  0a 20 20 20 20 20 20 20  | the -FF.       |
000078f0  20 20 20 6f 70 74 69 6f  6e 20 69 73 20 6e 65 65  |   option is nee|
00007900  64 65 64 20 74 6f 20 66  69 78 20 61 72 63 68 69  |ded to fix archi|
00007910  76 65 73 20 77 68 65 72  65 20 2d 46 20 6d 69 67  |ves where -F mig|
00007920  68 74 20 68 61 76 65 20  62 65 65 6e 0a 20 20 20  |ht have been.   |
00007930  20 20 20 20 20 20 20 73  75 66 66 69 63 69 65 6e  |       sufficien|
00007940  74 20 62 65 66 6f 72 65  2e 0a 0a 20 20 20 4e 65  |t before...   Ne|
00007950  69 74 68 65 72 20 6f 70  74 69 6f 6e 20 77 69 6c  |ither option wil|
00007960  6c 20 72 65 63 6f 76 65  72 20 61 72 63 68 69 76  |l recover archiv|
00007970  65 73 20 74 68 61 74 20  68 61 76 65 20 62 65 65  |es that have bee|
00007980  6e 20 69 6e 63 6f 72 72  65 63 74 6c 79 0a 20 20  |n incorrectly.  |
00007990  20 20 20 20 20 20 20 20  74 72 61 6e 73 66 65 72  |        transfer|
000079a0  72 65 64 20 69 6e 20 61  73 63 69 69 20 6d 6f 64  |red in ascii mod|
000079b0  65 20 69 6e 73 74 65 61  64 20 6f 66 20 62 69 6e  |e instead of bin|
000079c0  61 72 79 2e 20 41 66 74  65 72 20 74 68 65 20 72  |ary. After the r|
000079d0  65 70 61 69 72 2c 0a 20  20 20 20 20 20 20 20 20  |epair,.         |
000079e0  20 74 68 65 20 2d 74 20  6f 70 74 69 6f 6e 20 6f  | the -t option o|
000079f0  66 20 75 6e 7a 69 70 20  6d 61 79 20 73 68 6f 77  |f unzip may show|
00007a00  20 74 68 61 74 20 73 6f  6d 65 20 66 69 6c 65 73  | that some files|
00007a10  20 68 61 76 65 20 61 20  62 61 64 20 43 52 43 2e  | have a bad CRC.|
00007a20  0a 20 20 20 20 20 20 20  20 20 20 53 75 63 68 20  |.          Such |
00007a30  66 69 6c 65 73 20 63 61  6e 6e 6f 74 20 62 65 20  |files cannot be |
00007a40  72 65 63 6f 76 65 72 65  64 3b 20 79 6f 75 20 63  |recovered; you c|
00007a50  61 6e 20 72 65 6d 6f 76  65 20 74 68 65 6d 20 66  |an remove them f|
00007a60  72 6f 6d 20 74 68 65 0a  20 20 20 20 20 20 20 20  |rom the.        |
00007a70  20 20 61 72 63 68 69 76  65 20 75 73 69 6e 67 20  |  archive using |
00007a80  74 68 65 20 2d 64 20 6f  70 74 69 6f 6e 20 6f 66  |the -d option of|
00007a90  20 7a 69 70 2e 0a 0a 20  20 20 4e 6f 74 65 20 74  | zip...   Note t|
00007aa0  68 61 74 20 2d 46 46 20  6d 61 79 20 68 61 76 65  |hat -FF may have|
00007ab0  20 74 72 6f 75 62 6c 65  20 66 69 78 69 6e 67 20  | trouble fixing |
00007ac0  61 72 63 68 69 76 65 73  20 74 68 61 74 20 69 6e  |archives that in|
00007ad0  63 6c 75 64 65 20 61 6e  0a 20 20 20 20 20 20 20  |clude an.       |
00007ae0  20 20 20 65 6d 62 65 64  64 65 64 20 7a 69 70 20  |   embedded zip |
00007af0  61 72 63 68 69 76 65 20  74 68 61 74 20 77 61 73  |archive that was|
00007b00  20 73 74 6f 72 65 64 20  28 77 69 74 68 6f 75 74  | stored (without|
00007b10  20 63 6f 6d 70 72 65 73  73 69 6f 6e 29 20 69 6e  | compression) in|
00007b20  0a 20 20 20 20 20 20 20  20 20 20 74 68 65 20 61  |.          the a|
00007b30  72 63 68 69 76 65 20 61  6e 64 2c 20 64 65 70 65  |rchive and, depe|
00007b40  6e 64 69 6e 67 20 6f 6e  20 74 68 65 20 64 61 6d  |nding on the dam|
00007b50  61 67 65 2c 20 69 74 20  6d 61 79 20 66 69 6e 64  |age, it may find|
00007b60  20 74 68 65 0a 20 20 20  20 20 20 20 20 20 20 65  | the.          e|
00007b70  6e 74 72 69 65 73 20 69  6e 20 74 68 65 20 65 6d  |ntries in the em|
00007b80  62 65 64 64 65 64 20 61  72 63 68 69 76 65 20 72  |bedded archive r|
00007b90  61 74 68 65 72 20 74 68  61 6e 20 74 68 65 20 61  |ather than the a|
00007ba0  72 63 68 69 76 65 20 69  74 73 65 6c 66 2e 0a 20  |rchive itself.. |
00007bb0  20 20 20 20 20 20 20 20  20 54 72 79 20 2d 46 20  |         Try -F |
00007bc0  66 69 72 73 74 20 61 73  20 69 74 20 64 6f 65 73  |first as it does|
00007bd0  20 6e 6f 74 20 68 61 76  65 20 74 68 69 73 20 70  | not have this p|
00007be0  72 6f 62 6c 65 6d 2e 0a  0a 20 20 20 54 68 65 20  |roblem...   The |
00007bf0  66 6f 72 6d 61 74 20 6f  66 20 74 68 65 20 66 69  |format of the fi|
00007c00  78 20 63 6f 6d 6d 61 6e  64 73 20 68 61 76 65 20  |x commands have |
00007c10  63 68 61 6e 67 65 64 2e  20 46 6f 72 20 65 78 61  |changed. For exa|
00007c20  6d 70 6c 65 2c 20 74 6f  20 66 69 78 0a 20 20 20  |mple, to fix.   |
00007c30  20 20 20 20 20 20 20 74  68 65 20 64 61 6d 61 67  |       the damag|
00007c40  65 64 20 61 72 63 68 69  76 65 20 66 6f 6f 2e 7a  |ed archive foo.z|
00007c50  69 70 2c 0a 0a 20 20 20  7a 69 70 20 2d 46 20 66  |ip,..   zip -F f|
00007c60  6f 6f 20 2d 2d 6f 75 74  20 66 6f 6f 66 69 78 0a  |oo --out foofix.|
00007c70  0a 20 20 20 74 72 69 65  73 20 74 6f 20 72 65 61  |.   tries to rea|
00007c80  64 20 74 68 65 20 65 6e  74 72 69 65 73 20 6e 6f  |d the entries no|
00007c90  72 6d 61 6c 6c 79 2c 20  63 6f 70 79 69 6e 67 20  |rmally, copying |
00007ca0  67 6f 6f 64 20 65 6e 74  72 69 65 73 20 74 6f 20  |good entries to |
00007cb0  74 68 65 0a 20 20 20 20  20 20 20 20 20 20 6e 65  |the.          ne|
00007cc0  77 20 61 72 63 68 69 76  65 20 66 6f 6f 66 69 78  |w archive foofix|
00007cd0  2e 7a 69 70 2e 20 49 66  20 74 68 69 73 20 64 6f  |.zip. If this do|
00007ce0  65 73 6e 27 74 20 77 6f  72 6b 2c 20 61 73 20 77  |esn't work, as w|
00007cf0  68 65 6e 20 74 68 65 0a  20 20 20 20 20 20 20 20  |hen the.        |
00007d00  20 20 61 72 63 68 69 76  65 20 69 73 20 74 72 75  |  archive is tru|
00007d10  6e 63 61 74 65 64 2c 20  6f 72 20 69 66 20 73 6f  |ncated, or if so|
00007d20  6d 65 20 65 6e 74 72 69  65 73 20 79 6f 75 20 6b  |me entries you k|
00007d30  6e 6f 77 20 61 72 65 20  69 6e 20 74 68 65 0a 20  |now are in the. |
00007d40  20 20 20 20 20 20 20 20  20 61 72 63 68 69 76 65  |         archive|
00007d50  20 61 72 65 20 6d 69 73  73 65 64 2c 20 74 68 65  | are missed, the|
00007d60  6e 20 74 72 79 0a 0a 20  20 20 7a 69 70 20 2d 46  |n try..   zip -F|
00007d70  46 20 66 6f 6f 20 2d 2d  6f 75 74 20 66 6f 6f 66  |F foo --out foof|
00007d80  69 78 66 69 78 0a 0a 20  20 20 61 6e 64 20 63 6f  |ixfix..   and co|
00007d90  6d 70 61 72 65 20 74 68  65 20 72 65 73 75 6c 74  |mpare the result|
00007da0  69 6e 67 20 61 72 63 68  69 76 65 20 74 6f 20 74  |ing archive to t|
00007db0  68 65 20 61 72 63 68 69  76 65 20 63 72 65 61 74  |he archive creat|
00007dc0  65 64 20 62 79 20 2d 46  2e 20 54 68 65 0a 20 20  |ed by -F. The.  |
00007dd0  20 20 20 20 20 20 20 20  2d 46 46 20 6f 70 74 69  |        -FF opti|
00007de0  6f 6e 20 6d 61 79 20 63  72 65 61 74 65 20 61 6e  |on may create an|
00007df0  20 69 6e 63 6f 6e 73 69  73 74 65 6e 74 20 61 72  | inconsistent ar|
00007e00  63 68 69 76 65 2e 20 44  65 70 65 6e 64 69 6e 67  |chive. Depending|
00007e10  20 6f 6e 0a 20 20 20 20  20 20 20 20 20 20 77 68  | on.          wh|
00007e20  61 74 20 69 73 20 64 61  6d 61 67 65 64 2c 20 79  |at is damaged, y|
00007e30  6f 75 20 63 61 6e 20 74  68 65 6e 20 75 73 65 20  |ou can then use |
00007e40  74 68 65 20 2d 46 20 6f  70 74 69 6f 6e 20 74 6f  |the -F option to|
00007e50  20 66 69 78 20 74 68 61  74 0a 20 20 20 20 20 20  | fix that.      |
00007e60  20 20 20 20 61 72 63 68  69 76 65 2e 0a 0a 20 20  |    archive...  |
00007e70  20 41 20 73 70 6c 69 74  20 61 72 63 68 69 76 65  | A split archive|
00007e80  20 77 69 74 68 20 6d 69  73 73 69 6e 67 20 73 70  | with missing sp|
00007e90  6c 69 74 20 66 69 6c 65  73 20 63 61 6e 20 62 65  |lit files can be|
00007ea0  20 66 69 78 65 64 20 75  73 69 6e 67 0a 20 20 20  | fixed using.   |
00007eb0  20 20 20 20 20 20 20 2d  46 20 69 66 20 79 6f 75  |       -F if you|
00007ec0  20 68 61 76 65 20 74 68  65 20 6c 61 73 74 20 73  | have the last s|
00007ed0  70 6c 69 74 20 6f 66 20  74 68 65 20 61 72 63 68  |plit of the arch|
00007ee0  69 76 65 20 28 74 68 65  20 2e 7a 69 70 20 66 69  |ive (the .zip fi|
00007ef0  6c 65 29 2e 0a 20 20 20  20 20 20 20 20 20 20 49  |le)..          I|
00007f00  66 20 74 68 69 73 20 66  69 6c 65 20 69 73 20 6d  |f this file is m|
00007f10  69 73 73 69 6e 67 2c 20  79 6f 75 20 6d 75 73 74  |issing, you must|
00007f20  20 75 73 65 20 2d 46 46  20 74 6f 20 66 69 78 20  | use -FF to fix |
00007f30  74 68 65 20 61 72 63 68  69 76 65 2c 0a 20 20 20  |the archive,.   |
00007f40  20 20 20 20 20 20 20 77  68 69 63 68 20 77 69 6c  |       which wil|
00007f50  6c 20 70 72 6f 6d 70 74  20 79 6f 75 20 66 6f 72  |l prompt you for|
00007f60  20 74 68 65 20 73 70 6c  69 74 73 20 79 6f 75 20  | the splits you |
00007f70  68 61 76 65 2e 0a 0a 20  20 20 43 75 72 72 65 6e  |have...   Curren|
00007f80  74 6c 79 20 74 68 65 20  66 69 78 20 6f 70 74 69  |tly the fix opti|
00007f90  6f 6e 73 20 63 61 6e 27  74 20 72 65 63 6f 76 65  |ons can't recove|
00007fa0  72 20 65 6e 74 72 69 65  73 20 74 68 61 74 20 68  |r entries that h|
00007fb0  61 76 65 20 61 20 62 61  64 0a 20 20 20 20 20 20  |ave a bad.      |
00007fc0  20 20 20 20 63 68 65 63  6b 73 75 6d 0a 20 20 20  |    checksum.   |
00007fd0  20 20 20 20 20 20 20 6f  72 20 61 72 65 20 6f 74  |       or are ot|
00007fe0  68 65 72 77 69 73 65 20  64 61 6d 61 67 65 64 2e  |herwise damaged.|
00007ff0  0a 0a 20 20 20 2d 46 49  0a 0a 20 20 20 2d 2d 66  |..   -FI..   --f|
00008000  69 66 6f 0a 20 20 20 20  20 20 20 20 20 20 5b 55  |ifo.          [U|
00008010  6e 69 78 5d 20 4e 6f 72  6d 61 6c 6c 79 20 7a 69  |nix] Normally zi|
00008020  70 20 73 6b 69 70 73 20  72 65 61 64 69 6e 67 20  |p skips reading |
00008030  61 6e 79 20 46 49 46 4f  73 20 28 6e 61 6d 65 64  |any FIFOs (named|
00008040  20 70 69 70 65 73 29 0a  20 20 20 20 20 20 20 20  | pipes).        |
00008050  20 20 65 6e 63 6f 75 6e  74 65 72 65 64 2c 20 61  |  encountered, a|
00008060  73 20 7a 69 70 20 63 61  6e 20 68 61 6e 67 20 69  |s zip can hang i|
00008070  66 20 74 68 65 20 46 49  46 4f 20 69 73 20 6e 6f  |f the FIFO is no|
00008080  74 20 62 65 69 6e 67 20  66 65 64 2e 20 54 68 69  |t being fed. Thi|
00008090  73 0a 20 20 20 20 20 20  20 20 20 20 6f 70 74 69  |s.          opti|
000080a0  6f 6e 20 74 65 6c 6c 73  20 7a 69 70 20 74 6f 20  |on tells zip to |
000080b0  72 65 61 64 20 74 68 65  20 63 6f 6e 74 65 6e 74  |read the content|
000080c0  73 20 6f 66 20 61 6e 79  20 46 49 46 4f 20 69 74  |s of any FIFO it|
000080d0  20 66 69 6e 64 73 2e 0a  0a 20 20 20 2d 46 53 0a  | finds...   -FS.|
000080e0  0a 20 20 20 2d 2d 66 69  6c 65 73 79 6e 63 0a 20  |.   --filesync. |
000080f0  20 20 20 20 20 20 20 20  20 53 79 6e 63 68 72 6f  |         Synchro|
00008100  6e 69 7a 65 20 74 68 65  20 63 6f 6e 74 65 6e 74  |nize the content|
00008110  73 20 6f 66 20 61 6e 20  61 72 63 68 69 76 65 20  |s of an archive |
00008120  77 69 74 68 20 74 68 65  20 66 69 6c 65 73 20 6f  |with the files o|
00008130  6e 20 74 68 65 0a 20 20  20 20 20 20 20 20 20 20  |n the.          |
00008140  4f 53 2e 20 4e 6f 72 6d  61 6c 6c 79 20 77 68 65  |OS. Normally whe|
00008150  6e 20 61 6e 20 61 72 63  68 69 76 65 20 69 73 20  |n an archive is |
00008160  75 70 64 61 74 65 64 2c  20 6e 65 77 20 66 69 6c  |updated, new fil|
00008170  65 73 20 61 72 65 20 61  64 64 65 64 0a 20 20 20  |es are added.   |
00008180  20 20 20 20 20 20 20 61  6e 64 20 63 68 61 6e 67  |       and chang|
00008190  65 64 20 66 69 6c 65 73  20 61 72 65 20 75 70 64  |ed files are upd|
000081a0  61 74 65 64 20 62 75 74  20 66 69 6c 65 73 20 74  |ated but files t|
000081b0  68 61 74 20 6e 6f 20 6c  6f 6e 67 65 72 20 65 78  |hat no longer ex|
000081c0  69 73 74 20 6f 6e 0a 20  20 20 20 20 20 20 20 20  |ist on.         |
000081d0  20 74 68 65 20 4f 53 20  61 72 65 20 6e 6f 74 20  | the OS are not |
000081e0  64 65 6c 65 74 65 64 20  66 72 6f 6d 20 74 68 65  |deleted from the|
000081f0  20 61 72 63 68 69 76 65  2e 20 54 68 69 73 20 6f  | archive. This o|
00008200  70 74 69 6f 6e 20 65 6e  61 62 6c 65 73 20 61 0a  |ption enables a.|
00008210  20 20 20 20 20 20 20 20  20 20 6e 65 77 20 6d 6f  |          new mo|
00008220  64 65 20 74 68 61 74 20  63 68 65 63 6b 73 20 65  |de that checks e|
00008230  6e 74 72 69 65 73 20 69  6e 20 74 68 65 20 61 72  |ntries in the ar|
00008240  63 68 69 76 65 20 61 67  61 69 6e 73 74 20 74 68  |chive against th|
00008250  65 20 66 69 6c 65 0a 20  20 20 20 20 20 20 20 20  |e file.         |
00008260  20 73 79 73 74 65 6d 2e  20 49 66 20 74 68 65 20  | system. If the |
00008270  66 69 6c 65 20 74 69 6d  65 20 61 6e 64 20 66 69  |file time and fi|
00008280  6c 65 20 73 69 7a 65 20  6f 66 20 74 68 65 20 65  |le size of the e|
00008290  6e 74 72 79 20 6d 61 74  63 68 65 73 0a 20 20 20  |ntry matches.   |
000082a0  20 20 20 20 20 20 20 74  68 61 74 20 6f 66 20 74  |       that of t|
000082b0  68 65 20 4f 53 20 66 69  6c 65 2c 20 74 68 65 20  |he OS file, the |
000082c0  65 6e 74 72 79 20 69 73  20 63 6f 70 69 65 64 20  |entry is copied |
000082d0  66 72 6f 6d 20 74 68 65  20 6f 6c 64 20 61 72 63  |from the old arc|
000082e0  68 69 76 65 0a 20 20 20  20 20 20 20 20 20 20 69  |hive.          i|
000082f0  6e 73 74 65 61 64 20 6f  66 20 62 65 69 6e 67 20  |nstead of being |
00008300  72 65 61 64 20 66 72 6f  6d 20 74 68 65 20 66 69  |read from the fi|
00008310  6c 65 20 73 79 73 74 65  6d 20 61 6e 64 20 63 6f  |le system and co|
00008320  6d 70 72 65 73 73 65 64  2e 20 49 66 0a 20 20 20  |mpressed. If.   |
00008330  20 20 20 20 20 20 20 74  68 65 20 4f 53 20 66 69  |       the OS fi|
00008340  6c 65 20 68 61 73 20 63  68 61 6e 67 65 64 2c 20  |le has changed, |
00008350  74 68 65 20 65 6e 74 72  79 20 69 73 20 72 65 61  |the entry is rea|
00008360  64 20 61 6e 64 20 63 6f  6d 70 72 65 73 73 65 64  |d and compressed|
00008370  20 61 73 0a 20 20 20 20  20 20 20 20 20 20 75 73  | as.          us|
00008380  75 61 6c 2e 20 49 66 20  74 68 65 20 65 6e 74 72  |ual. If the entr|
00008390  79 20 69 6e 20 74 68 65  20 61 72 63 68 69 76 65  |y in the archive|
000083a0  20 64 6f 65 73 20 6e 6f  74 20 6d 61 74 63 68 20  | does not match |
000083b0  61 20 66 69 6c 65 20 6f  6e 20 74 68 65 0a 20 20  |a file on the.  |
000083c0  20 20 20 20 20 20 20 20  4f 53 2c 20 74 68 65 20  |        OS, the |
000083d0  65 6e 74 72 79 20 69 73  20 64 65 6c 65 74 65 64  |entry is deleted|
000083e0  2e 20 45 6e 61 62 6c 69  6e 67 20 74 68 69 73 20  |. Enabling this |
000083f0  6f 70 74 69 6f 6e 20 73  68 6f 75 6c 64 20 63 72  |option should cr|
00008400  65 61 74 65 0a 20 20 20  20 20 20 20 20 20 20 61  |eate.          a|
00008410  72 63 68 69 76 65 73 20  74 68 61 74 20 61 72 65  |rchives that are|
00008420  20 74 68 65 20 73 61 6d  65 20 61 73 20 6e 65 77  | the same as new|
00008430  20 61 72 63 68 69 76 65  73 2c 20 62 75 74 20 73  | archives, but s|
00008440  69 6e 63 65 20 65 78 69  73 74 69 6e 67 0a 20 20  |ince existing.  |
00008450  20 20 20 20 20 20 20 20  65 6e 74 72 69 65 73 20  |        entries |
00008460  61 72 65 20 63 6f 70 69  65 64 20 69 6e 73 74 65  |are copied inste|
00008470  61 64 20 6f 66 20 63 6f  6d 70 72 65 73 73 65 64  |ad of compressed|
00008480  2c 20 75 70 64 61 74 69  6e 67 20 61 6e 20 65 78  |, updating an ex|
00008490  69 73 74 69 6e 67 0a 20  20 20 20 20 20 20 20 20  |isting.         |
000084a0  20 61 72 63 68 69 76 65  20 77 69 74 68 20 2d 46  | archive with -F|
000084b0  53 20 63 61 6e 20 62 65  20 6d 75 63 68 20 66 61  |S can be much fa|
000084c0  73 74 65 72 20 74 68 61  6e 20 63 72 65 61 74 69  |ster than creati|
000084d0  6e 67 20 61 20 6e 65 77  0a 20 20 20 20 20 20 20  |ng a new.       |
000084e0  20 20 20 61 72 63 68 69  76 65 2e 20 41 6c 73 6f  |   archive. Also|
000084f0  20 63 6f 6e 73 69 64 65  72 20 75 73 69 6e 67 20  | consider using |
00008500  2d 75 20 66 6f 72 20 75  70 64 61 74 69 6e 67 20  |-u for updating |
00008510  61 6e 20 61 72 63 68 69  76 65 2e 0a 0a 20 20 20  |an archive...   |
00008520  46 6f 72 20 74 68 69 73  20 6f 70 74 69 6f 6e 20  |For this option |
00008530  74 6f 20 77 6f 72 6b 2c  20 74 68 65 20 61 72 63  |to work, the arc|
00008540  68 69 76 65 20 73 68 6f  75 6c 64 20 62 65 20 75  |hive should be u|
00008550  70 64 61 74 65 64 20 66  72 6f 6d 20 74 68 65 20  |pdated from the |
00008560  73 61 6d 65 0a 20 20 20  20 20 20 20 20 20 20 64  |same.          d|
00008570  69 72 65 63 74 6f 72 79  20 69 74 20 77 61 73 20  |irectory it was |
00008580  63 72 65 61 74 65 64 20  69 6e 20 73 6f 20 74 68  |created in so th|
00008590  65 20 72 65 6c 61 74 69  76 65 20 70 61 74 68 73  |e relative paths|
000085a0  20 6d 61 74 63 68 2e 20  49 66 20 66 65 77 0a 20  | match. If few. |
000085b0  20 20 20 20 20 20 20 20  20 66 69 6c 65 73 20 61  |         files a|
000085c0  72 65 20 62 65 69 6e 67  20 63 6f 70 69 65 64 20  |re being copied |
000085d0  66 72 6f 6d 20 74 68 65  20 6f 6c 64 20 61 72 63  |from the old arc|
000085e0  68 69 76 65 2c 20 69 74  20 6d 61 79 20 62 65 20  |hive, it may be |
000085f0  66 61 73 74 65 72 0a 20  20 20 20 20 20 20 20 20  |faster.         |
00008600  20 74 6f 20 63 72 65 61  74 65 20 61 20 6e 65 77  | to create a new|
00008610  20 61 72 63 68 69 76 65  20 69 6e 73 74 65 61 64  | archive instead|
00008620  2e 0a 0a 20 20 20 4e 6f  74 65 20 74 68 61 74 20  |...   Note that |
00008630  74 68 65 20 74 69 6d 65  7a 6f 6e 65 20 65 6e 76  |the timezone env|
00008640  69 72 6f 6e 6d 65 6e 74  20 76 61 72 69 61 62 6c  |ironment variabl|
00008650  65 20 54 5a 20 73 68 6f  75 6c 64 20 62 65 20 73  |e TZ should be s|
00008660  65 74 20 61 63 63 6f 72  64 69 6e 67 0a 20 20 20  |et according.   |
00008670  20 20 20 20 20 20 20 74  6f 0a 20 20 20 20 20 20  |       to.      |
00008680  20 20 20 20 74 68 65 20  6c 6f 63 61 6c 20 74 69  |    the local ti|
00008690  6d 65 7a 6f 6e 65 20 69  6e 20 6f 72 64 65 72 20  |mezone in order |
000086a0  66 6f 72 20 74 68 69 73  20 6f 70 74 69 6f 6e 20  |for this option |
000086b0  74 6f 20 77 6f 72 6b 20  63 6f 72 72 65 63 74 6c  |to work correctl|
000086c0  79 2e 0a 20 20 20 20 20  20 20 20 20 20 41 20 63  |y..          A c|
000086d0  68 61 6e 67 65 20 69 6e  20 74 69 6d 65 7a 6f 6e  |hange in timezon|
000086e0  65 20 73 69 6e 63 65 20  74 68 65 20 6f 72 69 67  |e since the orig|
000086f0  69 6e 61 6c 20 61 72 63  68 69 76 65 20 77 61 73  |inal archive was|
00008700  20 63 72 65 61 74 65 64  0a 20 20 20 20 20 20 20  | created.       |
00008710  20 20 20 63 6f 75 6c 64  20 72 65 73 75 6c 74 20  |   could result |
00008720  69 6e 20 6e 6f 20 74 69  6d 65 73 20 6d 61 74 63  |in no times matc|
00008730  68 69 6e 67 20 61 6e 64  20 72 65 63 6f 6d 70 72  |hing and recompr|
00008740  65 73 73 69 6f 6e 20 6f  66 20 61 6c 6c 0a 20 20  |ession of all.  |
00008750  20 20 20 20 20 20 20 20  66 69 6c 65 73 2e 0a 0a  |        files...|
00008760  20 20 20 54 68 69 73 20  6f 70 74 69 6f 6e 20 64  |   This option d|
00008770  65 6c 65 74 65 73 20 66  69 6c 65 73 20 66 72 6f  |eletes files fro|
00008780  6d 20 74 68 65 20 61 72  63 68 69 76 65 2e 20 49  |m the archive. I|
00008790  66 20 79 6f 75 20 6e 65  65 64 20 74 6f 20 70 72  |f you need to pr|
000087a0  65 73 65 72 76 65 0a 20  20 20 20 20 20 20 20 20  |eserve.         |
000087b0  20 74 68 65 20 6f 72 69  67 69 6e 61 6c 20 61 72  | the original ar|
000087c0  63 68 69 76 65 2c 20 6d  61 6b 65 20 61 20 63 6f  |chive, make a co|
000087d0  70 79 20 6f 66 20 74 68  65 20 61 72 63 68 69 76  |py of the archiv|
000087e0  65 20 66 69 72 73 74 20  6f 72 20 75 73 65 0a 20  |e first or use. |
000087f0  20 20 20 20 20 20 20 20  20 74 68 65 20 2d 2d 6f  |         the --o|
00008800  75 74 20 6f 70 74 69 6f  6e 20 74 6f 20 6f 75 74  |ut option to out|
00008810  70 75 74 20 74 68 65 20  75 70 64 61 74 65 64 20  |put the updated |
00008820  61 72 63 68 69 76 65 20  74 6f 20 61 20 6e 65 77  |archive to a new|
00008830  20 66 69 6c 65 2e 0a 20  20 20 20 20 20 20 20 20  | file..         |
00008840  20 45 76 65 6e 20 74 68  6f 75 67 68 20 69 74 20  | Even though it |
00008850  6d 61 79 20 62 65 20 73  6c 6f 77 65 72 2c 20 63  |may be slower, c|
00008860  72 65 61 74 69 6e 67 20  61 20 6e 65 77 20 61 72  |reating a new ar|
00008870  63 68 69 76 65 20 77 69  74 68 20 61 20 6e 65 77  |chive with a new|
00008880  0a 20 20 20 20 20 20 20  20 20 20 61 72 63 68 69  |.          archi|
00008890  76 65 20 6e 61 6d 65 20  69 73 20 73 61 66 65 72  |ve name is safer|
000088a0  2c 20 61 76 6f 69 64 73  20 6d 69 73 6d 61 74 63  |, avoids mismatc|
000088b0  68 65 73 20 62 65 74 77  65 65 6e 20 61 72 63 68  |hes between arch|
000088c0  69 76 65 20 61 6e 64 20  4f 53 0a 20 20 20 20 20  |ive and OS.     |
000088d0  20 20 20 20 20 70 61 74  68 73 2c 20 61 6e 64 20  |     paths, and |
000088e0  69 73 20 70 72 65 66 65  72 72 65 64 2e 0a 0a 20  |is preferred... |
000088f0  20 20 2d 67 0a 0a 20 20  20 2d 2d 67 72 6f 77 0a  |  -g..   --grow.|
00008900  20 20 20 20 20 20 20 20  20 20 47 72 6f 77 20 28  |          Grow (|
00008910  61 70 70 65 6e 64 20 74  6f 29 20 74 68 65 20 73  |append to) the s|
00008920  70 65 63 69 66 69 65 64  20 7a 69 70 20 61 72 63  |pecified zip arc|
00008930  68 69 76 65 2c 20 69 6e  73 74 65 61 64 20 6f 66  |hive, instead of|
00008940  20 63 72 65 61 74 69 6e  67 0a 20 20 20 20 20 20  | creating.      |
00008950  20 20 20 20 61 20 6e 65  77 20 6f 6e 65 2e 20 49  |    a new one. I|
00008960  66 20 74 68 69 73 20 6f  70 65 72 61 74 69 6f 6e  |f this operation|
00008970  20 66 61 69 6c 73 2c 20  7a 69 70 20 61 74 74 65  | fails, zip atte|
00008980  6d 70 74 73 20 74 6f 20  72 65 73 74 6f 72 65 20  |mpts to restore |
00008990  74 68 65 0a 20 20 20 20  20 20 20 20 20 20 61 72  |the.          ar|
000089a0  63 68 69 76 65 20 74 6f  20 69 74 73 20 6f 72 69  |chive to its ori|
000089b0  67 69 6e 61 6c 20 73 74  61 74 65 2e 20 49 66 20  |ginal state. If |
000089c0  74 68 65 20 72 65 73 74  6f 72 61 74 69 6f 6e 20  |the restoration |
000089d0  66 61 69 6c 73 2c 20 74  68 65 0a 20 20 20 20 20  |fails, the.     |
000089e0  20 20 20 20 20 61 72 63  68 69 76 65 20 6d 69 67  |     archive mig|
000089f0  68 74 20 62 65 63 6f 6d  65 20 63 6f 72 72 75 70  |ht become corrup|
00008a00  74 65 64 2e 20 54 68 69  73 20 6f 70 74 69 6f 6e  |ted. This option|
00008a10  20 69 73 20 69 67 6e 6f  72 65 64 20 77 68 65 6e  | is ignored when|
00008a20  0a 20 20 20 20 20 20 20  20 20 20 74 68 65 72 65  |.          there|
00008a30  27 73 20 6e 6f 20 65 78  69 73 74 69 6e 67 20 61  |'s no existing a|
00008a40  72 63 68 69 76 65 20 6f  72 20 77 68 65 6e 20 61  |rchive or when a|
00008a50  74 20 6c 65 61 73 74 20  6f 6e 65 20 61 72 63 68  |t least one arch|
00008a60  69 76 65 20 6d 65 6d 62  65 72 0a 20 20 20 20 20  |ive member.     |
00008a70  20 20 20 20 20 6d 75 73  74 20 62 65 20 75 70 64  |     must be upd|
00008a80  61 74 65 64 20 6f 72 20  64 65 6c 65 74 65 64 2e  |ated or deleted.|
00008a90  0a 0a 20 20 20 2d 68 0a  0a 20 20 20 2d 3f 0a 0a  |..   -h..   -?..|
00008aa0  20 20 20 2d 2d 68 65 6c  70 0a 20 20 20 20 20 20  |   --help.      |
00008ab0  20 20 20 20 44 69 73 70  6c 61 79 20 74 68 65 20  |    Display the |
00008ac0  7a 69 70 20 68 65 6c 70  20 69 6e 66 6f 72 6d 61  |zip help informa|
00008ad0  74 69 6f 6e 20 28 74 68  69 73 20 61 6c 73 6f 20  |tion (this also |
00008ae0  61 70 70 65 61 72 73 20  69 66 20 7a 69 70 20 69  |appears if zip i|
00008af0  73 0a 20 20 20 20 20 20  20 20 20 20 72 75 6e 20  |s.          run |
00008b00  77 69 74 68 20 6e 6f 20  61 72 67 75 6d 65 6e 74  |with no argument|
00008b10  73 29 2e 0a 0a 20 20 20  2d 68 32 0a 0a 20 20 20  |s)...   -h2..   |
00008b20  2d 2d 6d 6f 72 65 2d 68  65 6c 70 0a 20 20 20 20  |--more-help.    |
00008b30  20 20 20 20 20 20 44 69  73 70 6c 61 79 20 65 78  |      Display ex|
00008b40  74 65 6e 64 65 64 20 68  65 6c 70 20 69 6e 63 6c  |tended help incl|
00008b50  75 64 69 6e 67 20 6d 6f  72 65 20 6f 6e 20 63 6f  |uding more on co|
00008b60  6d 6d 61 6e 64 20 6c 69  6e 65 20 66 6f 72 6d 61  |mmand line forma|
00008b70  74 2c 0a 20 20 20 20 20  20 20 20 20 20 70 61 74  |t,.          pat|
00008b80  74 65 72 6e 20 6d 61 74  63 68 69 6e 67 2c 20 61  |tern matching, a|
00008b90  6e 64 20 6d 6f 72 65 20  6f 62 73 63 75 72 65 20  |nd more obscure |
00008ba0  6f 70 74 69 6f 6e 73 2e  0a 0a 20 20 20 2d 69 20  |options...   -i |
00008bb0  66 69 6c 65 73 0a 0a 20  20 20 2d 2d 69 6e 63 6c  |files..   --incl|
00008bc0  75 64 65 20 66 69 6c 65  73 0a 20 20 20 20 20 20  |ude files.      |
00008bd0  20 20 20 20 49 6e 63 6c  75 64 65 20 6f 6e 6c 79  |    Include only|
00008be0  20 74 68 65 20 73 70 65  63 69 66 69 65 64 20 66  | the specified f|
00008bf0  69 6c 65 73 2c 20 61 73  20 69 6e 3a 0a 0a 20 20  |iles, as in:..  |
00008c00  20 7a 69 70 20 2d 72 20  66 6f 6f 20 2e 20 2d 69  | zip -r foo . -i|
00008c10  20 5c 2a 2e 63 0a 0a 20  20 20 77 68 69 63 68 20  | \*.c..   which |
00008c20  77 69 6c 6c 20 69 6e 63  6c 75 64 65 20 6f 6e 6c  |will include onl|
00008c30  79 20 74 68 65 20 66 69  6c 65 73 20 74 68 61 74  |y the files that|
00008c40  20 65 6e 64 20 69 6e 0a  20 20 20 20 20 20 20 20  | end in.        |
00008c50  20 20 2e 63 20 69 6e 20  74 68 65 20 63 75 72 72  |  .c in the curr|
00008c60  65 6e 74 20 64 69 72 65  63 74 6f 72 79 20 61 6e  |ent directory an|
00008c70  64 20 69 74 73 20 73 75  62 64 69 72 65 63 74 6f  |d its subdirecto|
00008c80  72 69 65 73 2e 20 28 4e  6f 74 65 20 66 6f 72 0a  |ries. (Note for.|
00008c90  20 20 20 20 20 20 20 20  20 20 50 4b 5a 49 50 20  |          PKZIP |
00008ca0  75 73 65 72 73 3a 20 74  68 65 20 65 71 75 69 76  |users: the equiv|
00008cb0  61 6c 65 6e 74 20 63 6f  6d 6d 61 6e 64 20 69 73  |alent command is|
00008cc0  0a 0a 20 20 20 70 6b 7a  69 70 20 2d 72 50 20 66  |..   pkzip -rP f|
00008cd0  6f 6f 20 2a 2e 63 0a 0a  20 20 20 50 4b 5a 49 50  |oo *.c..   PKZIP|
00008ce0  20 64 6f 65 73 20 6e 6f  74 20 61 6c 6c 6f 77 20  | does not allow |
00008cf0  72 65 63 75 72 73 69 6f  6e 20 69 6e 20 64 69 72  |recursion in dir|
00008d00  65 63 74 6f 72 69 65 73  20 6f 74 68 65 72 20 74  |ectories other t|
00008d10  68 61 6e 20 74 68 65 20  63 75 72 72 65 6e 74 0a  |han the current.|
00008d20  20 20 20 20 20 20 20 20  20 20 6f 6e 65 2e 29 0a  |          one.).|
00008d30  20 20 20 20 20 20 20 20  20 20 54 68 65 20 62 61  |          The ba|
00008d40  63 6b 73 6c 61 73 68 20  61 76 6f 69 64 73 20 74  |ckslash avoids t|
00008d50  68 65 20 73 68 65 6c 6c  20 66 69 6c 65 6e 61 6d  |he shell filenam|
00008d60  65 20 73 75 62 73 74 69  74 75 74 69 6f 6e 2c 20  |e substitution, |
00008d70  73 6f 20 74 68 61 74 0a  20 20 20 20 20 20 20 20  |so that.        |
00008d80  20 20 74 68 65 20 6e 61  6d 65 20 6d 61 74 63 68  |  the name match|
00008d90  69 6e 67 20 69 73 20 70  65 72 66 6f 72 6d 65 64  |ing is performed|
00008da0  20 62 79 20 7a 69 70 20  61 74 20 61 6c 6c 20 64  | by zip at all d|
00008db0  69 72 65 63 74 6f 72 79  20 6c 65 76 65 6c 73 2e  |irectory levels.|
00008dc0  0a 20 20 20 20 20 20 20  20 20 20 5b 54 68 69 73  |.          [This|
00008dd0  20 69 73 20 66 6f 72 20  55 6e 69 78 20 61 6e 64  | is for Unix and|
00008de0  20 6f 74 68 65 72 20 73  79 73 74 65 6d 73 20 77  | other systems w|
00008df0  68 65 72 65 20 5c 20 65  73 63 61 70 65 73 20 74  |here \ escapes t|
00008e00  68 65 20 6e 65 78 74 0a  20 20 20 20 20 20 20 20  |he next.        |
00008e10  20 20 63 68 61 72 61 63  74 65 72 2e 20 46 6f 72  |  character. For|
00008e20  20 6f 74 68 65 72 20 73  79 73 74 65 6d 73 20 77  | other systems w|
00008e30  68 65 72 65 20 74 68 65  20 73 68 65 6c 6c 20 64  |here the shell d|
00008e40  6f 65 73 20 6e 6f 74 20  70 72 6f 63 65 73 73 20  |oes not process |
00008e50  2a 0a 20 20 20 20 20 20  20 20 20 20 64 6f 20 6e  |*.          do n|
00008e60  6f 74 20 75 73 65 20 5c  20 61 6e 64 20 74 68 65  |ot use \ and the|
00008e70  20 61 62 6f 76 65 20 69  73 0a 0a 20 20 20 7a 69  | above is..   zi|
00008e80  70 20 2d 72 20 66 6f 6f  20 2e 20 2d 69 20 2a 2e  |p -r foo . -i *.|
00008e90  63 0a 0a 20 20 20 45 78  61 6d 70 6c 65 73 20 61  |c..   Examples a|
00008ea0  72 65 20 66 6f 72 20 55  6e 69 78 20 75 6e 6c 65  |re for Unix unle|
00008eb0  73 73 20 6f 74 68 65 72  77 69 73 65 20 73 70 65  |ss otherwise spe|
00008ec0  63 69 66 69 65 64 2e 5d  20 53 6f 20 74 6f 20 69  |cified.] So to i|
00008ed0  6e 63 6c 75 64 65 20 64  69 72 2c 0a 20 20 20 20  |nclude dir,.    |
00008ee0  20 20 20 20 20 20 61 20  64 69 72 65 63 74 6f 72  |      a director|
00008ef0  79 20 64 69 72 65 63 74  6c 79 20 75 6e 64 65 72  |y directly under|
00008f00  20 74 68 65 20 63 75 72  72 65 6e 74 20 64 69 72  | the current dir|
00008f10  65 63 74 6f 72 79 2c 20  75 73 65 0a 0a 20 20 20  |ectory, use..   |
00008f20  7a 69 70 20 2d 72 20 66  6f 6f 20 2e 20 2d 69 20  |zip -r foo . -i |
00008f30  64 69 72 2f 5c 2a 0a 0a  20 20 20 6f 72 0a 0a 20  |dir/\*..   or.. |
00008f40  20 20 7a 69 70 20 2d 72  20 66 6f 6f 20 2e 20 2d  |  zip -r foo . -|
00008f50  69 20 22 64 69 72 2f 2a  22 0a 0a 20 20 20 74 6f  |i "dir/*"..   to|
00008f60  20 6d 61 74 63 68 20 70  61 74 68 73 20 73 75 63  | match paths suc|
00008f70  68 20 61 73 20 64 69 72  2f 61 20 61 6e 64 20 64  |h as dir/a and d|
00008f80  69 72 2f 62 2f 66 69 6c  65 2e 63 20 5b 6f 6e 0a  |ir/b/file.c [on.|
00008f90  20 20 20 20 20 20 20 20  20 20 70 6f 72 74 73 20  |          ports |
00008fa0  77 69 74 68 6f 75 74 20  77 69 6c 64 63 61 72 64  |without wildcard|
00008fb0  20 65 78 70 61 6e 73 69  6f 6e 20 69 6e 20 74 68  | expansion in th|
00008fc0  65 20 73 68 65 6c 6c 20  73 75 63 68 20 61 73 20  |e shell such as |
00008fd0  4d 53 44 4f 53 20 61 6e  64 0a 20 20 20 20 20 20  |MSDOS and.      |
00008fe0  20 20 20 20 57 69 6e 64  6f 77 73 0a 0a 20 20 20  |    Windows..   |
00008ff0  7a 69 70 20 2d 72 20 66  6f 6f 20 2e 20 2d 69 20  |zip -r foo . -i |
00009000  64 69 72 2f 2a 0a 0a 20  20 20 69 73 20 75 73 65  |dir/*..   is use|
00009010  64 2e 5d 20 4e 6f 74 65  20 74 68 61 74 20 63 75  |d.] Note that cu|
00009020  72 72 65 6e 74 6c 79 20  74 68 65 20 74 72 61 69  |rrently the trai|
00009030  6c 69 6e 67 20 2f 20 69  73 20 6e 65 65 64 65 64  |ling / is needed|
00009040  0a 20 20 20 20 20 20 20  20 20 20 66 6f 72 20 64  |.          for d|
00009050  69 72 65 63 74 6f 72 69  65 73 20 28 61 73 20 69  |irectories (as i|
00009060  6e 0a 0a 20 20 20 7a 69  70 20 2d 72 20 66 6f 6f  |n..   zip -r foo|
00009070  20 2e 20 2d 69 20 64 69  72 2f 0a 0a 20 20 20 74  | . -i dir/..   t|
00009080  6f 20 69 6e 63 6c 75 64  65 20 64 69 72 65 63 74  |o include direct|
00009090  6f 72 79 20 64 69 72 29  2e 0a 0a 20 20 20 54 68  |ory dir)...   Th|
000090a0  65 20 6c 6f 6e 67 20 6f  70 74 69 6f 6e 20 66 6f  |e long option fo|
000090b0  72 6d 20 6f 66 20 74 68  65 20 66 69 72 73 74 20  |rm of the first |
000090c0  65 78 61 6d 70 6c 65 20  69 73 0a 0a 20 20 20 7a  |example is..   z|
000090d0  69 70 20 2d 72 20 66 6f  6f 20 2e 20 2d 2d 69 6e  |ip -r foo . --in|
000090e0  63 6c 75 64 65 20 5c 2a  2e 63 0a 0a 20 20 20 61  |clude \*.c..   a|
000090f0  6e 64 20 64 6f 65 73 20  74 68 65 20 73 61 6d 65  |nd does the same|
00009100  20 74 68 69 6e 67 20 61  73 20 74 68 65 20 73 68  | thing as the sh|
00009110  6f 72 74 20 6f 70 74 69  6f 6e 20 66 6f 72 6d 2e  |ort option form.|
00009120  0a 0a 20 20 20 54 68 6f  75 67 68 20 74 68 65 20  |..   Though the |
00009130  63 6f 6d 6d 61 6e 64 20  73 79 6e 74 61 78 20 75  |command syntax u|
00009140  73 65 64 20 74 6f 20 72  65 71 75 69 72 65 20 2d  |sed to require -|
00009150  69 20 61 74 0a 20 20 20  20 20 20 20 20 20 20 74  |i at.          t|
00009160  68 65 20 65 6e 64 20 6f  66 20 74 68 65 20 63 6f  |he end of the co|
00009170  6d 6d 61 6e 64 20 6c 69  6e 65 2c 20 74 68 69 73  |mmand line, this|
00009180  20 76 65 72 73 69 6f 6e  20 61 63 74 75 61 6c 6c  | version actuall|
00009190  79 20 61 6c 6c 6f 77 73  20 2d 69 0a 20 20 20 20  |y allows -i.    |
000091a0  20 20 20 20 20 20 28 6f  72 20 2d 2d 69 6e 63 6c  |      (or --incl|
000091b0  75 64 65 29 20 61 6e 79  77 68 65 72 65 2e 20 54  |ude) anywhere. T|
000091c0  68 65 20 6c 69 73 74 20  6f 66 20 66 69 6c 65 73  |he list of files|
000091d0  20 74 65 72 6d 69 6e 61  74 65 73 20 61 74 20 74  | terminates at t|
000091e0  68 65 0a 20 20 20 20 20  20 20 20 20 20 6e 65 78  |he.          nex|
000091f0  74 20 61 72 67 75 6d 65  6e 74 20 73 74 61 72 74  |t argument start|
00009200  69 6e 67 20 77 69 74 68  20 2d 2c 20 74 68 65 20  |ing with -, the |
00009210  65 6e 64 20 6f 66 20 74  68 65 20 63 6f 6d 6d 61  |end of the comma|
00009220  6e 64 20 6c 69 6e 65 2c  20 6f 72 0a 20 20 20 20  |nd line, or.    |
00009230  20 20 20 20 20 20 74 68  65 20 6c 69 73 74 20 74  |      the list t|
00009240  65 72 6d 69 6e 61 74 6f  72 20 40 20 28 61 6e 20  |erminator @ (an |
00009250  61 72 67 75 6d 65 6e 74  20 74 68 61 74 20 69 73  |argument that is|
00009260  20 6a 75 73 74 20 40 29  2e 20 53 6f 20 74 68 65  | just @). So the|
00009270  0a 20 20 20 20 20 20 20  20 20 20 61 62 6f 76 65  |.          above|
00009280  20 63 61 6e 20 62 65 20  67 69 76 65 6e 20 61 73  | can be given as|
00009290  0a 0a 20 20 20 7a 69 70  20 2d 69 20 5c 2a 2e 63  |..   zip -i \*.c|
000092a0  20 40 20 2d 72 20 66 6f  6f 20 2e 0a 0a 20 20 20  | @ -r foo ...   |
000092b0  66 6f 72 20 65 78 61 6d  70 6c 65 2e 20 54 68 65  |for example. The|
000092c0  72 65 20 6d 75 73 74 20  62 65 20 61 20 73 70 61  |re must be a spa|
000092d0  63 65 20 62 65 74 77 65  65 6e 0a 20 20 20 20 20  |ce between.     |
000092e0  20 20 20 20 20 74 68 65  20 6f 70 74 69 6f 6e 20  |     the option |
000092f0  61 6e 64 20 74 68 65 20  66 69 72 73 74 20 66 69  |and the first fi|
00009300  6c 65 20 6f 66 20 61 20  6c 69 73 74 2e 20 46 6f  |le of a list. Fo|
00009310  72 20 6a 75 73 74 20 6f  6e 65 20 66 69 6c 65 20  |r just one file |
00009320  79 6f 75 0a 20 20 20 20  20 20 20 20 20 20 63 61  |you.          ca|
00009330  6e 20 75 73 65 20 74 68  65 20 73 69 6e 67 6c 65  |n use the single|
00009340  20 76 61 6c 75 65 20 66  6f 72 6d 0a 0a 20 20 20  | value form..   |
00009350  7a 69 70 20 2d 69 5c 2a  2e 63 20 2d 72 20 66 6f  |zip -i\*.c -r fo|
00009360  6f 20 2e 0a 0a 20 20 20  28 6e 6f 20 73 70 61 63  |o ...   (no spac|
00009370  65 20 62 65 74 77 65 65  6e 20 6f 70 74 69 6f 6e  |e between option|
00009380  20 61 6e 64 20 76 61 6c  75 65 29 20 6f 72 0a 0a  | and value) or..|
00009390  20 20 20 7a 69 70 20 2d  2d 69 6e 63 6c 75 64 65  |   zip --include|
000093a0  3d 5c 2a 2e 63 20 2d 72  20 66 6f 6f 20 2e 0a 0a  |=\*.c -r foo ...|
000093b0  20 20 20 61 73 20 61 64  64 69 74 69 6f 6e 61 6c  |   as additional|
000093c0  20 65 78 61 6d 70 6c 65  73 2e 20 54 68 65 20 73  | examples. The s|
000093d0  69 6e 67 6c 65 20 76 61  6c 75 65 20 66 6f 72 6d  |ingle value form|
000093e0  73 20 61 72 65 0a 20 20  20 20 20 20 20 20 20 20  |s are.          |
000093f0  6e 6f 74 20 72 65 63 6f  6d 6d 65 6e 64 65 64 20  |not recommended |
00009400  62 65 63 61 75 73 65 20  74 68 65 79 20 63 61 6e  |because they can|
00009410  20 62 65 20 63 6f 6e 66  75 73 69 6e 67 20 61 6e  | be confusing an|
00009420  64 2c 20 69 6e 0a 20 20  20 20 20 20 20 20 20 20  |d, in.          |
00009430  70 61 72 74 69 63 75 6c  61 72 2c 20 74 68 65 20  |particular, the |
00009440  2d 69 66 69 6c 65 20 66  6f 72 6d 61 74 20 63 61  |-ifile format ca|
00009450  6e 20 63 61 75 73 65 20  70 72 6f 62 6c 65 6d 73  |n cause problems|
00009460  20 69 66 20 74 68 65 20  66 69 72 73 74 0a 20 20  | if the first.  |
00009470  20 20 20 20 20 20 20 20  6c 65 74 74 65 72 20 6f  |        letter o|
00009480  66 20 66 69 6c 65 20 63  6f 6d 62 69 6e 65 73 20  |f file combines |
00009490  77 69 74 68 20 69 20 74  6f 20 66 6f 72 6d 20 61  |with i to form a|
000094a0  20 74 77 6f 2d 6c 65 74  74 65 72 20 6f 70 74 69  | two-letter opti|
000094b0  6f 6e 0a 20 20 20 20 20  20 20 20 20 20 73 74 61  |on.          sta|
000094c0  72 74 69 6e 67 20 77 69  74 68 20 69 2e 20 55 73  |rting with i. Us|
000094d0  65 20 2d 73 63 20 74 6f  20 73 65 65 20 68 6f 77  |e -sc to see how|
000094e0  20 79 6f 75 72 20 63 6f  6d 6d 61 6e 64 20 6c 69  | your command li|
000094f0  6e 65 20 77 69 6c 6c 20  62 65 0a 20 20 20 20 20  |ne will be.     |
00009500  20 20 20 20 20 70 61 72  73 65 64 2e 0a 0a 20 20  |     parsed...  |
00009510  20 41 6c 73 6f 20 70 6f  73 73 69 62 6c 65 3a 0a  | Also possible:.|
00009520  0a 20 20 20 7a 69 70 20  2d 72 20 66 6f 6f 20 2e  |.   zip -r foo .|
00009530  20 2d 69 40 69 6e 63 6c  75 64 65 2e 6c 73 74 0a  | -i@include.lst.|
00009540  0a 20 20 20 77 68 69 63  68 20 77 69 6c 6c 20 6f  |.   which will o|
00009550  6e 6c 79 20 69 6e 63 6c  75 64 65 20 74 68 65 20  |nly include the |
00009560  66 69 6c 65 73 20 69 6e  20 74 68 65 20 63 75 72  |files in the cur|
00009570  72 65 6e 74 20 64 69 72  65 63 74 6f 72 79 20 61  |rent directory a|
00009580  6e 64 20 69 74 73 0a 20  20 20 20 20 20 20 20 20  |nd its.         |
00009590  20 73 75 62 64 69 72 65  63 74 6f 72 69 65 73 20  | subdirectories |
000095a0  74 68 61 74 20 6d 61 74  63 68 20 74 68 65 20 70  |that match the p|
000095b0  61 74 74 65 72 6e 73 20  69 6e 20 74 68 65 20 66  |atterns in the f|
000095c0  69 6c 65 20 69 6e 63 6c  75 64 65 2e 6c 73 74 2e  |ile include.lst.|
000095d0  0a 0a 20 20 20 46 69 6c  65 73 20 74 6f 20 2d 69  |..   Files to -i|
000095e0  20 61 6e 64 20 2d 78 20  61 72 65 20 70 61 74 74  | and -x are patt|
000095f0  65 72 6e 73 20 6d 61 74  63 68 69 6e 67 20 69 6e  |erns matching in|
00009600  74 65 72 6e 61 6c 20 61  72 63 68 69 76 65 20 70  |ternal archive p|
00009610  61 74 68 73 2e 20 53 65  65 0a 20 20 20 20 20 20  |aths. See.      |
00009620  20 20 20 20 2d 52 20 66  6f 72 20 6d 6f 72 65 20  |    -R for more |
00009630  6f 6e 20 70 61 74 74 65  72 6e 73 2e 0a 0a 20 20  |on patterns...  |
00009640  20 2d 49 0a 0a 20 20 20  2d 2d 6e 6f 2d 69 6d 61  | -I..   --no-ima|
00009650  67 65 0a 20 20 20 20 20  20 20 20 20 20 5b 41 63  |ge.          [Ac|
00009660  6f 72 6e 20 52 49 53 43  20 4f 53 5d 20 44 6f 6e  |orn RISC OS] Don|
00009670  27 74 20 73 63 61 6e 20  74 68 72 6f 75 67 68 20  |'t scan through |
00009680  49 6d 61 67 65 20 66 69  6c 65 73 2e 20 57 68 65  |Image files. Whe|
00009690  6e 20 75 73 65 64 2c 20  7a 69 70 0a 20 20 20 20  |n used, zip.    |
000096a0  20 20 20 20 20 20 77 69  6c 6c 20 6e 6f 74 20 63  |      will not c|
000096b0  6f 6e 73 69 64 65 72 20  49 6d 61 67 65 20 66 69  |onsider Image fi|
000096c0  6c 65 73 20 28 65 67 2e  20 44 4f 53 20 70 61 72  |les (eg. DOS par|
000096d0  74 69 74 69 6f 6e 73 20  6f 72 20 53 70 61 72 6b  |titions or Spark|
000096e0  0a 20 20 20 20 20 20 20  20 20 20 61 72 63 68 69  |.          archi|
000096f0  76 65 73 20 77 68 65 6e  20 53 70 61 72 6b 46 53  |ves when SparkFS|
00009700  20 69 73 20 6c 6f 61 64  65 64 29 20 61 73 20 64  | is loaded) as d|
00009710  69 72 65 63 74 6f 72 69  65 73 20 62 75 74 20 77  |irectories but w|
00009720  69 6c 6c 20 73 74 6f 72  65 0a 20 20 20 20 20 20  |ill store.      |
00009730  20 20 20 20 74 68 65 6d  20 61 73 20 73 69 6e 67  |    them as sing|
00009740  6c 65 20 66 69 6c 65 73  2e 0a 0a 20 20 20 20 20  |le files...     |
00009750  20 20 20 20 20 46 6f 72  20 65 78 61 6d 70 6c 65  |     For example|
00009760  2c 20 69 66 20 79 6f 75  20 68 61 76 65 20 53 70  |, if you have Sp|
00009770  61 72 6b 46 53 20 6c 6f  61 64 65 64 2c 20 7a 69  |arkFS loaded, zi|
00009780  70 70 69 6e 67 20 61 20  53 70 61 72 6b 0a 20 20  |pping a Spark.  |
00009790  20 20 20 20 20 20 20 20  61 72 63 68 69 76 65 20  |        archive |
000097a0  77 69 6c 6c 20 72 65 73  75 6c 74 20 69 6e 20 61  |will result in a|
000097b0  20 7a 69 70 66 69 6c 65  20 63 6f 6e 74 61 69 6e  | zipfile contain|
000097c0  69 6e 67 20 61 20 64 69  72 65 63 74 6f 72 79 20  |ing a directory |
000097d0  28 61 6e 64 0a 20 20 20  20 20 20 20 20 20 20 69  |(and.          i|
000097e0  74 73 20 63 6f 6e 74 65  6e 74 29 20 77 68 69 6c  |ts content) whil|
000097f0  65 20 75 73 69 6e 67 20  74 68 65 20 27 49 27 20  |e using the 'I' |
00009800  6f 70 74 69 6f 6e 20 77  69 6c 6c 20 72 65 73 75  |option will resu|
00009810  6c 74 20 69 6e 20 61 0a  20 20 20 20 20 20 20 20  |lt in a.        |
00009820  20 20 7a 69 70 66 69 6c  65 20 63 6f 6e 74 61 69  |  zipfile contai|
00009830  6e 69 6e 67 20 61 20 53  70 61 72 6b 20 61 72 63  |ning a Spark arc|
00009840  68 69 76 65 2e 20 4f 62  76 69 6f 75 73 6c 79 20  |hive. Obviously |
00009850  74 68 69 73 20 73 65 63  6f 6e 64 20 63 61 73 65  |this second case|
00009860  0a 20 20 20 20 20 20 20  20 20 20 77 69 6c 6c 20  |.          will |
00009870  61 6c 73 6f 20 62 65 20  6f 62 74 61 69 6e 65 64  |also be obtained|
00009880  20 28 77 69 74 68 6f 75  74 20 74 68 65 20 27 49  | (without the 'I|
00009890  27 20 6f 70 74 69 6f 6e  29 20 69 66 20 53 70 61  |' option) if Spa|
000098a0  72 6b 46 53 20 69 73 6e  27 74 0a 20 20 20 20 20  |rkFS isn't.     |
000098b0  20 20 20 20 20 6c 6f 61  64 65 64 2e 0a 0a 20 20  |     loaded...  |
000098c0  20 2d 69 63 0a 0a 20 20  20 2d 2d 69 67 6e 6f 72  | -ic..   --ignor|
000098d0  65 2d 63 61 73 65 0a 20  20 20 20 20 20 20 20 20  |e-case.         |
000098e0  20 5b 56 4d 53 2c 20 57  49 4e 33 32 5d 20 49 67  | [VMS, WIN32] Ig|
000098f0  6e 6f 72 65 20 63 61 73  65 20 77 68 65 6e 20 6d  |nore case when m|
00009900  61 74 63 68 69 6e 67 20  61 72 63 68 69 76 65 20  |atching archive |
00009910  65 6e 74 72 69 65 73 2e  20 54 68 69 73 0a 20 20  |entries. This.  |
00009920  20 20 20 20 20 20 20 20  6f 70 74 69 6f 6e 20 69  |        option i|
00009930  73 20 6f 6e 6c 79 20 61  76 61 69 6c 61 62 6c 65  |s only available|
00009940  20 6f 6e 20 73 79 73 74  65 6d 73 20 77 68 65 72  | on systems wher|
00009950  65 20 74 68 65 20 63 61  73 65 20 6f 66 20 66 69  |e the case of fi|
00009960  6c 65 73 20 69 73 0a 20  20 20 20 20 20 20 20 20  |les is.         |
00009970  20 69 67 6e 6f 72 65 64  2e 20 4f 6e 20 73 79 73  | ignored. On sys|
00009980  74 65 6d 73 20 77 69 74  68 20 63 61 73 65 2d 69  |tems with case-i|
00009990  6e 73 65 6e 73 69 74 69  76 65 20 66 69 6c 65 20  |nsensitive file |
000099a0  73 79 73 74 65 6d 73 2c  20 63 61 73 65 20 69 73  |systems, case is|
000099b0  0a 20 20 20 20 20 20 20  20 20 20 6e 6f 72 6d 61  |.          norma|
000099c0  6c 6c 79 20 69 67 6e 6f  72 65 64 20 77 68 65 6e  |lly ignored when|
000099d0  20 6d 61 74 63 68 69 6e  67 20 66 69 6c 65 73 20  | matching files |
000099e0  6f 6e 20 74 68 65 20 66  69 6c 65 20 73 79 73 74  |on the file syst|
000099f0  65 6d 20 62 75 74 20 69  73 0a 20 20 20 20 20 20  |em but is.      |
00009a00  20 20 20 20 6e 6f 74 20  69 67 6e 6f 72 65 64 20  |    not ignored |
00009a10  66 6f 72 20 2d 66 20 28  66 72 65 73 68 65 6e 29  |for -f (freshen)|
00009a20  2c 20 2d 64 20 28 64 65  6c 65 74 65 29 2c 20 2d  |, -d (delete), -|
00009a30  55 20 28 63 6f 70 79 29  2c 20 61 6e 64 0a 20 20  |U (copy), and.  |
00009a40  20 20 20 20 20 20 20 20  73 69 6d 69 6c 61 72 20  |        similar |
00009a50  6d 6f 64 65 73 20 77 68  65 6e 20 6d 61 74 63 68  |modes when match|
00009a60  69 6e 67 20 61 67 61 69  6e 73 74 20 61 72 63 68  |ing against arch|
00009a70  69 76 65 20 65 6e 74 72  69 65 73 20 28 63 75 72  |ive entries (cur|
00009a80  72 65 6e 74 6c 79 0a 20  20 20 20 20 20 20 20 20  |rently.         |
00009a90  20 2d 66 20 69 67 6e 6f  72 65 73 20 63 61 73 65  | -f ignores case|
00009aa0  20 6f 6e 20 56 4d 53 29  20 62 65 63 61 75 73 65  | on VMS) because|
00009ab0  20 61 72 63 68 69 76 65  20 65 6e 74 72 69 65 73  | archive entries|
00009ac0  20 63 61 6e 20 62 65 20  66 72 6f 6d 0a 20 20 20  | can be from.   |
00009ad0  20 20 20 20 20 20 20 73  79 73 74 65 6d 73 20 77  |       systems w|
00009ae0  68 65 72 65 20 63 61 73  65 20 64 6f 65 73 20 6d  |here case does m|
00009af0  61 74 74 65 72 20 61 6e  64 20 6e 61 6d 65 73 20  |atter and names |
00009b00  74 68 61 74 20 61 72 65  20 74 68 65 20 73 61 6d  |that are the sam|
00009b10  65 0a 20 20 20 20 20 20  20 20 20 20 65 78 63 65  |e.          exce|
00009b20  70 74 20 66 6f 72 20 63  61 73 65 20 63 61 6e 20  |pt for case can |
00009b30  65 78 69 73 74 20 69 6e  20 61 6e 20 61 72 63 68  |exist in an arch|
00009b40  69 76 65 2e 20 54 68 65  20 2d 69 63 20 6f 70 74  |ive. The -ic opt|
00009b50  69 6f 6e 20 6d 61 6b 65  73 0a 20 20 20 20 20 20  |ion makes.      |
00009b60  20 20 20 20 61 6c 6c 20  6d 61 74 63 68 69 6e 67  |    all matching|
00009b70  20 63 61 73 65 20 69 6e  73 65 6e 73 69 74 69 76  | case insensitiv|
00009b80  65 2e 20 54 68 69 73 20  63 61 6e 20 72 65 73 75  |e. This can resu|
00009b90  6c 74 20 69 6e 20 6d 75  6c 74 69 70 6c 65 0a 20  |lt in multiple. |
00009ba0  20 20 20 20 20 20 20 20  20 61 72 63 68 69 76 65  |         archive|
00009bb0  20 65 6e 74 72 69 65 73  20 6d 61 74 63 68 69 6e  | entries matchin|
00009bc0  67 20 61 20 63 6f 6d 6d  61 6e 64 20 6c 69 6e 65  |g a command line|
00009bd0  20 70 61 74 74 65 72 6e  2e 0a 0a 20 20 20 2d 6a  | pattern...   -j|
00009be0  0a 0a 20 20 20 2d 2d 6a  75 6e 6b 2d 70 61 74 68  |..   --junk-path|
00009bf0  73 0a 20 20 20 20 20 20  20 20 20 20 53 74 6f 72  |s.          Stor|
00009c00  65 20 6a 75 73 74 20 74  68 65 20 6e 61 6d 65 20  |e just the name |
00009c10  6f 66 20 61 20 73 61 76  65 64 20 66 69 6c 65 20  |of a saved file |
00009c20  28 6a 75 6e 6b 20 74 68  65 20 70 61 74 68 29 2c  |(junk the path),|
00009c30  20 61 6e 64 20 64 6f 20  6e 6f 74 0a 20 20 20 20  | and do not.    |
00009c40  20 20 20 20 20 20 73 74  6f 72 65 20 64 69 72 65  |      store dire|
00009c50  63 74 6f 72 79 20 6e 61  6d 65 73 2e 20 42 79 20  |ctory names. By |
00009c60  64 65 66 61 75 6c 74 2c  20 7a 69 70 20 77 69 6c  |default, zip wil|
00009c70  6c 20 73 74 6f 72 65 20  74 68 65 20 66 75 6c 6c  |l store the full|
00009c80  20 70 61 74 68 0a 20 20  20 20 20 20 20 20 20 20  | path.          |
00009c90  28 72 65 6c 61 74 69 76  65 20 74 6f 20 74 68 65  |(relative to the|
00009ca0  20 63 75 72 72 65 6e 74  20 64 69 72 65 63 74 6f  | current directo|
00009cb0  72 79 29 2e 0a 0a 20 20  20 2d 6a 6a 0a 0a 20 20  |ry)...   -jj..  |
00009cc0  20 2d 2d 61 62 73 6f 6c  75 74 65 2d 70 61 74 68  | --absolute-path|
00009cd0  0a 20 20 20 20 20 20 20  20 20 20 5b 4d 61 63 4f  |.          [MacO|
00009ce0  53 5d 20 72 65 63 6f 72  64 20 46 75 6c 6c 70 61  |S] record Fullpa|
00009cf0  74 68 20 28 2b 20 56 6f  6c 6e 61 6d 65 29 2e 20  |th (+ Volname). |
00009d00  54 68 65 20 63 6f 6d 70  6c 65 74 65 20 70 61 74  |The complete pat|
00009d10  68 0a 20 20 20 20 20 20  20 20 20 20 69 6e 63 6c  |h.          incl|
00009d20  75 64 69 6e 67 20 76 6f  6c 75 6d 65 20 77 69 6c  |uding volume wil|
00009d30  6c 20 62 65 20 73 74 6f  72 65 64 2e 20 42 79 20  |l be stored. By |
00009d40  64 65 66 61 75 6c 74 20  74 68 65 20 72 65 6c 61  |default the rela|
00009d50  74 69 76 65 20 70 61 74  68 0a 20 20 20 20 20 20  |tive path.      |
00009d60  20 20 20 20 77 69 6c 6c  20 62 65 20 73 74 6f 72  |    will be stor|
00009d70  65 64 2e 0a 0a 20 20 20  2d 4a 0a 0a 20 20 20 2d  |ed...   -J..   -|
00009d80  2d 6a 75 6e 6b 2d 73 66  78 0a 20 20 20 20 20 20  |-junk-sfx.      |
00009d90  20 20 20 20 53 74 72 69  70 20 61 6e 79 20 70 72  |    Strip any pr|
00009da0  65 70 65 6e 64 65 64 20  64 61 74 61 20 28 65 2e  |epended data (e.|
00009db0  67 2e 20 61 20 53 46 58  20 73 74 75 62 29 20 66  |g. a SFX stub) f|
00009dc0  72 6f 6d 20 74 68 65 20  61 72 63 68 69 76 65 2e  |rom the archive.|
00009dd0  0a 0a 20 20 20 2d 6b 0a  0a 20 20 20 2d 2d 44 4f  |..   -k..   --DO|
00009de0  53 2d 6e 61 6d 65 73 0a  20 20 20 20 20 20 20 20  |S-names.        |
00009df0  20 20 41 74 74 65 6d 70  74 20 74 6f 20 63 6f 6e  |  Attempt to con|
00009e00  76 65 72 74 20 74 68 65  20 6e 61 6d 65 73 20 61  |vert the names a|
00009e10  6e 64 20 70 61 74 68 73  20 74 6f 20 63 6f 6e 66  |nd paths to conf|
00009e20  6f 72 6d 20 74 6f 20 4d  53 44 4f 53 2c 0a 20 20  |orm to MSDOS,.  |
00009e30  20 20 20 20 20 20 20 20  73 74 6f 72 65 20 6f 6e  |        store on|
00009e40  6c 79 20 74 68 65 20 4d  53 44 4f 53 20 61 74 74  |ly the MSDOS att|
00009e50  72 69 62 75 74 65 20 28  6a 75 73 74 20 74 68 65  |ribute (just the|
00009e60  20 75 73 65 72 20 77 72  69 74 65 20 61 74 74 72  | user write attr|
00009e70  69 62 75 74 65 0a 20 20  20 20 20 20 20 20 20 20  |ibute.          |
00009e80  66 72 6f 6d 20 55 6e 69  78 29 2c 20 61 6e 64 20  |from Unix), and |
00009e90  6d 61 72 6b 20 74 68 65  20 65 6e 74 72 79 20 61  |mark the entry a|
00009ea0  73 20 6d 61 64 65 20 75  6e 64 65 72 20 4d 53 44  |s made under MSD|
00009eb0  4f 53 20 28 65 76 65 6e  20 74 68 6f 75 67 68 0a  |OS (even though.|
00009ec0  20 20 20 20 20 20 20 20  20 20 69 74 20 77 61 73  |          it was|
00009ed0  20 6e 6f 74 29 3b 20 66  6f 72 20 63 6f 6d 70 61  | not); for compa|
00009ee0  74 69 62 69 6c 69 74 79  20 77 69 74 68 20 50 4b  |tibility with PK|
00009ef0  55 4e 5a 49 50 20 75 6e  64 65 72 20 4d 53 44 4f  |UNZIP under MSDO|
00009f00  53 20 77 68 69 63 68 0a  20 20 20 20 20 20 20 20  |S which.        |
00009f10  20 20 63 61 6e 6e 6f 74  20 68 61 6e 64 6c 65 20  |  cannot handle |
00009f20  63 65 72 74 61 69 6e 20  6e 61 6d 65 73 20 73 75  |certain names su|
00009f30  63 68 20 61 73 20 74 68  6f 73 65 20 77 69 74 68  |ch as those with|
00009f40  20 74 77 6f 20 64 6f 74  73 2e 0a 0a 20 20 20 2d  | two dots...   -|
00009f50  6c 0a 0a 20 20 20 2d 2d  74 6f 2d 63 72 6c 66 0a  |l..   --to-crlf.|
00009f60  20 20 20 20 20 20 20 20  20 20 54 72 61 6e 73 6c  |          Transl|
00009f70  61 74 65 20 74 68 65 20  55 6e 69 78 20 65 6e 64  |ate the Unix end|
00009f80  2d 6f 66 2d 6c 69 6e 65  20 63 68 61 72 61 63 74  |-of-line charact|
00009f90  65 72 20 4c 46 20 69 6e  74 6f 20 74 68 65 20 4d  |er LF into the M|
00009fa0  53 44 4f 53 0a 20 20 20  20 20 20 20 20 20 20 63  |SDOS.          c|
00009fb0  6f 6e 76 65 6e 74 69 6f  6e 20 43 52 20 4c 46 2e  |onvention CR LF.|
00009fc0  20 54 68 69 73 20 6f 70  74 69 6f 6e 20 73 68 6f  | This option sho|
00009fd0  75 6c 64 20 6e 6f 74 20  62 65 20 75 73 65 64 20  |uld not be used |
00009fe0  6f 6e 20 62 69 6e 61 72  79 0a 20 20 20 20 20 20  |on binary.      |
00009ff0  20 20 20 20 66 69 6c 65  73 2e 20 54 68 69 73 20  |    files. This |
0000a000  6f 70 74 69 6f 6e 20 63  61 6e 20 62 65 20 75 73  |option can be us|
0000a010  65 64 20 6f 6e 20 55 6e  69 78 20 69 66 20 74 68  |ed on Unix if th|
0000a020  65 20 7a 69 70 20 66 69  6c 65 20 69 73 0a 20 20  |e zip file is.  |
0000a030  20 20 20 20 20 20 20 20  69 6e 74 65 6e 64 65 64  |        intended|
0000a040  20 66 6f 72 20 50 4b 55  4e 5a 49 50 20 75 6e 64  | for PKUNZIP und|
0000a050  65 72 20 4d 53 44 4f 53  2e 20 49 66 20 74 68 65  |er MSDOS. If the|
0000a060  20 69 6e 70 75 74 20 66  69 6c 65 73 20 61 6c 72  | input files alr|
0000a070  65 61 64 79 0a 20 20 20  20 20 20 20 20 20 20 63  |eady.          c|
0000a080  6f 6e 74 61 69 6e 20 43  52 20 4c 46 2c 20 74 68  |ontain CR LF, th|
0000a090  69 73 20 6f 70 74 69 6f  6e 20 61 64 64 73 20 61  |is option adds a|
0000a0a0  6e 20 65 78 74 72 61 20  43 52 2e 20 54 68 69 73  |n extra CR. This|
0000a0b0  20 69 73 20 74 6f 20 65  6e 73 75 72 65 0a 20 20  | is to ensure.  |
0000a0c0  20 20 20 20 20 20 20 20  74 68 61 74 20 75 6e 7a  |        that unz|
0000a0d0  69 70 20 2d 61 20 6f 6e  20 55 6e 69 78 20 77 69  |ip -a on Unix wi|
0000a0e0  6c 6c 20 67 65 74 20 62  61 63 6b 20 61 6e 20 65  |ll get back an e|
0000a0f0  78 61 63 74 20 63 6f 70  79 20 6f 66 20 74 68 65  |xact copy of the|
0000a100  0a 20 20 20 20 20 20 20  20 20 20 6f 72 69 67 69  |.          origi|
0000a110  6e 61 6c 20 66 69 6c 65  2c 20 74 6f 20 75 6e 64  |nal file, to und|
0000a120  6f 20 74 68 65 20 65 66  66 65 63 74 20 6f 66 20  |o the effect of |
0000a130  7a 69 70 20 2d 6c 2e 20  53 65 65 20 2d 6c 6c 20  |zip -l. See -ll |
0000a140  66 6f 72 20 68 6f 77 0a  20 20 20 20 20 20 20 20  |for how.        |
0000a150  20 20 62 69 6e 61 72 79  20 66 69 6c 65 73 20 61  |  binary files a|
0000a160  72 65 20 68 61 6e 64 6c  65 64 2e 0a 0a 20 20 20  |re handled...   |
0000a170  2d 6c 61 0a 0a 20 20 20  2d 2d 6c 6f 67 2d 61 70  |-la..   --log-ap|
0000a180  70 65 6e 64 0a 20 20 20  20 20 20 20 20 20 20 41  |pend.          A|
0000a190  70 70 65 6e 64 20 74 6f  20 65 78 69 73 74 69 6e  |ppend to existin|
0000a1a0  67 20 6c 6f 67 66 69 6c  65 2e 20 44 65 66 61 75  |g logfile. Defau|
0000a1b0  6c 74 20 69 73 20 74 6f  20 6f 76 65 72 77 72 69  |lt is to overwri|
0000a1c0  74 65 2e 0a 0a 20 20 20  2d 6c 66 20 6c 6f 67 66  |te...   -lf logf|
0000a1d0  69 6c 65 70 61 74 68 0a  0a 20 20 20 2d 2d 6c 6f  |ilepath..   --lo|
0000a1e0  67 66 69 6c 65 2d 70 61  74 68 20 6c 6f 67 66 69  |gfile-path logfi|
0000a1f0  6c 65 70 61 74 68 0a 20  20 20 20 20 20 20 20 20  |lepath.         |
0000a200  20 4f 70 65 6e 20 61 20  6c 6f 67 66 69 6c 65 20  | Open a logfile |
0000a210  61 74 20 74 68 65 20 67  69 76 65 6e 20 70 61 74  |at the given pat|
0000a220  68 2e 20 42 79 20 64 65  66 61 75 6c 74 20 61 6e  |h. By default an|
0000a230  79 20 65 78 69 73 74 69  6e 67 20 66 69 6c 65 0a  |y existing file.|
0000a240  20 20 20 20 20 20 20 20  20 20 61 74 20 74 68 61  |          at tha|
0000a250  74 20 6c 6f 63 61 74 69  6f 6e 20 69 73 20 6f 76  |t location is ov|
0000a260  65 72 77 72 69 74 74 65  6e 2c 20 62 75 74 20 74  |erwritten, but t|
0000a270  68 65 20 2d 6c 61 20 6f  70 74 69 6f 6e 20 77 69  |he -la option wi|
0000a280  6c 6c 20 72 65 73 75 6c  74 0a 20 20 20 20 20 20  |ll result.      |
0000a290  20 20 20 20 69 6e 20 61  6e 20 65 78 69 73 74 69  |    in an existi|
0000a2a0  6e 67 20 66 69 6c 65 20  62 65 69 6e 67 20 6f 70  |ng file being op|
0000a2b0  65 6e 65 64 20 61 6e 64  20 74 68 65 20 6e 65 77  |ened and the new|
0000a2c0  20 6c 6f 67 20 69 6e 66  6f 72 6d 61 74 69 6f 6e  | log information|
0000a2d0  0a 20 20 20 20 20 20 20  20 20 20 61 70 70 65 6e  |.          appen|
0000a2e0  64 65 64 20 74 6f 20 61  6e 79 20 65 78 69 73 74  |ded to any exist|
0000a2f0  69 6e 67 20 69 6e 66 6f  72 6d 61 74 69 6f 6e 2e  |ing information.|
0000a300  20 4f 6e 6c 79 20 77 61  72 6e 69 6e 67 73 20 61  | Only warnings a|
0000a310  6e 64 20 65 72 72 6f 72  73 0a 20 20 20 20 20 20  |nd errors.      |
0000a320  20 20 20 20 61 72 65 20  77 72 69 74 74 65 6e 20  |    are written |
0000a330  74 6f 20 74 68 65 20 6c  6f 67 20 75 6e 6c 65 73  |to the log unles|
0000a340  73 20 74 68 65 20 2d 6c  69 20 6f 70 74 69 6f 6e  |s the -li option|
0000a350  20 69 73 20 61 6c 73 6f  20 67 69 76 65 6e 2c 0a  | is also given,.|
0000a360  20 20 20 20 20 20 20 20  20 20 74 68 65 6e 20 61  |          then a|
0000a370  6c 6c 20 69 6e 66 6f 72  6d 61 74 69 6f 6e 20 6d  |ll information m|
0000a380  65 73 73 61 67 65 73 20  61 72 65 20 61 6c 73 6f  |essages are also|
0000a390  20 77 72 69 74 74 65 6e  20 74 6f 20 74 68 65 20  | written to the |
0000a3a0  6c 6f 67 2e 0a 0a 20 20  20 2d 6c 69 0a 0a 20 20  |log...   -li..  |
0000a3b0  20 2d 2d 6c 6f 67 2d 69  6e 66 6f 0a 20 20 20 20  | --log-info.    |
0000a3c0  20 20 20 20 20 20 49 6e  63 6c 75 64 65 20 69 6e  |      Include in|
0000a3d0  66 6f 72 6d 61 74 69 6f  6e 20 6d 65 73 73 61 67  |formation messag|
0000a3e0  65 73 2c 20 73 75 63 68  20 61 73 20 66 69 6c 65  |es, such as file|
0000a3f0  20 6e 61 6d 65 73 20 62  65 69 6e 67 20 7a 69 70  | names being zip|
0000a400  70 65 64 2c 0a 20 20 20  20 20 20 20 20 20 20 69  |ped,.          i|
0000a410  6e 20 74 68 65 20 6c 6f  67 2e 20 54 68 65 20 64  |n the log. The d|
0000a420  65 66 61 75 6c 74 20 69  73 20 74 6f 20 6f 6e 6c  |efault is to onl|
0000a430  79 20 69 6e 63 6c 75 64  65 20 74 68 65 20 63 6f  |y include the co|
0000a440  6d 6d 61 6e 64 20 6c 69  6e 65 2c 0a 20 20 20 20  |mmand line,.    |
0000a450  20 20 20 20 20 20 61 6e  79 20 77 61 72 6e 69 6e  |      any warnin|
0000a460  67 73 20 61 6e 64 20 65  72 72 6f 72 73 2c 20 61  |gs and errors, a|
0000a470  6e 64 20 74 68 65 20 66  69 6e 61 6c 20 73 74 61  |nd the final sta|
0000a480  74 75 73 2e 0a 0a 20 20  20 2d 6c 6c 0a 0a 20 20  |tus...   -ll..  |
0000a490  20 2d 2d 66 72 6f 6d 2d  63 72 6c 66 0a 20 20 20  | --from-crlf.   |
0000a4a0  20 20 20 20 20 20 20 54  72 61 6e 73 6c 61 74 65  |       Translate|
0000a4b0  20 74 68 65 20 4d 53 44  4f 53 20 65 6e 64 2d 6f  | the MSDOS end-o|
0000a4c0  66 2d 6c 69 6e 65 20 43  52 20 4c 46 20 69 6e 74  |f-line CR LF int|
0000a4d0  6f 20 55 6e 69 78 20 4c  46 2e 20 54 68 69 73 20  |o Unix LF. This |
0000a4e0  6f 70 74 69 6f 6e 0a 20  20 20 20 20 20 20 20 20  |option.         |
0000a4f0  20 73 68 6f 75 6c 64 20  6e 6f 74 20 62 65 20 75  | should not be u|
0000a500  73 65 64 20 6f 6e 20 62  69 6e 61 72 79 20 66 69  |sed on binary fi|
0000a510  6c 65 73 2e 20 54 68 69  73 20 6f 70 74 69 6f 6e  |les. This option|
0000a520  20 63 61 6e 20 62 65 20  75 73 65 64 20 6f 6e 0a  | can be used on.|
0000a530  20 20 20 20 20 20 20 20  20 20 4d 53 44 4f 53 20  |          MSDOS |
0000a540  69 66 20 74 68 65 20 7a  69 70 20 66 69 6c 65 20  |if the zip file |
0000a550  69 73 20 69 6e 74 65 6e  64 65 64 20 66 6f 72 20  |is intended for |
0000a560  75 6e 7a 69 70 20 75 6e  64 65 72 20 55 6e 69 78  |unzip under Unix|
0000a570  2e 20 49 66 20 74 68 65  0a 20 20 20 20 20 20 20  |. If the.       |
0000a580  20 20 20 66 69 6c 65 20  69 73 20 63 6f 6e 76 65  |   file is conve|
0000a590  72 74 65 64 20 61 6e 64  20 74 68 65 20 66 69 6c  |rted and the fil|
0000a5a0  65 20 69 73 20 6c 61 74  65 72 20 64 65 74 65 72  |e is later deter|
0000a5b0  6d 69 6e 65 64 20 74 6f  20 62 65 20 62 69 6e 61  |mined to be bina|
0000a5c0  72 79 0a 20 20 20 20 20  20 20 20 20 20 61 20 77  |ry.          a w|
0000a5d0  61 72 6e 69 6e 67 20 69  73 20 69 73 73 75 65 64  |arning is issued|
0000a5e0  20 61 6e 64 20 74 68 65  20 66 69 6c 65 20 69 73  | and the file is|
0000a5f0  20 70 72 6f 62 61 62 6c  79 20 63 6f 72 72 75 70  | probably corrup|
0000a600  74 65 64 2e 20 49 6e 20  74 68 69 73 0a 20 20 20  |ted. In this.   |
0000a610  20 20 20 20 20 20 20 72  65 6c 65 61 73 65 20 69  |       release i|
0000a620  66 20 2d 6c 6c 20 64 65  74 65 63 74 73 20 62 69  |f -ll detects bi|
0000a630  6e 61 72 79 20 69 6e 20  74 68 65 20 66 69 72 73  |nary in the firs|
0000a640  74 20 62 75 66 66 65 72  20 72 65 61 64 20 66 72  |t buffer read fr|
0000a650  6f 6d 20 61 0a 20 20 20  20 20 20 20 20 20 20 66  |om a.          f|
0000a660  69 6c 65 2c 20 7a 69 70  20 6e 6f 77 20 69 73 73  |ile, zip now iss|
0000a670  75 65 73 20 61 20 77 61  72 6e 69 6e 67 20 61 6e  |ues a warning an|
0000a680  64 20 73 6b 69 70 73 20  6c 69 6e 65 20 65 6e 64  |d skips line end|
0000a690  20 63 6f 6e 76 65 72 73  69 6f 6e 20 6f 6e 0a 20  | conversion on. |
0000a6a0  20 20 20 20 20 20 20 20  20 74 68 65 20 66 69 6c  |         the fil|
0000a6b0  65 2e 20 54 68 69 73 20  63 68 65 63 6b 20 73 65  |e. This check se|
0000a6c0  65 6d 73 20 74 6f 20 63  61 74 63 68 20 61 6c 6c  |ems to catch all|
0000a6d0  20 62 69 6e 61 72 79 20  66 69 6c 65 73 20 74 65  | binary files te|
0000a6e0  73 74 65 64 2c 0a 20 20  20 20 20 20 20 20 20 20  |sted,.          |
0000a6f0  62 75 74 20 74 68 65 20  6f 72 69 67 69 6e 61 6c  |but the original|
0000a700  20 63 68 65 63 6b 20 72  65 6d 61 69 6e 73 20 61  | check remains a|
0000a710  6e 64 20 69 66 20 61 20  63 6f 6e 76 65 72 74 65  |nd if a converte|
0000a720  64 20 66 69 6c 65 20 69  73 20 6c 61 74 65 72 0a  |d file is later.|
0000a730  20 20 20 20 20 20 20 20  20 20 64 65 74 65 72 6d  |          determ|
0000a740  69 6e 65 64 20 74 6f 20  62 65 20 62 69 6e 61 72  |ined to be binar|
0000a750  79 20 74 68 61 74 20 77  61 72 6e 69 6e 67 20 69  |y that warning i|
0000a760  73 20 73 74 69 6c 6c 20  69 73 73 75 65 64 2e 20  |s still issued. |
0000a770  41 20 6e 65 77 0a 20 20  20 20 20 20 20 20 20 20  |A new.          |
0000a780  61 6c 67 6f 72 69 74 68  6d 20 69 73 20 6e 6f 77  |algorithm is now|
0000a790  20 62 65 69 6e 67 20 75  73 65 64 20 66 6f 72 20  | being used for |
0000a7a0  62 69 6e 61 72 79 20 64  65 74 65 63 74 69 6f 6e  |binary detection|
0000a7b0  20 74 68 61 74 20 73 68  6f 75 6c 64 0a 20 20 20  | that should.   |
0000a7c0  20 20 20 20 20 20 20 61  6c 6c 6f 77 20 6c 69 6e  |       allow lin|
0000a7d0  65 20 65 6e 64 20 63 6f  6e 76 65 72 73 69 6f 6e  |e end conversion|
0000a7e0  20 6f 66 20 74 65 78 74  20 66 69 6c 65 73 20 69  | of text files i|
0000a7f0  6e 20 55 54 46 2d 38 20  61 6e 64 20 73 69 6d 69  |n UTF-8 and simi|
0000a800  6c 61 72 0a 20 20 20 20  20 20 20 20 20 20 65 6e  |lar.          en|
0000a810  63 6f 64 69 6e 67 73 2e  0a 0a 20 20 20 2d 4c 0a  |codings...   -L.|
0000a820  0a 20 20 20 2d 2d 6c 69  63 65 6e 73 65 0a 20 20  |.   --license.  |
0000a830  20 20 20 20 20 20 20 20  44 69 73 70 6c 61 79 20  |        Display |
0000a840  74 68 65 20 7a 69 70 20  6c 69 63 65 6e 73 65 2e  |the zip license.|
0000a850  0a 0a 20 20 20 2d 6d 0a  0a 20 20 20 2d 2d 6d 6f  |..   -m..   --mo|
0000a860  76 65 0a 20 20 20 20 20  20 20 20 20 20 4d 6f 76  |ve.          Mov|
0000a870  65 20 74 68 65 20 73 70  65 63 69 66 69 65 64 20  |e the specified |
0000a880  66 69 6c 65 73 20 69 6e  74 6f 20 74 68 65 20 7a  |files into the z|
0000a890  69 70 20 61 72 63 68 69  76 65 3b 20 61 63 74 75  |ip archive; actu|
0000a8a0  61 6c 6c 79 2c 20 74 68  69 73 0a 20 20 20 20 20  |ally, this.     |
0000a8b0  20 20 20 20 20 64 65 6c  65 74 65 73 20 74 68 65  |     deletes the|
0000a8c0  20 74 61 72 67 65 74 20  64 69 72 65 63 74 6f 72  | target director|
0000a8d0  69 65 73 2f 66 69 6c 65  73 20 61 66 74 65 72 20  |ies/files after |
0000a8e0  6d 61 6b 69 6e 67 20 74  68 65 20 73 70 65 63 69  |making the speci|
0000a8f0  66 69 65 64 0a 20 20 20  20 20 20 20 20 20 20 7a  |fied.          z|
0000a900  69 70 20 61 72 63 68 69  76 65 2e 20 49 66 20 61  |ip archive. If a|
0000a910  20 64 69 72 65 63 74 6f  72 79 20 62 65 63 6f 6d  | directory becom|
0000a920  65 73 20 65 6d 70 74 79  20 61 66 74 65 72 20 72  |es empty after r|
0000a930  65 6d 6f 76 61 6c 20 6f  66 20 74 68 65 0a 20 20  |emoval of the.  |
0000a940  20 20 20 20 20 20 20 20  66 69 6c 65 73 2c 20 74  |        files, t|
0000a950  68 65 20 64 69 72 65 63  74 6f 72 79 20 69 73 20  |he directory is |
0000a960  61 6c 73 6f 20 72 65 6d  6f 76 65 64 2e 20 4e 6f  |also removed. No|
0000a970  20 64 65 6c 65 74 69 6f  6e 73 20 61 72 65 20 64  | deletions are d|
0000a980  6f 6e 65 0a 20 20 20 20  20 20 20 20 20 20 75 6e  |one.          un|
0000a990  74 69 6c 20 7a 69 70 20  68 61 73 20 63 72 65 61  |til zip has crea|
0000a9a0  74 65 64 20 74 68 65 20  61 72 63 68 69 76 65 20  |ted the archive |
0000a9b0  77 69 74 68 6f 75 74 20  65 72 72 6f 72 2e 20 54  |without error. T|
0000a9c0  68 69 73 20 69 73 20 75  73 65 66 75 6c 0a 20 20  |his is useful.  |
0000a9d0  20 20 20 20 20 20 20 20  66 6f 72 20 63 6f 6e 73  |        for cons|
0000a9e0  65 72 76 69 6e 67 20 64  69 73 6b 20 73 70 61 63  |erving disk spac|
0000a9f0  65 2c 20 62 75 74 20 69  73 20 70 6f 74 65 6e 74  |e, but is potent|
0000aa00  69 61 6c 6c 79 20 64 61  6e 67 65 72 6f 75 73 20  |ially dangerous |
0000aa10  73 6f 20 69 74 0a 20 20  20 20 20 20 20 20 20 20  |so it.          |
0000aa20  69 73 20 72 65 63 6f 6d  6d 65 6e 64 65 64 20 74  |is recommended t|
0000aa30  6f 20 75 73 65 20 69 74  20 69 6e 20 63 6f 6d 62  |o use it in comb|
0000aa40  69 6e 61 74 69 6f 6e 20  77 69 74 68 20 2d 54 20  |ination with -T |
0000aa50  74 6f 20 74 65 73 74 20  74 68 65 0a 20 20 20 20  |to test the.    |
0000aa60  20 20 20 20 20 20 61 72  63 68 69 76 65 20 62 65  |      archive be|
0000aa70  66 6f 72 65 20 72 65 6d  6f 76 69 6e 67 20 61 6c  |fore removing al|
0000aa80  6c 20 69 6e 70 75 74 20  66 69 6c 65 73 2e 0a 0a  |l input files...|
0000aa90  20 20 20 2d 4d 4d 0a 0a  20 20 20 2d 2d 6d 75 73  |   -MM..   --mus|
0000aaa0  74 2d 6d 61 74 63 68 0a  20 20 20 20 20 20 20 20  |t-match.        |
0000aab0  20 20 41 6c 6c 20 69 6e  70 75 74 20 70 61 74 74  |  All input patt|
0000aac0  65 72 6e 73 20 6d 75 73  74 20 6d 61 74 63 68 20  |erns must match |
0000aad0  61 74 20 6c 65 61 73 74  20 6f 6e 65 20 66 69 6c  |at least one fil|
0000aae0  65 20 61 6e 64 20 61 6c  6c 20 69 6e 70 75 74 0a  |e and all input.|
0000aaf0  20 20 20 20 20 20 20 20  20 20 66 69 6c 65 73 20  |          files |
0000ab00  66 6f 75 6e 64 20 6d 75  73 74 20 62 65 20 72 65  |found must be re|
0000ab10  61 64 61 62 6c 65 2e 20  4e 6f 72 6d 61 6c 6c 79  |adable. Normally|
0000ab20  20 77 68 65 6e 20 61 6e  20 69 6e 70 75 74 20 70  | when an input p|
0000ab30  61 74 74 65 72 6e 0a 20  20 20 20 20 20 20 20 20  |attern.         |
0000ab40  20 64 6f 65 73 20 6e 6f  74 20 6d 61 74 63 68 20  | does not match |
0000ab50  61 20 66 69 6c 65 20 74  68 65 20 22 6e 61 6d 65  |a file the "name|
0000ab60  20 6e 6f 74 20 6d 61 74  63 68 65 64 22 20 77 61  | not matched" wa|
0000ab70  72 6e 69 6e 67 20 69 73  20 69 73 73 75 65 64 0a  |rning is issued.|
0000ab80  20 20 20 20 20 20 20 20  20 20 61 6e 64 20 77 68  |          and wh|
0000ab90  65 6e 20 61 6e 20 69 6e  70 75 74 20 66 69 6c 65  |en an input file|
0000aba0  20 68 61 73 20 62 65 65  6e 20 66 6f 75 6e 64 20  | has been found |
0000abb0  62 75 74 20 6c 61 74 65  72 20 69 73 20 6d 69 73  |but later is mis|
0000abc0  73 69 6e 67 20 6f 72 0a  20 20 20 20 20 20 20 20  |sing or.        |
0000abd0  20 20 6e 6f 74 20 72 65  61 64 61 62 6c 65 20 61  |  not readable a|
0000abe0  20 6d 69 73 73 69 6e 67  20 6f 72 20 6e 6f 74 20  | missing or not |
0000abf0  72 65 61 64 61 62 6c 65  20 77 61 72 6e 69 6e 67  |readable warning|
0000ac00  20 69 73 20 69 73 73 75  65 64 2e 20 49 6e 0a 20  | is issued. In. |
0000ac10  20 20 20 20 20 20 20 20  20 65 69 74 68 65 72 20  |         either |
0000ac20  63 61 73 65 20 7a 69 70  20 63 6f 6e 74 69 6e 75  |case zip continu|
0000ac30  65 73 20 63 72 65 61 74  69 6e 67 20 74 68 65 20  |es creating the |
0000ac40  61 72 63 68 69 76 65 2c  20 77 69 74 68 20 6d 69  |archive, with mi|
0000ac50  73 73 69 6e 67 20 6f 72  0a 20 20 20 20 20 20 20  |ssing or.       |
0000ac60  20 20 20 75 6e 72 65 61  64 61 62 6c 65 20 6e 65  |   unreadable ne|
0000ac70  77 20 66 69 6c 65 73 20  62 65 69 6e 67 20 73 6b  |w files being sk|
0000ac80  69 70 70 65 64 20 61 6e  64 20 66 69 6c 65 73 20  |ipped and files |
0000ac90  61 6c 72 65 61 64 79 20  69 6e 20 74 68 65 0a 20  |already in the. |
0000aca0  20 20 20 20 20 20 20 20  20 61 72 63 68 69 76 65  |         archive|
0000acb0  20 72 65 6d 61 69 6e 69  6e 67 20 75 6e 63 68 61  | remaining uncha|
0000acc0  6e 67 65 64 2e 20 41 66  74 65 72 20 74 68 65 20  |nged. After the |
0000acd0  61 72 63 68 69 76 65 20  69 73 20 63 72 65 61 74  |archive is creat|
0000ace0  65 64 2c 20 69 66 0a 20  20 20 20 20 20 20 20 20  |ed, if.         |
0000acf0  20 61 6e 79 20 66 69 6c  65 73 20 77 65 72 65 20  | any files were |
0000ad00  6e 6f 74 20 72 65 61 64  61 62 6c 65 20 7a 69 70  |not readable zip|
0000ad10  20 72 65 74 75 72 6e 73  20 74 68 65 20 4f 50 45  | returns the OPE|
0000ad20  4e 20 65 72 72 6f 72 20  63 6f 64 65 20 28 31 38  |N error code (18|
0000ad30  0a 20 20 20 20 20 20 20  20 20 20 6f 6e 20 6d 6f  |.          on mo|
0000ad40  73 74 20 73 79 73 74 65  6d 73 29 20 69 6e 73 74  |st systems) inst|
0000ad50  65 61 64 20 6f 66 20 74  68 65 20 6e 6f 72 6d 61  |ead of the norma|
0000ad60  6c 20 73 75 63 63 65 73  73 20 72 65 74 75 72 6e  |l success return|
0000ad70  20 28 30 20 6f 6e 0a 20  20 20 20 20 20 20 20 20  | (0 on.         |
0000ad80  20 6d 6f 73 74 20 73 79  73 74 65 6d 73 29 2e 20  | most systems). |
0000ad90  57 69 74 68 20 2d 4d 4d  20 73 65 74 2c 20 7a 69  |With -MM set, zi|
0000ada0  70 20 65 78 69 74 73 20  61 73 20 73 6f 6f 6e 20  |p exits as soon |
0000adb0  61 73 20 61 6e 20 69 6e  70 75 74 0a 20 20 20 20  |as an input.    |
0000adc0  20 20 20 20 20 20 70 61  74 74 65 72 6e 20 69 73  |      pattern is|
0000add0  20 6e 6f 74 20 6d 61 74  63 68 65 64 20 28 77 68  | not matched (wh|
0000ade0  65 6e 65 76 65 72 20 74  68 65 20 22 6e 61 6d 65  |enever the "name|
0000adf0  20 6e 6f 74 20 6d 61 74  63 68 65 64 22 20 77 61  | not matched" wa|
0000ae00  72 6e 69 6e 67 0a 20 20  20 20 20 20 20 20 20 20  |rning.          |
0000ae10  77 6f 75 6c 64 20 62 65  20 69 73 73 75 65 64 29  |would be issued)|
0000ae20  20 6f 72 20 77 68 65 6e  20 61 6e 20 69 6e 70 75  | or when an inpu|
0000ae30  74 20 66 69 6c 65 20 69  73 20 6e 6f 74 20 72 65  |t file is not re|
0000ae40  61 64 61 62 6c 65 2e 20  49 6e 0a 20 20 20 20 20  |adable. In.     |
0000ae50  20 20 20 20 20 65 69 74  68 65 72 20 63 61 73 65  |     either case|
0000ae60  20 7a 69 70 20 65 78 69  74 73 20 77 69 74 68 20  | zip exits with |
0000ae70  61 6e 20 4f 50 45 4e 20  65 72 72 6f 72 20 61 6e  |an OPEN error an|
0000ae80  64 20 6e 6f 20 61 72 63  68 69 76 65 20 69 73 0a  |d no archive is.|
0000ae90  20 20 20 20 20 20 20 20  20 20 63 72 65 61 74 65  |          create|
0000aea0  64 2e 0a 0a 20 20 20 54  68 69 73 20 6f 70 74 69  |d...   This opti|
0000aeb0  6f 6e 20 69 73 20 75 73  65 66 75 6c 20 77 68 65  |on is useful whe|
0000aec0  6e 20 61 20 6b 6e 6f 77  6e 20 6c 69 73 74 20 6f  |n a known list o|
0000aed0  66 20 66 69 6c 65 73 20  69 73 20 74 6f 20 62 65  |f files is to be|
0000aee0  20 7a 69 70 70 65 64 20  73 6f 0a 20 20 20 20 20  | zipped so.     |
0000aef0  20 20 20 20 20 61 6e 79  20 6d 69 73 73 69 6e 67  |     any missing|
0000af00  20 6f 72 20 75 6e 72 65  61 64 61 62 6c 65 20 66  | or unreadable f|
0000af10  69 6c 65 73 20 77 69 6c  6c 20 72 65 73 75 6c 74  |iles will result|
0000af20  20 69 6e 20 61 6e 20 65  72 72 6f 72 2e 20 49 74  | in an error. It|
0000af30  20 69 73 0a 20 20 20 20  20 20 20 20 20 20 6c 65  | is.          le|
0000af40  73 73 20 75 73 65 66 75  6c 20 77 68 65 6e 20 75  |ss useful when u|
0000af50  73 65 64 20 77 69 74 68  20 77 69 6c 64 63 61 72  |sed with wildcar|
0000af60  64 73 2c 20 62 75 74 20  7a 69 70 20 77 69 6c 6c  |ds, but zip will|
0000af70  20 73 74 69 6c 6c 20 65  78 69 74 0a 20 20 20 20  | still exit.    |
0000af80  20 20 20 20 20 20 77 69  74 68 20 61 6e 20 65 72  |      with an er|
0000af90  72 6f 72 20 69 66 20 61  6e 79 20 69 6e 70 75 74  |ror if any input|
0000afa0  20 70 61 74 74 65 72 6e  20 64 6f 65 73 6e 27 74  | pattern doesn't|
0000afb0  20 6d 61 74 63 68 20 61  74 20 6c 65 61 73 74 20  | match at least |
0000afc0  6f 6e 65 0a 20 20 20 20  20 20 20 20 20 20 66 69  |one.          fi|
0000afd0  6c 65 20 61 6e 64 20 69  66 20 61 6e 79 20 6d 61  |le and if any ma|
0000afe0  74 63 68 65 64 20 66 69  6c 65 73 20 61 72 65 20  |tched files are |
0000aff0  75 6e 72 65 61 64 61 62  6c 65 2e 20 49 66 20 79  |unreadable. If y|
0000b000  6f 75 20 77 61 6e 74 20  74 6f 0a 20 20 20 20 20  |ou want to.     |
0000b010  20 20 20 20 20 63 72 65  61 74 65 20 74 68 65 20  |     create the |
0000b020  61 72 63 68 69 76 65 20  61 6e 79 77 61 79 20 61  |archive anyway a|
0000b030  6e 64 20 6f 6e 6c 79 20  6e 65 65 64 20 74 6f 20  |nd only need to |
0000b040  6b 6e 6f 77 20 69 66 20  66 69 6c 65 73 20 77 65  |know if files we|
0000b050  72 65 0a 20 20 20 20 20  20 20 20 20 20 73 6b 69  |re.          ski|
0000b060  70 70 65 64 2c 20 64 6f  6e 27 74 20 75 73 65 20  |pped, don't use |
0000b070  2d 4d 4d 20 61 6e 64 20  6a 75 73 74 20 63 68 65  |-MM and just che|
0000b080  63 6b 20 74 68 65 20 72  65 74 75 72 6e 20 63 6f  |ck the return co|
0000b090  64 65 2e 20 41 6c 73 6f  20 2d 6c 66 0a 20 20 20  |de. Also -lf.   |
0000b0a0  20 20 20 20 20 20 20 63  6f 75 6c 64 20 62 65 20  |       could be |
0000b0b0  75 73 65 66 75 6c 2e 0a  0a 20 20 20 2d 6e 20 73  |useful...   -n s|
0000b0c0  75 66 66 69 78 65 73 0a  0a 20 20 20 2d 2d 73 75  |uffixes..   --su|
0000b0d0  66 66 69 78 65 73 20 73  75 66 66 69 78 65 73 0a  |ffixes suffixes.|
0000b0e0  20 20 20 20 20 20 20 20  20 20 44 6f 20 6e 6f 74  |          Do not|
0000b0f0  20 61 74 74 65 6d 70 74  20 74 6f 20 63 6f 6d 70  | attempt to comp|
0000b100  72 65 73 73 20 66 69 6c  65 73 20 6e 61 6d 65 64  |ress files named|
0000b110  20 77 69 74 68 20 74 68  65 20 67 69 76 65 6e 20  | with the given |
0000b120  73 75 66 66 69 78 65 73  2e 0a 20 20 20 20 20 20  |suffixes..      |
0000b130  20 20 20 20 53 75 63 68  20 66 69 6c 65 73 20 61  |    Such files a|
0000b140  72 65 20 73 69 6d 70 6c  79 20 73 74 6f 72 65 64  |re simply stored|
0000b150  20 28 30 25 20 63 6f 6d  70 72 65 73 73 69 6f 6e  | (0% compression|
0000b160  29 20 69 6e 20 74 68 65  20 6f 75 74 70 75 74 20  |) in the output |
0000b170  7a 69 70 0a 20 20 20 20  20 20 20 20 20 20 66 69  |zip.          fi|
0000b180  6c 65 2c 20 73 6f 20 74  68 61 74 20 7a 69 70 20  |le, so that zip |
0000b190  64 6f 65 73 6e 27 74 20  77 61 73 74 65 20 69 74  |doesn't waste it|
0000b1a0  73 20 74 69 6d 65 20 74  72 79 69 6e 67 20 74 6f  |s time trying to|
0000b1b0  20 63 6f 6d 70 72 65 73  73 0a 20 20 20 20 20 20  | compress.      |
0000b1c0  20 20 20 20 74 68 65 6d  2e 20 54 68 65 20 73 75  |    them. The su|
0000b1d0  66 66 69 78 65 73 20 61  72 65 20 73 65 70 61 72  |ffixes are separ|
0000b1e0  61 74 65 64 20 62 79 20  65 69 74 68 65 72 20 63  |ated by either c|
0000b1f0  6f 6c 6f 6e 73 20 6f 72  0a 20 20 20 20 20 20 20  |olons or.       |
0000b200  20 20 20 73 65 6d 69 63  6f 6c 6f 6e 73 2e 20 46  |   semicolons. F|
0000b210  6f 72 20 65 78 61 6d 70  6c 65 3a 0a 0a 20 20 20  |or example:..   |
0000b220  7a 69 70 20 2d 72 6e 20  2e 5a 3a 2e 7a 69 70 3a  |zip -rn .Z:.zip:|
0000b230  2e 74 69 66 66 3a 2e 67  69 66 3a 2e 73 6e 64 20  |.tiff:.gif:.snd |
0000b240  66 6f 6f 20 66 6f 6f 0a  0a 20 20 20 77 69 6c 6c  |foo foo..   will|
0000b250  20 63 6f 70 79 20 65 76  65 72 79 74 68 69 6e 67  | copy everything|
0000b260  20 66 72 6f 6d 0a 20 20  20 20 20 20 20 20 20 20  | from.          |
0000b270  66 6f 6f 20 69 6e 74 6f  20 66 6f 6f 2e 7a 69 70  |foo into foo.zip|
0000b280  2c 20 62 75 74 20 77 69  6c 6c 20 73 74 6f 72 65  |, but will store|
0000b290  20 61 6e 79 20 66 69 6c  65 73 20 74 68 61 74 20  | any files that |
0000b2a0  65 6e 64 20 69 6e 20 2e  5a 2c 0a 20 20 20 20 20  |end in .Z,.     |
0000b2b0  20 20 20 20 20 2e 7a 69  70 2c 20 2e 74 69 66 66  |     .zip, .tiff|
0000b2c0  2c 20 2e 67 69 66 2c 20  6f 72 20 2e 73 6e 64 20  |, .gif, or .snd |
0000b2d0  77 69 74 68 6f 75 74 20  74 72 79 69 6e 67 20 74  |without trying t|
0000b2e0  6f 20 63 6f 6d 70 72 65  73 73 20 74 68 65 6d 0a  |o compress them.|
0000b2f0  20 20 20 20 20 20 20 20  20 20 28 69 6d 61 67 65  |          (image|
0000b300  20 61 6e 64 20 73 6f 75  6e 64 20 66 69 6c 65 73  | and sound files|
0000b310  20 6f 66 74 65 6e 20 68  61 76 65 20 74 68 65 69  | often have thei|
0000b320  72 20 6f 77 6e 20 73 70  65 63 69 61 6c 69 7a 65  |r own specialize|
0000b330  64 0a 20 20 20 20 20 20  20 20 20 20 63 6f 6d 70  |d.          comp|
0000b340  72 65 73 73 69 6f 6e 20  6d 65 74 68 6f 64 73 29  |ression methods)|
0000b350  2e 20 42 79 20 64 65 66  61 75 6c 74 2c 20 7a 69  |. By default, zi|
0000b360  70 20 64 6f 65 73 20 6e  6f 74 20 63 6f 6d 70 72  |p does not compr|
0000b370  65 73 73 20 66 69 6c 65  73 0a 20 20 20 20 20 20  |ess files.      |
0000b380  20 20 20 20 77 69 74 68  20 65 78 74 65 6e 73 69  |    with extensi|
0000b390  6f 6e 73 20 69 6e 20 74  68 65 20 6c 69 73 74 20  |ons in the list |
0000b3a0  2e 5a 3a 2e 7a 69 70 3a  2e 7a 6f 6f 3a 2e 61 72  |.Z:.zip:.zoo:.ar|
0000b3b0  63 3a 2e 6c 7a 68 3a 2e  61 72 6a 2e 20 53 75 63  |c:.lzh:.arj. Suc|
0000b3c0  68 0a 20 20 20 20 20 20  20 20 20 20 66 69 6c 65  |h.          file|
0000b3d0  73 20 61 72 65 20 73 74  6f 72 65 64 20 64 69 72  |s are stored dir|
0000b3e0  65 63 74 6c 79 20 69 6e  20 74 68 65 20 6f 75 74  |ectly in the out|
0000b3f0  70 75 74 20 61 72 63 68  69 76 65 2e 20 54 68 65  |put archive. The|
0000b400  0a 20 20 20 20 20 20 20  20 20 20 65 6e 76 69 72  |.          envir|
0000b410  6f 6e 6d 65 6e 74 20 76  61 72 69 61 62 6c 65 20  |onment variable |
0000b420  5a 49 50 4f 50 54 20 63  61 6e 20 62 65 20 75 73  |ZIPOPT can be us|
0000b430  65 64 20 74 6f 20 63 68  61 6e 67 65 20 74 68 65  |ed to change the|
0000b440  20 64 65 66 61 75 6c 74  0a 20 20 20 20 20 20 20  | default.       |
0000b450  20 20 20 6f 70 74 69 6f  6e 73 2e 20 46 6f 72 20  |   options. For |
0000b460  65 78 61 6d 70 6c 65 20  75 6e 64 65 72 20 55 6e  |example under Un|
0000b470  69 78 20 77 69 74 68 20  63 73 68 3a 0a 0a 20 20  |ix with csh:..  |
0000b480  20 73 65 74 65 6e 76 20  5a 49 50 4f 50 54 20 22  | setenv ZIPOPT "|
0000b490  2d 6e 20 2e 67 69 66 3a  2e 7a 69 70 22 0a 0a 20  |-n .gif:.zip".. |
0000b4a0  20 20 54 6f 20 61 74 74  65 6d 70 74 20 63 6f 6d  |  To attempt com|
0000b4b0  70 72 65 73 73 69 6f 6e  20 6f 6e 20 61 6c 6c 20  |pression on all |
0000b4c0  66 69 6c 65 73 2c 20 75  73 65 3a 0a 0a 20 20 20  |files, use:..   |
0000b4d0  7a 69 70 20 2d 6e 20 3a  20 66 6f 6f 0a 0a 20 20  |zip -n : foo..  |
0000b4e0  20 54 68 65 20 6d 61 78  69 6d 75 6d 20 63 6f 6d  | The maximum com|
0000b4f0  70 72 65 73 73 69 6f 6e  20 6f 70 74 69 6f 6e 0a  |pression option.|
0000b500  20 20 20 20 20 20 20 20  20 20 2d 39 20 61 6c 73  |          -9 als|
0000b510  6f 20 61 74 74 65 6d 70  74 73 20 63 6f 6d 70 72  |o attempts compr|
0000b520  65 73 73 69 6f 6e 20 6f  6e 20 61 6c 6c 20 66 69  |ession on all fi|
0000b530  6c 65 73 20 72 65 67 61  72 64 6c 65 73 73 20 6f  |les regardless o|
0000b540  66 0a 20 20 20 20 20 20  20 20 20 20 65 78 74 65  |f.          exte|
0000b550  6e 73 69 6f 6e 2e 0a 0a  20 20 20 4f 6e 20 41 63  |nsion...   On Ac|
0000b560  6f 72 6e 20 52 49 53 43  20 4f 53 20 73 79 73 74  |orn RISC OS syst|
0000b570  65 6d 73 20 74 68 65 20  73 75 66 66 69 78 65 73  |ems the suffixes|
0000b580  20 61 72 65 20 61 63 74  75 61 6c 6c 79 20 66 69  | are actually fi|
0000b590  6c 65 74 79 70 65 73 20  28 33 20 68 65 78 0a 20  |letypes (3 hex. |
0000b5a0  20 20 20 20 20 20 20 20  20 64 69 67 69 74 0a 20  |         digit. |
0000b5b0  20 20 20 20 20 20 20 20  20 66 6f 72 6d 61 74 29  |         format)|
0000b5c0  2e 20 42 79 20 64 65 66  61 75 6c 74 2c 20 7a 69  |. By default, zi|
0000b5d0  70 20 64 6f 65 73 20 6e  6f 74 20 63 6f 6d 70 72  |p does not compr|
0000b5e0  65 73 73 20 66 69 6c 65  73 20 77 69 74 68 20 66  |ess files with f|
0000b5f0  69 6c 65 74 79 70 65 73  0a 20 20 20 20 20 20 20  |iletypes.       |
0000b600  20 20 20 69 6e 20 74 68  65 20 6c 69 73 74 20 44  |   in the list D|
0000b610  44 43 3a 44 39 36 3a 36  38 45 20 28 69 2e 65 2e  |DC:D96:68E (i.e.|
0000b620  20 41 72 63 68 69 76 65  73 2c 20 43 46 53 20 66  | Archives, CFS f|
0000b630  69 6c 65 73 20 61 6e 64  20 50 61 63 6b 44 69 72  |iles and PackDir|
0000b640  0a 20 20 20 20 20 20 20  20 20 20 66 69 6c 65 73  |.          files|
0000b650  29 2e 0a 0a 20 20 20 2d  6e 77 0a 0a 20 20 20 2d  |)...   -nw..   -|
0000b660  2d 6e 6f 2d 77 69 6c 64  0a 20 20 20 20 20 20 20  |-no-wild.       |
0000b670  20 20 20 44 6f 20 6e 6f  74 20 70 65 72 66 6f 72  |   Do not perfor|
0000b680  6d 20 69 6e 74 65 72 6e  61 6c 20 77 69 6c 64 63  |m internal wildc|
0000b690  61 72 64 20 70 72 6f 63  65 73 73 69 6e 67 20 28  |ard processing (|
0000b6a0  73 68 65 6c 6c 20 70 72  6f 63 65 73 73 69 6e 67  |shell processing|
0000b6b0  0a 20 20 20 20 20 20 20  20 20 20 6f 66 20 77 69  |.          of wi|
0000b6c0  6c 64 63 61 72 64 73 20  69 73 20 73 74 69 6c 6c  |ldcards is still|
0000b6d0  20 64 6f 6e 65 20 62 79  20 74 68 65 20 73 68 65  | done by the she|
0000b6e0  6c 6c 20 75 6e 6c 65 73  73 20 74 68 65 20 61 72  |ll unless the ar|
0000b6f0  67 75 6d 65 6e 74 73 0a  20 20 20 20 20 20 20 20  |guments.        |
0000b700  20 20 61 72 65 20 65 73  63 61 70 65 64 29 2e 20  |  are escaped). |
0000b710  55 73 65 66 75 6c 20 69  66 20 61 20 6c 69 73 74  |Useful if a list|
0000b720  20 6f 66 20 70 61 74 68  73 20 69 73 20 62 65 69  | of paths is bei|
0000b730  6e 67 20 72 65 61 64 20  61 6e 64 20 6e 6f 0a 20  |ng read and no. |
0000b740  20 20 20 20 20 20 20 20  20 77 69 6c 64 63 61 72  |         wildcar|
0000b750  64 20 73 75 62 73 74 69  74 75 74 69 6f 6e 20 69  |d substitution i|
0000b760  73 20 64 65 73 69 72 65  64 2e 0a 0a 20 20 20 2d  |s desired...   -|
0000b770  4e 0a 0a 20 20 20 2d 2d  6e 6f 74 65 73 0a 20 20  |N..   --notes.  |
0000b780  20 20 20 20 20 20 20 20  5b 41 6d 69 67 61 2c 20  |        [Amiga, |
0000b790  4d 61 63 4f 53 5d 20 53  61 76 65 20 41 6d 69 67  |MacOS] Save Amig|
0000b7a0  61 20 6f 72 20 4d 61 63  4f 53 20 66 69 6c 65 6e  |a or MacOS filen|
0000b7b0  6f 74 65 73 20 61 73 20  7a 69 70 66 69 6c 65 0a  |otes as zipfile.|
0000b7c0  20 20 20 20 20 20 20 20  20 20 63 6f 6d 6d 65 6e  |          commen|
0000b7d0  74 73 2e 20 54 68 65 79  20 63 61 6e 20 62 65 20  |ts. They can be |
0000b7e0  72 65 73 74 6f 72 65 64  20 62 79 20 75 73 69 6e  |restored by usin|
0000b7f0  67 20 74 68 65 20 2d 4e  20 6f 70 74 69 6f 6e 20  |g the -N option |
0000b800  6f 66 20 75 6e 7a 69 70  2e 0a 20 20 20 20 20 20  |of unzip..      |
0000b810  20 20 20 20 49 66 20 2d  63 20 69 73 20 75 73 65  |    If -c is use|
0000b820  64 20 61 6c 73 6f 2c 20  79 6f 75 20 61 72 65 20  |d also, you are |
0000b830  70 72 6f 6d 70 74 65 64  20 66 6f 72 20 63 6f 6d  |prompted for com|
0000b840  6d 65 6e 74 73 20 6f 6e  6c 79 20 66 6f 72 0a 20  |ments only for. |
0000b850  20 20 20 20 20 20 20 20  20 74 68 6f 73 65 20 66  |         those f|
0000b860  69 6c 65 73 20 74 68 61  74 20 64 6f 20 6e 6f 74  |iles that do not|
0000b870  20 68 61 76 65 20 66 69  6c 65 6e 6f 74 65 73 2e  | have filenotes.|
0000b880  0a 0a 20 20 20 2d 6f 0a  0a 20 20 20 2d 2d 6c 61  |..   -o..   --la|
0000b890  74 65 73 74 2d 74 69 6d  65 0a 20 20 20 20 20 20  |test-time.      |
0000b8a0  20 20 20 20 53 65 74 20  74 68 65 20 22 6c 61 73  |    Set the "las|
0000b8b0  74 20 6d 6f 64 69 66 69  65 64 22 20 74 69 6d 65  |t modified" time|
0000b8c0  20 6f 66 20 74 68 65 20  7a 69 70 20 61 72 63 68  | of the zip arch|
0000b8d0  69 76 65 20 74 6f 20 74  68 65 20 6c 61 74 65 73  |ive to the lates|
0000b8e0  74 0a 20 20 20 20 20 20  20 20 20 20 28 6f 6c 64  |t.          (old|
0000b8f0  65 73 74 29 20 22 6c 61  73 74 20 6d 6f 64 69 66  |est) "last modif|
0000b900  69 65 64 22 20 74 69 6d  65 20 66 6f 75 6e 64 20  |ied" time found |
0000b910  61 6d 6f 6e 67 20 74 68  65 20 65 6e 74 72 69 65  |among the entrie|
0000b920  73 20 69 6e 20 74 68 65  0a 20 20 20 20 20 20 20  |s in the.       |
0000b930  20 20 20 7a 69 70 20 61  72 63 68 69 76 65 2e 20  |   zip archive. |
0000b940  54 68 69 73 20 63 61 6e  20 62 65 20 75 73 65 64  |This can be used|
0000b950  20 77 69 74 68 6f 75 74  20 61 6e 79 20 6f 74 68  | without any oth|
0000b960  65 72 20 6f 70 65 72 61  74 69 6f 6e 73 2c 20 69  |er operations, i|
0000b970  66 0a 20 20 20 20 20 20  20 20 20 20 64 65 73 69  |f.          desi|
0000b980  72 65 64 2e 20 46 6f 72  20 65 78 61 6d 70 6c 65  |red. For example|
0000b990  3a 0a 0a 20 20 20 7a 69  70 20 2d 6f 20 66 6f 6f  |:..   zip -o foo|
0000b9a0  0a 0a 20 20 20 77 69 6c  6c 20 63 68 61 6e 67 65  |..   will change|
0000b9b0  20 74 68 65 20 6c 61 73  74 20 6d 6f 64 69 66 69  | the last modifi|
0000b9c0  65 64 20 74 69 6d 65 20  6f 66 0a 20 20 20 20 20  |ed time of.     |
0000b9d0  20 20 20 20 20 66 6f 6f  2e 7a 69 70 20 74 6f 20  |     foo.zip to |
0000b9e0  74 68 65 20 6c 61 74 65  73 74 20 74 69 6d 65 20  |the latest time |
0000b9f0  6f 66 20 74 68 65 20 65  6e 74 72 69 65 73 20 69  |of the entries i|
0000ba00  6e 20 66 6f 6f 2e 7a 69  70 2e 0a 0a 20 20 20 2d  |n foo.zip...   -|
0000ba10  4f 20 6f 75 74 70 75 74  2d 66 69 6c 65 0a 0a 20  |O output-file.. |
0000ba20  20 20 2d 2d 6f 75 74 70  75 74 2d 66 69 6c 65 20  |  --output-file |
0000ba30  6f 75 74 70 75 74 2d 66  69 6c 65 0a 20 20 20 20  |output-file.    |
0000ba40  20 20 20 20 20 20 50 72  6f 63 65 73 73 20 74 68  |      Process th|
0000ba50  65 20 61 72 63 68 69 76  65 20 63 68 61 6e 67 65  |e archive change|
0000ba60  73 20 61 73 20 75 73 75  61 6c 2c 20 62 75 74 20  |s as usual, but |
0000ba70  69 6e 73 74 65 61 64 20  6f 66 20 75 70 64 61 74  |instead of updat|
0000ba80  69 6e 67 0a 20 20 20 20  20 20 20 20 20 20 74 68  |ing.          th|
0000ba90  65 20 65 78 69 73 74 69  6e 67 20 61 72 63 68 69  |e existing archi|
0000baa0  76 65 2c 20 6f 75 74 70  75 74 20 74 68 65 20 6e  |ve, output the n|
0000bab0  65 77 20 61 72 63 68 69  76 65 20 74 6f 20 6f 75  |ew archive to ou|
0000bac0  74 70 75 74 2d 66 69 6c  65 2e 0a 20 20 20 20 20  |tput-file..     |
0000bad0  20 20 20 20 20 55 73 65  66 75 6c 20 66 6f 72 20  |     Useful for |
0000bae0  75 70 64 61 74 69 6e 67  20 61 6e 20 61 72 63 68  |updating an arch|
0000baf0  69 76 65 20 77 69 74 68  6f 75 74 20 63 68 61 6e  |ive without chan|
0000bb00  67 69 6e 67 20 74 68 65  20 65 78 69 73 74 69 6e  |ging the existin|
0000bb10  67 0a 20 20 20 20 20 20  20 20 20 20 61 72 63 68  |g.          arch|
0000bb20  69 76 65 20 61 6e 64 20  74 68 65 20 69 6e 70 75  |ive and the inpu|
0000bb30  74 20 61 72 63 68 69 76  65 20 6d 75 73 74 20 62  |t archive must b|
0000bb40  65 20 61 20 64 69 66 66  65 72 65 6e 74 20 66 69  |e a different fi|
0000bb50  6c 65 20 74 68 61 6e 20  74 68 65 0a 20 20 20 20  |le than the.    |
0000bb60  20 20 20 20 20 20 6f 75  74 70 75 74 20 61 72 63  |      output arc|
0000bb70  68 69 76 65 2e 0a 0a 20  20 20 20 20 20 20 20 20  |hive...         |
0000bb80  20 54 68 69 73 20 6f 70  74 69 6f 6e 20 63 61 6e  | This option can|
0000bb90  20 62 65 20 75 73 65 64  20 74 6f 20 63 72 65 61  | be used to crea|
0000bba0  74 65 20 75 70 64 61 74  65 64 20 73 70 6c 69 74  |te updated split|
0000bbb0  20 61 72 63 68 69 76 65  73 2e 20 49 74 0a 20 20  | archives. It.  |
0000bbc0  20 20 20 20 20 20 20 20  63 61 6e 20 61 6c 73 6f  |        can also|
0000bbd0  20 62 65 20 75 73 65 64  20 77 69 74 68 20 2d 55  | be used with -U|
0000bbe0  20 74 6f 20 63 6f 70 79  20 65 6e 74 72 69 65 73  | to copy entries|
0000bbf0  20 66 72 6f 6d 20 61 6e  20 65 78 69 73 74 69 6e  | from an existin|
0000bc00  67 0a 20 20 20 20 20 20  20 20 20 20 61 72 63 68  |g.          arch|
0000bc10  69 76 65 20 74 6f 20 61  20 6e 65 77 20 61 72 63  |ive to a new arc|
0000bc20  68 69 76 65 2e 20 53 65  65 20 74 68 65 20 45 58  |hive. See the EX|
0000bc30  41 4d 50 4c 45 53 20 73  65 63 74 69 6f 6e 20 62  |AMPLES section b|
0000bc40  65 6c 6f 77 2e 0a 0a 20  20 20 20 20 20 20 20 20  |elow...         |
0000bc50  20 41 6e 6f 74 68 65 72  20 75 73 65 20 69 73 20  | Another use is |
0000bc60  63 6f 6e 76 65 72 74 69  6e 67 20 7a 69 70 20 66  |converting zip f|
0000bc70  69 6c 65 73 20 66 72 6f  6d 20 6f 6e 65 20 73 70  |iles from one sp|
0000bc80  6c 69 74 20 73 69 7a 65  20 74 6f 0a 20 20 20 20  |lit size to.    |
0000bc90  20 20 20 20 20 20 61 6e  6f 74 68 65 72 2e 20 46  |      another. F|
0000bca0  6f 72 20 69 6e 73 74 61  6e 63 65 2c 20 74 6f 20  |or instance, to |
0000bcb0  63 6f 6e 76 65 72 74 20  61 6e 20 61 72 63 68 69  |convert an archi|
0000bcc0  76 65 20 77 69 74 68 20  37 30 30 20 4d 42 20 43  |ve with 700 MB C|
0000bcd0  44 0a 20 20 20 20 20 20  20 20 20 20 73 70 6c 69  |D.          spli|
0000bce0  74 73 20 74 6f 20 6f 6e  65 20 77 69 74 68 20 32  |ts to one with 2|
0000bcf0  20 47 42 20 44 56 44 20  73 70 6c 69 74 73 2c 20  | GB DVD splits, |
0000bd00  63 61 6e 20 75 73 65 3a  0a 0a 20 20 20 7a 69 70  |can use:..   zip|
0000bd10  20 2d 73 20 32 67 20 63  64 2d 73 70 6c 69 74 2e  | -s 2g cd-split.|
0000bd20  7a 69 70 20 2d 2d 6f 75  74 20 64 76 64 2d 73 70  |zip --out dvd-sp|
0000bd30  6c 69 74 2e 7a 69 70 0a  0a 20 20 20 77 68 69 63  |lit.zip..   whic|
0000bd40  68 20 75 73 65 73 20 63  6f 70 79 20 6d 6f 64 65  |h uses copy mode|
0000bd50  2e 20 53 65 65 20 2d 55  20 62 65 6c 6f 77 2e 20  |. See -U below. |
0000bd60  41 6c 73 6f 3a 0a 0a 20  20 20 7a 69 70 20 2d 73  |Also:..   zip -s|
0000bd70  20 30 20 73 70 6c 69 74  2e 7a 69 70 20 2d 2d 6f  | 0 split.zip --o|
0000bd80  75 74 20 75 6e 73 70 6c  69 74 2e 7a 69 70 0a 0a  |ut unsplit.zip..|
0000bd90  20 20 20 77 69 6c 6c 20  63 6f 6e 76 65 72 74 20  |   will convert |
0000bda0  61 20 73 70 6c 69 74 20  61 72 63 68 69 76 65 20  |a split archive |
0000bdb0  74 6f 20 61 20 73 69 6e  67 6c 65 2d 66 69 6c 65  |to a single-file|
0000bdc0  20 61 72 63 68 69 76 65  2e 0a 20 20 20 20 20 20  | archive..      |
0000bdd0  20 20 20 20 43 6f 70 79  20 6d 6f 64 65 20 77 69  |    Copy mode wi|
0000bde0  6c 6c 20 63 6f 6e 76 65  72 74 20 73 74 72 65 61  |ll convert strea|
0000bdf0  6d 20 65 6e 74 72 69 65  73 20 28 75 73 69 6e 67  |m entries (using|
0000be00  20 64 61 74 61 20 64 65  73 63 72 69 70 74 6f 72  | data descriptor|
0000be10  73 0a 20 20 20 20 20 20  20 20 20 20 61 6e 64 20  |s.          and |
0000be20  77 68 69 63 68 20 73 68  6f 75 6c 64 20 62 65 20  |which should be |
0000be30  63 6f 6d 70 61 74 69 62  6c 65 20 77 69 74 68 20  |compatible with |
0000be40  6d 6f 73 74 20 75 6e 7a  69 70 73 29 20 74 6f 20  |most unzips) to |
0000be50  6e 6f 72 6d 61 6c 0a 20  20 20 20 20 20 20 20 20  |normal.         |
0000be60  20 65 6e 74 72 69 65 73  20 28 77 68 69 63 68 20  | entries (which |
0000be70  73 68 6f 75 6c 64 20 62  65 20 63 6f 6d 70 61 74  |should be compat|
0000be80  69 62 6c 65 20 77 69 74  68 20 61 6c 6c 20 75 6e  |ible with all un|
0000be90  7a 69 70 73 29 2c 20 65  78 63 65 70 74 20 69 66  |zips), except if|
0000bea0  0a 20 20 20 20 20 20 20  20 20 20 73 74 61 6e 64  |.          stand|
0000beb0  61 72 64 20 65 6e 63 72  79 70 74 69 6f 6e 20 77  |ard encryption w|
0000bec0  61 73 20 75 73 65 64 2e  20 46 6f 72 20 61 72 63  |as used. For arc|
0000bed0  68 69 76 65 73 20 77 69  74 68 20 65 6e 63 72 79  |hives with encry|
0000bee0  70 74 65 64 0a 20 20 20  20 20 20 20 20 20 20 65  |pted.          e|
0000bef0  6e 74 72 69 65 73 2c 20  7a 69 70 63 6c 6f 61 6b  |ntries, zipcloak|
0000bf00  20 77 69 6c 6c 20 64 65  63 72 79 70 74 20 74 68  | will decrypt th|
0000bf10  65 20 65 6e 74 72 69 65  73 20 61 6e 64 20 63 6f  |e entries and co|
0000bf20  6e 76 65 72 74 20 74 68  65 6d 20 74 6f 0a 20 20  |nvert them to.  |
0000bf30  20 20 20 20 20 20 20 20  6e 6f 72 6d 61 6c 20 65  |        normal e|
0000bf40  6e 74 72 69 65 73 2e 0a  0a 20 20 20 2d 70 0a 0a  |ntries...   -p..|
0000bf50  20 20 20 2d 2d 70 61 74  68 73 0a 20 20 20 20 20  |   --paths.     |
0000bf60  20 20 20 20 20 49 6e 63  6c 75 64 65 20 72 65 6c  |     Include rel|
0000bf70  61 74 69 76 65 20 66 69  6c 65 20 70 61 74 68 73  |ative file paths|
0000bf80  20 61 73 20 70 61 72 74  20 6f 66 20 74 68 65 20  | as part of the |
0000bf90  6e 61 6d 65 73 20 6f 66  20 66 69 6c 65 73 0a 20  |names of files. |
0000bfa0  20 20 20 20 20 20 20 20  20 73 74 6f 72 65 64 20  |         stored |
0000bfb0  69 6e 20 74 68 65 20 61  72 63 68 69 76 65 2e 20  |in the archive. |
0000bfc0  54 68 69 73 20 69 73 20  74 68 65 20 64 65 66 61  |This is the defa|
0000bfd0  75 6c 74 2e 20 54 68 65  20 2d 6a 20 6f 70 74 69  |ult. The -j opti|
0000bfe0  6f 6e 20 6a 75 6e 6b 73  0a 20 20 20 20 20 20 20  |on junks.       |
0000bff0  20 20 20 74 68 65 20 70  61 74 68 73 20 61 6e 64  |   the paths and|
0000c000  20 6a 75 73 74 20 73 74  6f 72 65 73 20 74 68 65  | just stores the|
0000c010  20 6e 61 6d 65 73 20 6f  66 20 74 68 65 20 66 69  | names of the fi|
0000c020  6c 65 73 2e 0a 0a 20 20  20 2d 50 20 70 61 73 73  |les...   -P pass|
0000c030  77 6f 72 64 0a 0a 20 20  20 2d 2d 70 61 73 73 77  |word..   --passw|
0000c040  6f 72 64 20 70 61 73 73  77 6f 72 64 0a 20 20 20  |ord password.   |
0000c050  20 20 20 20 20 20 20 55  73 65 20 70 61 73 73 77  |       Use passw|
0000c060  6f 72 64 20 74 6f 20 65  6e 63 72 79 70 74 20 7a  |ord to encrypt z|
0000c070  69 70 66 69 6c 65 20 65  6e 74 72 69 65 73 20 28  |ipfile entries (|
0000c080  69 66 20 61 6e 79 29 2e  20 54 48 49 53 20 49 53  |if any). THIS IS|
0000c090  0a 20 20 20 20 20 20 20  20 20 20 49 4e 53 45 43  |.          INSEC|
0000c0a0  55 52 45 21 20 4d 61 6e  79 20 6d 75 6c 74 69 2d  |URE! Many multi-|
0000c0b0  75 73 65 72 20 6f 70 65  72 61 74 69 6e 67 20 73  |user operating s|
0000c0c0  79 73 74 65 6d 73 20 70  72 6f 76 69 64 65 20 77  |ystems provide w|
0000c0d0  61 79 73 20 66 6f 72 0a  20 20 20 20 20 20 20 20  |ays for.        |
0000c0e0  20 20 61 6e 79 20 75 73  65 72 20 74 6f 20 73 65  |  any user to se|
0000c0f0  65 20 74 68 65 20 63 75  72 72 65 6e 74 20 63 6f  |e the current co|
0000c100  6d 6d 61 6e 64 20 6c 69  6e 65 20 6f 66 20 61 6e  |mmand line of an|
0000c110  79 20 6f 74 68 65 72 20  75 73 65 72 3b 0a 20 20  |y other user;.  |
0000c120  20 20 20 20 20 20 20 20  65 76 65 6e 20 6f 6e 20  |        even on |
0000c130  73 74 61 6e 64 2d 61 6c  6f 6e 65 20 73 79 73 74  |stand-alone syst|
0000c140  65 6d 73 20 74 68 65 72  65 20 69 73 20 61 6c 77  |ems there is alw|
0000c150  61 79 73 20 74 68 65 20  74 68 72 65 61 74 20 6f  |ays the threat o|
0000c160  66 0a 20 20 20 20 20 20  20 20 20 20 6f 76 65 72  |f.          over|
0000c170  2d 74 68 65 2d 73 68 6f  75 6c 64 65 72 20 70 65  |-the-shoulder pe|
0000c180  65 6b 69 6e 67 2e 20 53  74 6f 72 69 6e 67 20 74  |eking. Storing t|
0000c190  68 65 20 70 6c 61 69 6e  74 65 78 74 20 70 61 73  |he plaintext pas|
0000c1a0  73 77 6f 72 64 20 61 73  0a 20 20 20 20 20 20 20  |sword as.       |
0000c1b0  20 20 20 70 61 72 74 20  6f 66 20 61 20 63 6f 6d  |   part of a com|
0000c1c0  6d 61 6e 64 20 6c 69 6e  65 20 69 6e 20 61 6e 20  |mand line in an |
0000c1d0  61 75 74 6f 6d 61 74 65  64 20 73 63 72 69 70 74  |automated script|
0000c1e0  20 69 73 20 65 76 65 6e  20 77 6f 72 73 65 2e 0a  | is even worse..|
0000c1f0  20 20 20 20 20 20 20 20  20 20 57 68 65 6e 65 76  |          Whenev|
0000c200  65 72 20 70 6f 73 73 69  62 6c 65 2c 20 75 73 65  |er possible, use|
0000c210  20 74 68 65 20 6e 6f 6e  2d 65 63 68 6f 69 6e 67  | the non-echoing|
0000c220  2c 20 69 6e 74 65 72 61  63 74 69 76 65 20 70 72  |, interactive pr|
0000c230  6f 6d 70 74 20 74 6f 0a  20 20 20 20 20 20 20 20  |ompt to.        |
0000c240  20 20 65 6e 74 65 72 20  70 61 73 73 77 6f 72 64  |  enter password|
0000c250  73 2e 20 28 41 6e 64 20  77 68 65 72 65 20 73 65  |s. (And where se|
0000c260  63 75 72 69 74 79 20 69  73 20 74 72 75 6c 79 20  |curity is truly |
0000c270  69 6d 70 6f 72 74 61 6e  74 2c 20 75 73 65 0a 20  |important, use. |
0000c280  20 20 20 20 20 20 20 20  20 73 74 72 6f 6e 67 20  |         strong |
0000c290  65 6e 63 72 79 70 74 69  6f 6e 20 73 75 63 68 20  |encryption such |
0000c2a0  61 73 20 50 72 65 74 74  79 20 47 6f 6f 64 20 50  |as Pretty Good P|
0000c2b0  72 69 76 61 63 79 20 69  6e 73 74 65 61 64 20 6f  |rivacy instead o|
0000c2c0  66 20 74 68 65 0a 20 20  20 20 20 20 20 20 20 20  |f the.          |
0000c2d0  72 65 6c 61 74 69 76 65  6c 79 20 77 65 61 6b 20  |relatively weak |
0000c2e0  73 74 61 6e 64 61 72 64  20 65 6e 63 72 79 70 74  |standard encrypt|
0000c2f0  69 6f 6e 20 70 72 6f 76  69 64 65 64 20 62 79 20  |ion provided by |
0000c300  7a 69 70 66 69 6c 65 0a  20 20 20 20 20 20 20 20  |zipfile.        |
0000c310  20 20 75 74 69 6c 69 74  69 65 73 2e 29 0a 0a 20  |  utilities.).. |
0000c320  20 20 2d 71 0a 0a 20 20  20 2d 2d 71 75 69 65 74  |  -q..   --quiet|
0000c330  0a 20 20 20 20 20 20 20  20 20 20 51 75 69 65 74  |.          Quiet|
0000c340  20 6d 6f 64 65 3b 20 65  6c 69 6d 69 6e 61 74 65  | mode; eliminate|
0000c350  20 69 6e 66 6f 72 6d 61  74 69 6f 6e 61 6c 20 6d  | informational m|
0000c360  65 73 73 61 67 65 73 20  61 6e 64 20 63 6f 6d 6d  |essages and comm|
0000c370  65 6e 74 0a 20 20 20 20  20 20 20 20 20 20 70 72  |ent.          pr|
0000c380  6f 6d 70 74 73 2e 20 28  55 73 65 66 75 6c 2c 20  |ompts. (Useful, |
0000c390  66 6f 72 20 65 78 61 6d  70 6c 65 2c 20 69 6e 20  |for example, in |
0000c3a0  73 68 65 6c 6c 20 73 63  72 69 70 74 73 20 61 6e  |shell scripts an|
0000c3b0  64 20 62 61 63 6b 67 72  6f 75 6e 64 0a 20 20 20  |d background.   |
0000c3c0  20 20 20 20 20 20 20 74  61 73 6b 73 29 2e 0a 0a  |       tasks)...|
0000c3d0  20 20 20 2d 51 6e 0a 0a  20 20 20 2d 2d 51 2d 66  |   -Qn..   --Q-f|
0000c3e0  6c 61 67 20 6e 0a 20 20  20 20 20 20 20 20 20 20  |lag n.          |
0000c3f0  5b 51 44 4f 53 5d 20 73  74 6f 72 65 20 69 6e 66  |[QDOS] store inf|
0000c400  6f 72 6d 61 74 69 6f 6e  20 61 62 6f 75 74 20 74  |ormation about t|
0000c410  68 65 20 66 69 6c 65 20  69 6e 20 74 68 65 20 66  |he file in the f|
0000c420  69 6c 65 20 68 65 61 64  65 72 20 77 69 74 68 0a  |ile header with.|
0000c430  20 20 20 20 20 20 20 20  20 20 6e 20 64 65 66 69  |          n defi|
0000c440  6e 65 64 20 61 73 0a 0a  20 20 20 20 20 62 69 74  |ned as..     bit|
0000c450  20 30 3a 0a 0a 20 20 20  44 6f 6e 27 74 20 61 64  | 0:..   Don't ad|
0000c460  64 20 68 65 61 64 65 72  73 20 66 6f 72 20 61 6e  |d headers for an|
0000c470  79 20 66 69 6c 65 0a 0a  20 20 20 20 20 62 69 74  |y file..     bit|
0000c480  20 31 3a 20 41 64 64 20  68 65 61 64 65 72 73 20  | 1: Add headers |
0000c490  66 6f 72 20 61 6c 6c 20  66 69 6c 65 73 0a 0a 20  |for all files.. |
0000c4a0  20 20 20 20 62 69 74 20  32 3a 20 44 6f 6e 27 74  |    bit 2: Don't|
0000c4b0  20 77 61 69 74 20 66 6f  72 20 69 6e 74 65 72 61  | wait for intera|
0000c4c0  63 74 69 76 65 20 6b 65  79 20 70 72 65 73 73 20  |ctive key press |
0000c4d0  6f 6e 20 65 78 69 74 0a  0a 20 20 20 2d 72 0a 0a  |on exit..   -r..|
0000c4e0  20 20 20 2d 2d 72 65 63  75 72 73 65 2d 70 61 74  |   --recurse-pat|
0000c4f0  68 73 0a 20 20 20 20 20  20 20 20 20 20 54 72 61  |hs.          Tra|
0000c500  76 65 6c 20 74 68 65 20  64 69 72 65 63 74 6f 72  |vel the director|
0000c510  79 20 73 74 72 75 63 74  75 72 65 20 72 65 63 75  |y structure recu|
0000c520  72 73 69 76 65 6c 79 3b  20 66 6f 72 20 65 78 61  |rsively; for exa|
0000c530  6d 70 6c 65 3a 0a 0a 20  20 20 7a 69 70 20 2d 72  |mple:..   zip -r|
0000c540  20 66 6f 6f 2e 7a 69 70  20 66 6f 6f 0a 0a 20 20  | foo.zip foo..  |
0000c550  20 6f 72 20 6d 6f 72 65  20 63 6f 6e 63 69 73 65  | or more concise|
0000c560  6c 79 0a 0a 20 20 20 7a  69 70 20 2d 72 20 66 6f  |ly..   zip -r fo|
0000c570  6f 20 66 6f 6f 0a 0a 20  20 20 49 6e 20 74 68 69  |o foo..   In thi|
0000c580  73 20 63 61 73 65 2c 20  61 6c 6c 20 74 68 65 20  |s case, all the |
0000c590  66 69 6c 65 73 20 61 6e  64 20 64 69 72 65 63 74  |files and direct|
0000c5a0  6f 72 69 65 73 20 69 6e  0a 20 20 20 20 20 20 20  |ories in.       |
0000c5b0  20 20 20 66 6f 6f 20 61  72 65 20 73 61 76 65 64  |   foo are saved|
0000c5c0  20 69 6e 20 61 20 7a 69  70 20 61 72 63 68 69 76  | in a zip archiv|
0000c5d0  65 20 6e 61 6d 65 64 20  66 6f 6f 2e 7a 69 70 2c  |e named foo.zip,|
0000c5e0  20 69 6e 63 6c 75 64 69  6e 67 20 66 69 6c 65 73  | including files|
0000c5f0  0a 20 20 20 20 20 20 20  20 20 20 77 69 74 68 20  |.          with |
0000c600  6e 61 6d 65 73 20 73 74  61 72 74 69 6e 67 20 77  |names starting w|
0000c610  69 74 68 20 22 2e 22 2c  20 73 69 6e 63 65 20 74  |ith ".", since t|
0000c620  68 65 20 72 65 63 75 72  73 69 6f 6e 20 64 6f 65  |he recursion doe|
0000c630  73 20 6e 6f 74 20 75 73  65 0a 20 20 20 20 20 20  |s not use.      |
0000c640  20 20 20 20 74 68 65 20  73 68 65 6c 6c 27 73 20  |    the shell's |
0000c650  66 69 6c 65 2d 6e 61 6d  65 20 73 75 62 73 74 69  |file-name substi|
0000c660  74 75 74 69 6f 6e 20 6d  65 63 68 61 6e 69 73 6d  |tution mechanism|
0000c670  2e 20 49 66 20 79 6f 75  20 77 69 73 68 20 74 6f  |. If you wish to|
0000c680  0a 20 20 20 20 20 20 20  20 20 20 69 6e 63 6c 75  |.          inclu|
0000c690  64 65 20 6f 6e 6c 79 20  61 20 73 70 65 63 69 66  |de only a specif|
0000c6a0  69 63 20 73 75 62 73 65  74 20 6f 66 20 74 68 65  |ic subset of the|
0000c6b0  20 66 69 6c 65 73 20 69  6e 20 64 69 72 65 63 74  | files in direct|
0000c6c0  6f 72 79 20 66 6f 6f 0a  20 20 20 20 20 20 20 20  |ory foo.        |
0000c6d0  20 20 61 6e 64 20 69 74  73 20 73 75 62 64 69 72  |  and its subdir|
0000c6e0  65 63 74 6f 72 69 65 73  2c 20 75 73 65 20 74 68  |ectories, use th|
0000c6f0  65 20 2d 69 20 6f 70 74  69 6f 6e 20 74 6f 20 73  |e -i option to s|
0000c700  70 65 63 69 66 79 20 74  68 65 0a 20 20 20 20 20  |pecify the.     |
0000c710  20 20 20 20 20 70 61 74  74 65 72 6e 20 6f 66 20  |     pattern of |
0000c720  66 69 6c 65 73 20 74 6f  20 62 65 20 69 6e 63 6c  |files to be incl|
0000c730  75 64 65 64 2e 20 59 6f  75 20 73 68 6f 75 6c 64  |uded. You should|
0000c740  20 6e 6f 74 20 75 73 65  20 2d 72 20 77 69 74 68  | not use -r with|
0000c750  20 74 68 65 0a 20 20 20  20 20 20 20 20 20 20 6e  | the.          n|
0000c760  61 6d 65 20 22 2e 2a 22  2c 20 73 69 6e 63 65 20  |ame ".*", since |
0000c770  74 68 61 74 20 6d 61 74  63 68 65 73 20 22 2e 2e  |that matches "..|
0000c780  22 20 77 68 69 63 68 20  77 69 6c 6c 20 61 74 74  |" which will att|
0000c790  65 6d 70 74 20 74 6f 20  7a 69 70 20 75 70 0a 20  |empt to zip up. |
0000c7a0  20 20 20 20 20 20 20 20  20 74 68 65 20 70 61 72  |         the par|
0000c7b0  65 6e 74 20 64 69 72 65  63 74 6f 72 79 20 28 70  |ent directory (p|
0000c7c0  72 6f 62 61 62 6c 79 20  6e 6f 74 20 77 68 61 74  |robably not what|
0000c7d0  20 77 61 73 20 69 6e 74  65 6e 64 65 64 29 2e 0a  | was intended)..|
0000c7e0  0a 20 20 20 4d 75 6c 74  69 70 6c 65 20 73 6f 75  |.   Multiple sou|
0000c7f0  72 63 65 20 64 69 72 65  63 74 6f 72 69 65 73 20  |rce directories |
0000c800  61 72 65 20 61 6c 6c 6f  77 65 64 20 61 73 20 69  |are allowed as i|
0000c810  6e 0a 0a 20 20 20 7a 69  70 20 2d 72 20 66 6f 6f  |n..   zip -r foo|
0000c820  20 66 6f 6f 31 20 66 6f  6f 32 0a 0a 20 20 20 77  | foo1 foo2..   w|
0000c830  68 69 63 68 20 66 69 72  73 74 20 7a 69 70 73 20  |hich first zips |
0000c840  75 70 20 66 6f 6f 31 20  61 6e 64 20 74 68 65 6e  |up foo1 and then|
0000c850  20 66 6f 6f 32 2c 20 67  6f 69 6e 67 20 64 6f 77  | foo2, going dow|
0000c860  6e 20 65 61 63 68 20 64  69 72 65 63 74 6f 72 79  |n each directory|
0000c870  2e 0a 0a 20 20 20 4e 6f  74 65 20 74 68 61 74 20  |...   Note that |
0000c880  77 68 69 6c 65 20 77 69  6c 64 63 61 72 64 73 20  |while wildcards |
0000c890  74 6f 20 2d 72 20 61 72  65 20 74 79 70 69 63 61  |to -r are typica|
0000c8a0  6c 6c 79 20 72 65 73 6f  6c 76 65 64 20 77 68 69  |lly resolved whi|
0000c8b0  6c 65 20 72 65 63 75 72  73 69 6e 67 0a 20 20 20  |le recursing.   |
0000c8c0  20 20 20 20 20 20 20 64  6f 77 6e 0a 20 20 20 20  |       down.    |
0000c8d0  20 20 20 20 20 20 64 69  72 65 63 74 6f 72 69 65  |      directorie|
0000c8e0  73 20 69 6e 20 74 68 65  20 66 69 6c 65 20 73 79  |s in the file sy|
0000c8f0  73 74 65 6d 2c 20 61 6e  79 20 2d 52 2c 20 2d 78  |stem, any -R, -x|
0000c900  2c 20 61 6e 64 20 2d 69  20 77 69 6c 64 63 61 72  |, and -i wildcar|
0000c910  64 73 0a 20 20 20 20 20  20 20 20 20 20 61 72 65  |ds.          are|
0000c920  20 61 70 70 6c 69 65 64  20 74 6f 20 69 6e 74 65  | applied to inte|
0000c930  72 6e 61 6c 20 61 72 63  68 69 76 65 20 70 61 74  |rnal archive pat|
0000c940  68 6e 61 6d 65 73 20 6f  6e 63 65 20 74 68 65 20  |hnames once the |
0000c950  64 69 72 65 63 74 6f 72  69 65 73 0a 20 20 20 20  |directories.    |
0000c960  20 20 20 20 20 20 61 72  65 20 73 63 61 6e 6e 65  |      are scanne|
0000c970  64 2e 20 54 6f 20 68 61  76 65 20 77 69 6c 64 63  |d. To have wildc|
0000c980  61 72 64 73 20 61 70 70  6c 79 20 74 6f 20 66 69  |ards apply to fi|
0000c990  6c 65 73 20 69 6e 20 73  75 62 64 69 72 65 63 74  |les in subdirect|
0000c9a0  6f 72 69 65 73 0a 20 20  20 20 20 20 20 20 20 20  |ories.          |
0000c9b0  77 68 65 6e 20 72 65 63  75 72 73 69 6e 67 20 6f  |when recursing o|
0000c9c0  6e 20 55 6e 69 78 20 61  6e 64 20 73 69 6d 69 6c  |n Unix and simil|
0000c9d0  61 72 20 73 79 73 74 65  6d 73 20 77 68 65 72 65  |ar systems where|
0000c9e0  20 74 68 65 20 73 68 65  6c 6c 20 64 6f 65 73 0a  | the shell does.|
0000c9f0  20 20 20 20 20 20 20 20  20 20 77 69 6c 64 63 61  |          wildca|
0000ca00  72 64 20 73 75 62 73 74  69 74 75 74 69 6f 6e 2c  |rd substitution,|
0000ca10  20 65 69 74 68 65 72 20  65 73 63 61 70 65 20 61  | either escape a|
0000ca20  6c 6c 20 77 69 6c 64 63  61 72 64 73 20 6f 72 20  |ll wildcards or |
0000ca30  70 75 74 20 61 6c 6c 0a  20 20 20 20 20 20 20 20  |put all.        |
0000ca40  20 20 61 72 67 75 6d 65  6e 74 73 20 77 69 74 68  |  arguments with|
0000ca50  20 77 69 6c 64 63 61 72  64 73 20 69 6e 20 71 75  | wildcards in qu|
0000ca60  6f 74 65 73 2e 20 54 68  69 73 20 6c 65 74 73 20  |otes. This lets |
0000ca70  7a 69 70 20 73 65 65 20  74 68 65 0a 20 20 20 20  |zip see the.    |
0000ca80  20 20 20 20 20 20 77 69  6c 64 63 61 72 64 73 20  |      wildcards |
0000ca90  61 6e 64 20 6d 61 74 63  68 20 66 69 6c 65 73 20  |and match files |
0000caa0  69 6e 20 73 75 62 64 69  72 65 63 74 6f 72 69 65  |in subdirectorie|
0000cab0  73 20 75 73 69 6e 67 20  74 68 65 6d 20 61 73 20  |s using them as |
0000cac0  69 74 0a 20 20 20 20 20  20 20 20 20 20 72 65 63  |it.          rec|
0000cad0  75 72 73 65 73 2e 0a 0a  20 20 20 2d 52 0a 0a 20  |urses...   -R.. |
0000cae0  20 20 2d 2d 72 65 63 75  72 73 65 2d 70 61 74 74  |  --recurse-patt|
0000caf0  65 72 6e 73 0a 20 20 20  20 20 20 20 20 20 20 54  |erns.          T|
0000cb00  72 61 76 65 6c 20 74 68  65 20 64 69 72 65 63 74  |ravel the direct|
0000cb10  6f 72 79 20 73 74 72 75  63 74 75 72 65 20 72 65  |ory structure re|
0000cb20  63 75 72 73 69 76 65 6c  79 20 73 74 61 72 74 69  |cursively starti|
0000cb30  6e 67 20 61 74 20 74 68  65 0a 20 20 20 20 20 20  |ng at the.      |
0000cb40  20 20 20 20 63 75 72 72  65 6e 74 20 64 69 72 65  |    current dire|
0000cb50  63 74 6f 72 79 3b 20 66  6f 72 20 65 78 61 6d 70  |ctory; for examp|
0000cb60  6c 65 3a 0a 0a 20 20 20  7a 69 70 20 2d 52 20 66  |le:..   zip -R f|
0000cb70  6f 6f 20 22 2a 2e 63 22  0a 0a 20 20 20 49 6e 20  |oo "*.c"..   In |
0000cb80  74 68 69 73 20 63 61 73  65 2c 20 61 6c 6c 20 74  |this case, all t|
0000cb90  68 65 20 66 69 6c 65 73  20 6d 61 74 63 68 69 6e  |he files matchin|
0000cba0  67 20 2a 2e 63 20 69 6e  20 74 68 65 20 74 72 65  |g *.c in the tre|
0000cbb0  65 20 73 74 61 72 74 69  6e 67 20 61 74 20 74 68  |e starting at th|
0000cbc0  65 0a 20 20 20 20 20 20  20 20 20 20 63 75 72 72  |e.          curr|
0000cbd0  65 6e 74 20 64 69 72 65  63 74 6f 72 79 20 61 72  |ent directory ar|
0000cbe0  65 20 73 74 6f 72 65 64  20 69 6e 74 6f 20 61 20  |e stored into a |
0000cbf0  7a 69 70 20 61 72 63 68  69 76 65 20 6e 61 6d 65  |zip archive name|
0000cc00  64 20 66 6f 6f 2e 7a 69  70 2e 0a 20 20 20 20 20  |d foo.zip..     |
0000cc10  20 20 20 20 20 4e 6f 74  65 20 74 68 61 74 20 2a  |     Note that *|
0000cc20  2e 63 20 77 69 6c 6c 20  6d 61 74 63 68 20 66 69  |.c will match fi|
0000cc30  6c 65 2e 63 2c 20 61 2f  66 69 6c 65 2e 63 20 61  |le.c, a/file.c a|
0000cc40  6e 64 20 61 2f 62 2f 2e  63 2e 20 4d 6f 72 65 20  |nd a/b/.c. More |
0000cc50  74 68 61 6e 0a 20 20 20  20 20 20 20 20 20 20 6f  |than.          o|
0000cc60  6e 65 20 70 61 74 74 65  72 6e 20 63 61 6e 20 62  |ne pattern can b|
0000cc70  65 20 6c 69 73 74 65 64  20 61 73 20 73 65 70 61  |e listed as sepa|
0000cc80  72 61 74 65 20 61 72 67  75 6d 65 6e 74 73 2e 20  |rate arguments. |
0000cc90  4e 6f 74 65 20 66 6f 72  20 50 4b 5a 49 50 0a 20  |Note for PKZIP. |
0000cca0  20 20 20 20 20 20 20 20  20 75 73 65 72 73 3a 20  |         users: |
0000ccb0  74 68 65 20 65 71 75 69  76 61 6c 65 6e 74 20 63  |the equivalent c|
0000ccc0  6f 6d 6d 61 6e 64 20 69  73 0a 0a 20 20 20 70 6b  |ommand is..   pk|
0000ccd0  7a 69 70 20 2d 72 50 20  66 6f 6f 20 2a 2e 63 0a  |zip -rP foo *.c.|
0000cce0  0a 20 20 20 50 61 74 74  65 72 6e 73 20 61 72 65  |.   Patterns are|
0000ccf0  20 72 65 6c 61 74 69 76  65 20 66 69 6c 65 20 70  | relative file p|
0000cd00  61 74 68 73 20 61 73 20  74 68 65 79 20 61 70 70  |aths as they app|
0000cd10  65 61 72 20 69 6e 20 74  68 65 20 61 72 63 68 69  |ear in the archi|
0000cd20  76 65 2c 20 6f 72 0a 20  20 20 20 20 20 20 20 20  |ve, or.         |
0000cd30  20 77 69 6c 6c 20 61 66  74 65 72 0a 20 20 20 20  | will after.    |
0000cd40  20 20 20 20 20 20 7a 69  70 70 69 6e 67 2c 20 61  |      zipping, a|
0000cd50  6e 64 20 63 61 6e 20 68  61 76 65 20 6f 70 74 69  |nd can have opti|
0000cd60  6f 6e 61 6c 20 77 69 6c  64 63 61 72 64 73 20 69  |onal wildcards i|
0000cd70  6e 20 74 68 65 6d 2e 20  46 6f 72 20 65 78 61 6d  |n them. For exam|
0000cd80  70 6c 65 2c 0a 20 20 20  20 20 20 20 20 20 20 67  |ple,.          g|
0000cd90  69 76 65 6e 20 74 68 65  20 63 75 72 72 65 6e 74  |iven the current|
0000cda0  20 64 69 72 65 63 74 6f  72 79 20 69 73 20 66 6f  | directory is fo|
0000cdb0  6f 20 61 6e 64 20 75 6e  64 65 72 20 69 74 20 61  |o and under it a|
0000cdc0  72 65 20 64 69 72 65 63  74 6f 72 69 65 73 0a 20  |re directories. |
0000cdd0  20 20 20 20 20 20 20 20  20 66 6f 6f 31 20 61 6e  |         foo1 an|
0000cde0  64 20 66 6f 6f 32 20 61  6e 64 20 69 6e 20 66 6f  |d foo2 and in fo|
0000cdf0  6f 31 20 69 73 20 74 68  65 20 66 69 6c 65 20 62  |o1 is the file b|
0000ce00  61 72 2e 63 2c 0a 0a 20  20 20 7a 69 70 20 2d 52  |ar.c,..   zip -R|
0000ce10  20 66 6f 6f 2f 2a 0a 0a  20 20 20 77 69 6c 6c 20  | foo/*..   will |
0000ce20  7a 69 70 20 75 70 20 66  6f 6f 2c 20 66 6f 6f 2f  |zip up foo, foo/|
0000ce30  66 6f 6f 31 2c 20 66 6f  6f 2f 66 6f 6f 31 2f 62  |foo1, foo/foo1/b|
0000ce40  61 72 2e 63 2c 20 61 6e  64 20 66 6f 6f 2f 66 6f  |ar.c, and foo/fo|
0000ce50  6f 32 2e 0a 0a 20 20 20  7a 69 70 20 2d 52 20 2a  |o2...   zip -R *|
0000ce60  2f 62 61 72 2e 63 0a 0a  20 20 20 77 69 6c 6c 20  |/bar.c..   will |
0000ce70  7a 69 70 20 75 70 20 66  6f 6f 2f 66 6f 6f 31 2f  |zip up foo/foo1/|
0000ce80  62 61 72 2e 63 2e 20 53  65 65 20 74 68 65 20 6e  |bar.c. See the n|
0000ce90  6f 74 65 20 66 6f 72 20  2d 72 20 6f 6e 20 65 73  |ote for -r on es|
0000cea0  63 61 70 69 6e 67 20 77  69 6c 64 63 61 72 64 73  |caping wildcards|
0000ceb0  2e 0a 0a 20 20 20 2d 52  45 0a 0a 20 20 20 2d 2d  |...   -RE..   --|
0000cec0  72 65 67 65 78 0a 20 20  20 20 20 20 20 20 20 20  |regex.          |
0000ced0  5b 57 49 4e 33 32 5d 20  42 65 66 6f 72 65 20 7a  |[WIN32] Before z|
0000cee0  69 70 20 33 2e 30 2c 20  72 65 67 75 6c 61 72 20  |ip 3.0, regular |
0000cef0  65 78 70 72 65 73 73 69  6f 6e 20 6c 69 73 74 20  |expression list |
0000cf00  6d 61 74 63 68 69 6e 67  20 77 61 73 0a 20 20 20  |matching was.   |
0000cf10  20 20 20 20 20 20 20 65  6e 61 62 6c 65 64 20 62  |       enabled b|
0000cf20  79 20 64 65 66 61 75 6c  74 20 6f 6e 20 57 69 6e  |y default on Win|
0000cf30  64 6f 77 73 20 70 6c 61  74 66 6f 72 6d 73 2e 20  |dows platforms. |
0000cf40  42 65 63 61 75 73 65 20  6f 66 20 63 6f 6e 66 75  |Because of confu|
0000cf50  73 69 6f 6e 0a 20 20 20  20 20 20 20 20 20 20 72  |sion.          r|
0000cf60  65 73 75 6c 74 69 6e 67  20 66 72 6f 6d 20 74 68  |esulting from th|
0000cf70  65 20 6e 65 65 64 20 74  6f 20 65 73 63 61 70 65  |e need to escape|
0000cf80  20 22 5b 22 20 61 6e 64  20 22 5d 22 20 69 6e 20  | "[" and "]" in |
0000cf90  6e 61 6d 65 73 2c 20 69  74 20 69 73 0a 20 20 20  |names, it is.   |
0000cfa0  20 20 20 20 20 20 20 6e  6f 77 20 6f 66 66 20 62  |       now off b|
0000cfb0  79 20 64 65 66 61 75 6c  74 20 66 6f 72 20 57 69  |y default for Wi|
0000cfc0  6e 64 6f 77 73 20 73 6f  20 22 5b 22 20 61 6e 64  |ndows so "[" and|
0000cfd0  20 22 5d 22 20 61 72 65  20 6a 75 73 74 20 6e 6f  | "]" are just no|
0000cfe0  72 6d 61 6c 0a 20 20 20  20 20 20 20 20 20 20 63  |rmal.          c|
0000cff0  68 61 72 61 63 74 65 72  73 20 69 6e 20 6e 61 6d  |haracters in nam|
0000d000  65 73 2e 20 54 68 69 73  20 6f 70 74 69 6f 6e 20  |es. This option |
0000d010  65 6e 61 62 6c 65 73 20  5b 5d 20 6d 61 74 63 68  |enables [] match|
0000d020  69 6e 67 20 61 67 61 69  6e 2e 0a 0a 20 20 20 2d  |ing again...   -|
0000d030  73 20 73 70 6c 69 74 73  69 7a 65 0a 0a 20 20 20  |s splitsize..   |
0000d040  2d 2d 73 70 6c 69 74 2d  73 69 7a 65 20 73 70 6c  |--split-size spl|
0000d050  69 74 73 69 7a 65 0a 20  20 20 20 20 20 20 20 20  |itsize.         |
0000d060  20 45 6e 61 62 6c 65 20  63 72 65 61 74 69 6e 67  | Enable creating|
0000d070  20 61 20 73 70 6c 69 74  20 61 72 63 68 69 76 65  | a split archive|
0000d080  20 61 6e 64 20 73 65 74  20 74 68 65 20 73 70 6c  | and set the spl|
0000d090  69 74 20 73 69 7a 65 2e  20 41 20 73 70 6c 69 74  |it size. A split|
0000d0a0  0a 20 20 20 20 20 20 20  20 20 20 61 72 63 68 69  |.          archi|
0000d0b0  76 65 20 69 73 20 61 6e  20 61 72 63 68 69 76 65  |ve is an archive|
0000d0c0  20 74 68 61 74 20 63 6f  75 6c 64 20 62 65 20 73  | that could be s|
0000d0d0  70 6c 69 74 20 6f 76 65  72 20 6d 61 6e 79 20 66  |plit over many f|
0000d0e0  69 6c 65 73 2e 20 41 73  0a 20 20 20 20 20 20 20  |iles. As.       |
0000d0f0  20 20 20 74 68 65 20 61  72 63 68 69 76 65 20 69  |   the archive i|
0000d100  73 20 63 72 65 61 74 65  64 2c 20 69 66 20 74 68  |s created, if th|
0000d110  65 20 73 69 7a 65 20 6f  66 20 74 68 65 20 61 72  |e size of the ar|
0000d120  63 68 69 76 65 20 72 65  61 63 68 65 73 20 74 68  |chive reaches th|
0000d130  65 0a 20 20 20 20 20 20  20 20 20 20 73 70 65 63  |e.          spec|
0000d140  69 66 69 65 64 20 73 70  6c 69 74 20 73 69 7a 65  |ified split size|
0000d150  2c 20 74 68 61 74 20 73  70 6c 69 74 20 69 73 20  |, that split is |
0000d160  63 6c 6f 73 65 64 20 61  6e 64 20 74 68 65 20 6e  |closed and the n|
0000d170  65 78 74 20 73 70 6c 69  74 0a 20 20 20 20 20 20  |ext split.      |
0000d180  20 20 20 20 6f 70 65 6e  65 64 2e 20 49 6e 20 67  |    opened. In g|
0000d190  65 6e 65 72 61 6c 20 61  6c 6c 20 73 70 6c 69 74  |eneral all split|
0000d1a0  73 20 62 75 74 20 74 68  65 20 6c 61 73 74 20 77  |s but the last w|
0000d1b0  69 6c 6c 20 62 65 20 74  68 65 20 73 70 6c 69 74  |ill be the split|
0000d1c0  0a 20 20 20 20 20 20 20  20 20 20 73 69 7a 65 20  |.          size |
0000d1d0  61 6e 64 20 74 68 65 20  6c 61 73 74 20 77 69 6c  |and the last wil|
0000d1e0  6c 20 62 65 20 77 68 61  74 65 76 65 72 20 69 73  |l be whatever is|
0000d1f0  20 6c 65 66 74 2e 20 49  66 20 74 68 65 20 65 6e  | left. If the en|
0000d200  74 69 72 65 0a 20 20 20  20 20 20 20 20 20 20 61  |tire.          a|
0000d210  72 63 68 69 76 65 20 69  73 20 73 6d 61 6c 6c 65  |rchive is smalle|
0000d220  72 20 74 68 61 6e 20 74  68 65 20 73 70 6c 69 74  |r than the split|
0000d230  20 73 69 7a 65 20 61 20  73 69 6e 67 6c 65 2d 66  | size a single-f|
0000d240  69 6c 65 20 61 72 63 68  69 76 65 20 69 73 0a 20  |ile archive is. |
0000d250  20 20 20 20 20 20 20 20  20 63 72 65 61 74 65 64  |         created|
0000d260  2e 0a 0a 20 20 20 20 20  20 20 20 20 20 53 70 6c  |...          Spl|
0000d270  69 74 20 61 72 63 68 69  76 65 73 20 61 72 65 20  |it archives are |
0000d280  73 74 6f 72 65 64 20 69  6e 20 6e 75 6d 62 65 72  |stored in number|
0000d290  65 64 20 66 69 6c 65 73  2e 20 46 6f 72 20 65 78  |ed files. For ex|
0000d2a0  61 6d 70 6c 65 2c 20 69  66 0a 20 20 20 20 20 20  |ample, if.      |
0000d2b0  20 20 20 20 74 68 65 20  6f 75 74 70 75 74 20 61  |    the output a|
0000d2c0  72 63 68 69 76 65 20 69  73 20 6e 61 6d 65 64 20  |rchive is named |
0000d2d0  61 72 63 68 69 76 65 20  61 6e 64 20 74 68 72 65  |archive and thre|
0000d2e0  65 20 73 70 6c 69 74 73  20 61 72 65 0a 20 20 20  |e splits are.   |
0000d2f0  20 20 20 20 20 20 20 72  65 71 75 69 72 65 64 2c  |       required,|
0000d300  20 74 68 65 20 72 65 73  75 6c 74 69 6e 67 20 61  | the resulting a|
0000d310  72 63 68 69 76 65 20 77  69 6c 6c 20 62 65 20 69  |rchive will be i|
0000d320  6e 20 74 68 65 20 74 68  72 65 65 20 66 69 6c 65  |n the three file|
0000d330  73 0a 20 20 20 20 20 20  20 20 20 20 61 72 63 68  |s.          arch|
0000d340  69 76 65 2e 7a 30 31 2c  20 61 72 63 68 69 76 65  |ive.z01, archive|
0000d350  2e 7a 30 32 2c 20 61 6e  64 20 61 72 63 68 69 76  |.z02, and archiv|
0000d360  65 2e 7a 69 70 2e 20 44  6f 20 6e 6f 74 20 63 68  |e.zip. Do not ch|
0000d370  61 6e 67 65 20 74 68 65  0a 20 20 20 20 20 20 20  |ange the.       |
0000d380  20 20 20 6e 75 6d 62 65  72 69 6e 67 20 6f 66 20  |   numbering of |
0000d390  74 68 65 73 65 20 66 69  6c 65 73 20 6f 72 20 74  |these files or t|
0000d3a0  68 65 20 61 72 63 68 69  76 65 20 77 69 6c 6c 20  |he archive will |
0000d3b0  6e 6f 74 20 62 65 20 72  65 61 64 61 62 6c 65 20  |not be readable |
0000d3c0  61 73 0a 20 20 20 20 20  20 20 20 20 20 74 68 65  |as.          the|
0000d3d0  73 65 20 61 72 65 20 75  73 65 64 20 74 6f 20 64  |se are used to d|
0000d3e0  65 74 65 72 6d 69 6e 65  20 74 68 65 20 6f 72 64  |etermine the ord|
0000d3f0  65 72 20 74 68 65 20 73  70 6c 69 74 73 20 61 72  |er the splits ar|
0000d400  65 20 72 65 61 64 2e 0a  0a 20 20 20 20 20 20 20  |e read...       |
0000d410  20 20 20 53 70 6c 69 74  20 73 69 7a 65 20 69 73  |   Split size is|
0000d420  20 61 20 6e 75 6d 62 65  72 20 6f 70 74 69 6f 6e  | a number option|
0000d430  61 6c 6c 79 20 66 6f 6c  6c 6f 77 65 64 20 62 79  |ally followed by|
0000d440  20 61 20 6d 75 6c 74 69  70 6c 69 65 72 2e 0a 20  | a multiplier.. |
0000d450  20 20 20 20 20 20 20 20  20 43 75 72 72 65 6e 74  |         Current|
0000d460  6c 79 20 74 68 65 20 6e  75 6d 62 65 72 20 6d 75  |ly the number mu|
0000d470  73 74 20 62 65 20 61 6e  20 69 6e 74 65 67 65 72  |st be an integer|
0000d480  2e 20 54 68 65 20 6d 75  6c 74 69 70 6c 69 65 72  |. The multiplier|
0000d490  20 63 61 6e 0a 20 20 20  20 20 20 20 20 20 20 63  | can.          c|
0000d4a0  75 72 72 65 6e 74 6c 79  20 62 65 20 6f 6e 65 20  |urrently be one |
0000d4b0  6f 66 20 6b 20 28 6b 69  6c 6f 62 79 74 65 73 29  |of k (kilobytes)|
0000d4c0  2c 20 6d 20 28 6d 65 67  61 62 79 74 65 73 29 2c  |, m (megabytes),|
0000d4d0  20 67 0a 20 20 20 20 20  20 20 20 20 20 28 67 69  | g.          (gi|
0000d4e0  67 61 62 79 74 65 73 29  2c 20 6f 72 20 74 20 28  |gabytes), or t (|
0000d4f0  74 65 72 61 62 79 74 65  73 29 2e 20 41 73 20 36  |terabytes). As 6|
0000d500  34 6b 20 69 73 20 74 68  65 20 6d 69 6e 69 6d 75  |4k is the minimu|
0000d510  6d 20 73 70 6c 69 74 0a  20 20 20 20 20 20 20 20  |m split.        |
0000d520  20 20 73 69 7a 65 2c 20  6e 75 6d 62 65 72 73 20  |  size, numbers |
0000d530  77 69 74 68 6f 75 74 20  6d 75 6c 74 69 70 6c 69  |without multipli|
0000d540  65 72 73 20 64 65 66 61  75 6c 74 20 74 6f 20 6d  |ers default to m|
0000d550  65 67 61 62 79 74 65 73  2e 20 46 6f 72 0a 20 20  |egabytes. For.  |
0000d560  20 20 20 20 20 20 20 20  65 78 61 6d 70 6c 65 2c  |        example,|
0000d570  20 74 6f 20 63 72 65 61  74 65 20 61 20 73 70 6c  | to create a spl|
0000d580  69 74 20 61 72 63 68 69  76 65 20 63 61 6c 6c 65  |it archive calle|
0000d590  64 20 66 6f 6f 20 77 69  74 68 20 74 68 65 20 63  |d foo with the c|
0000d5a0  6f 6e 74 65 6e 74 73 0a  20 20 20 20 20 20 20 20  |ontents.        |
0000d5b0  20 20 6f 66 20 74 68 65  20 62 61 72 20 64 69 72  |  of the bar dir|
0000d5c0  65 63 74 6f 72 79 20 77  69 74 68 20 73 70 6c 69  |ectory with spli|
0000d5d0  74 73 20 6f 66 20 36 37  30 20 4d 42 20 74 68 61  |ts of 670 MB tha|
0000d5e0  74 20 6d 69 67 68 74 20  62 65 20 75 73 65 66 75  |t might be usefu|
0000d5f0  6c 0a 20 20 20 20 20 20  20 20 20 20 66 6f 72 20  |l.          for |
0000d600  62 75 72 6e 69 6e 67 20  6f 6e 20 43 44 73 2c 20  |burning on CDs, |
0000d610  74 68 65 20 63 6f 6d 6d  61 6e 64 3a 0a 0a 20 20  |the command:..  |
0000d620  20 7a 69 70 20 2d 73 20  36 37 30 6d 20 2d 72 20  | zip -s 670m -r |
0000d630  66 6f 6f 20 62 61 72 0a  0a 20 20 20 63 6f 75 6c  |foo bar..   coul|
0000d640  64 20 62 65 20 75 73 65  64 2e 0a 20 20 20 20 20  |d be used..     |
0000d650  20 20 20 20 20 43 75 72  72 65 6e 74 6c 79 20 74  |     Currently t|
0000d660  68 65 20 6f 6c 64 20 73  70 6c 69 74 73 20 6f 66  |he old splits of|
0000d670  20 61 20 73 70 6c 69 74  20 61 72 63 68 69 76 65  | a split archive|
0000d680  20 61 72 65 20 6e 6f 74  20 65 78 63 6c 75 64 65  | are not exclude|
0000d690  64 0a 20 20 20 20 20 20  20 20 20 20 66 72 6f 6d  |d.          from|
0000d6a0  20 61 20 6e 65 77 20 61  72 63 68 69 76 65 2c 20  | a new archive, |
0000d6b0  62 75 74 20 74 68 65 79  20 63 61 6e 20 62 65 20  |but they can be |
0000d6c0  73 70 65 63 69 66 69 63  61 6c 6c 79 20 65 78 63  |specifically exc|
0000d6d0  6c 75 64 65 64 2e 20 49  66 0a 20 20 20 20 20 20  |luded. If.      |
0000d6e0  20 20 20 20 70 6f 73 73  69 62 6c 65 2c 20 6b 65  |    possible, ke|
0000d6f0  65 70 20 74 68 65 20 69  6e 70 75 74 20 61 6e 64  |ep the input and|
0000d700  20 6f 75 74 70 75 74 20  61 72 63 68 69 76 65 73  | output archives|
0000d710  20 6f 75 74 20 6f 66 20  74 68 65 20 70 61 74 68  | out of the path|
0000d720  0a 20 20 20 20 20 20 20  20 20 20 62 65 69 6e 67  |.          being|
0000d730  20 7a 69 70 70 65 64 20  77 68 65 6e 20 63 72 65  | zipped when cre|
0000d740  61 74 69 6e 67 20 73 70  6c 69 74 20 61 72 63 68  |ating split arch|
0000d750  69 76 65 73 2e 0a 0a 20  20 20 20 20 20 20 20 20  |ives...         |
0000d760  20 55 73 69 6e 67 20 2d  73 20 77 69 74 68 6f 75  | Using -s withou|
0000d770  74 20 2d 73 70 20 61 73  20 61 62 6f 76 65 20 63  |t -sp as above c|
0000d780  72 65 61 74 65 73 20 61  6c 6c 20 74 68 65 20 73  |reates all the s|
0000d790  70 6c 69 74 73 20 77 68  65 72 65 20 66 6f 6f 0a  |plits where foo.|
0000d7a0  20 20 20 20 20 20 20 20  20 20 69 73 20 62 65 69  |          is bei|
0000d7b0  6e 67 20 77 72 69 74 74  65 6e 2c 20 69 6e 20 74  |ng written, in t|
0000d7c0  68 69 73 20 63 61 73 65  20 74 68 65 20 63 75 72  |his case the cur|
0000d7d0  72 65 6e 74 20 64 69 72  65 63 74 6f 72 79 2e 20  |rent directory. |
0000d7e0  54 68 69 73 0a 20 20 20  20 20 20 20 20 20 20 73  |This.          s|
0000d7f0  70 6c 69 74 20 6d 6f 64  65 20 75 70 64 61 74 65  |plit mode update|
0000d800  73 20 74 68 65 20 73 70  6c 69 74 73 20 61 73 20  |s the splits as |
0000d810  74 68 65 20 61 72 63 68  69 76 65 20 69 73 20 62  |the archive is b|
0000d820  65 69 6e 67 20 63 72 65  61 74 65 64 2c 0a 20 20  |eing created,.  |
0000d830  20 20 20 20 20 20 20 20  72 65 71 75 69 72 69 6e  |        requirin|
0000d840  67 20 61 6c 6c 20 73 70  6c 69 74 73 20 74 6f 20  |g all splits to |
0000d850  72 65 6d 61 69 6e 20 77  72 69 74 61 62 6c 65 2c  |remain writable,|
0000d860  20 62 75 74 20 63 72 65  61 74 65 73 20 73 70 6c  | but creates spl|
0000d870  69 74 0a 20 20 20 20 20  20 20 20 20 20 61 72 63  |it.          arc|
0000d880  68 69 76 65 73 20 74 68  61 74 20 61 72 65 20 72  |hives that are r|
0000d890  65 61 64 61 62 6c 65 20  62 79 20 61 6e 79 20 75  |eadable by any u|
0000d8a0  6e 7a 69 70 20 74 68 61  74 20 73 75 70 70 6f 72  |nzip that suppor|
0000d8b0  74 73 20 73 70 6c 69 74  0a 20 20 20 20 20 20 20  |ts split.       |
0000d8c0  20 20 20 61 72 63 68 69  76 65 73 2e 20 53 65 65  |   archives. See|
0000d8d0  20 2d 73 70 20 62 65 6c  6f 77 20 66 6f 72 20 65  | -sp below for e|
0000d8e0  6e 61 62 6c 69 6e 67 20  73 70 6c 69 74 20 70 61  |nabling split pa|
0000d8f0  75 73 65 20 6d 6f 64 65  20 77 68 69 63 68 0a 20  |use mode which. |
0000d900  20 20 20 20 20 20 20 20  20 61 6c 6c 6f 77 73 20  |         allows |
0000d910  73 70 6c 69 74 73 20 74  6f 20 62 65 20 77 72 69  |splits to be wri|
0000d920  74 74 65 6e 20 64 69 72  65 63 74 6c 79 20 74 6f  |tten directly to|
0000d930  20 72 65 6d 6f 76 61 62  6c 65 20 6d 65 64 69 61  | removable media|
0000d940  2e 0a 0a 20 20 20 20 20  20 20 20 20 20 54 68 65  |...          The|
0000d950  20 6f 70 74 69 6f 6e 20  2d 73 76 20 63 61 6e 20  | option -sv can |
0000d960  62 65 20 75 73 65 64 20  74 6f 20 65 6e 61 62 6c  |be used to enabl|
0000d970  65 20 76 65 72 62 6f 73  65 20 73 70 6c 69 74 74  |e verbose splitt|
0000d980  69 6e 67 20 61 6e 64 0a  20 20 20 20 20 20 20 20  |ing and.        |
0000d990  20 20 70 72 6f 76 69 64  65 20 64 65 74 61 69 6c  |  provide detail|
0000d9a0  73 20 6f 66 20 68 6f 77  20 74 68 65 20 73 70 6c  |s of how the spl|
0000d9b0  69 74 74 69 6e 67 20 69  73 20 62 65 69 6e 67 20  |itting is being |
0000d9c0  64 6f 6e 65 2e 20 54 68  65 20 2d 73 62 0a 20 20  |done. The -sb.  |
0000d9d0  20 20 20 20 20 20 20 20  6f 70 74 69 6f 6e 20 63  |        option c|
0000d9e0  61 6e 20 62 65 20 75 73  65 64 20 74 6f 20 72 69  |an be used to ri|
0000d9f0  6e 67 20 74 68 65 20 62  65 6c 6c 20 77 68 65 6e  |ng the bell when|
0000da00  20 7a 69 70 20 70 61 75  73 65 73 20 66 6f 72 20  | zip pauses for |
0000da10  74 68 65 0a 20 20 20 20  20 20 20 20 20 20 6e 65  |the.          ne|
0000da20  78 74 20 73 70 6c 69 74  20 64 65 73 74 69 6e 61  |xt split destina|
0000da30  74 69 6f 6e 2e 0a 0a 20  20 20 20 20 20 20 20 20  |tion...         |
0000da40  20 53 70 6c 69 74 20 61  72 63 68 69 76 65 73 20  | Split archives |
0000da50  63 61 6e 6e 6f 74 20 62  65 20 75 70 64 61 74 65  |cannot be update|
0000da60  64 2c 20 62 75 74 20 73  65 65 20 74 68 65 20 2d  |d, but see the -|
0000da70  4f 20 28 2d 2d 6f 75 74  29 20 6f 70 74 69 6f 6e  |O (--out) option|
0000da80  0a 20 20 20 20 20 20 20  20 20 20 66 6f 72 20 68  |.          for h|
0000da90  6f 77 20 61 20 73 70 6c  69 74 20 61 72 63 68 69  |ow a split archi|
0000daa0  76 65 20 63 61 6e 20 62  65 20 75 70 64 61 74 65  |ve can be update|
0000dab0  64 20 61 73 20 69 74 20  69 73 20 63 6f 70 69 65  |d as it is copie|
0000dac0  64 20 74 6f 20 61 20 6e  65 77 0a 20 20 20 20 20  |d to a new.     |
0000dad0  20 20 20 20 20 61 72 63  68 69 76 65 2e 20 41 20  |     archive. A |
0000dae0  73 70 6c 69 74 20 61 72  63 68 69 76 65 20 63 61  |split archive ca|
0000daf0  6e 20 61 6c 73 6f 20 62  65 20 63 6f 6e 76 65 72  |n also be conver|
0000db00  74 65 64 20 69 6e 74 6f  20 61 0a 20 20 20 20 20  |ted into a.     |
0000db10  20 20 20 20 20 73 69 6e  67 6c 65 2d 66 69 6c 65  |     single-file|
0000db20  20 61 72 63 68 69 76 65  20 75 73 69 6e 67 20 61  | archive using a|
0000db30  20 73 70 6c 69 74 20 73  69 7a 65 20 6f 66 20 30  | split size of 0|
0000db40  20 6f 72 20 6e 65 67 61  74 69 6e 67 20 74 68 65  | or negating the|
0000db50  20 2d 73 0a 20 20 20 20  20 20 20 20 20 20 6f 70  | -s.          op|
0000db60  74 69 6f 6e 3a 0a 0a 20  20 20 7a 69 70 20 2d 73  |tion:..   zip -s|
0000db70  20 30 20 73 70 6c 69 74  2e 7a 69 70 20 2d 2d 6f  | 0 split.zip --o|
0000db80  75 74 20 73 69 6e 67 6c  65 2e 7a 69 70 0a 0a 20  |ut single.zip.. |
0000db90  20 20 41 6c 73 6f 20 73  65 65 20 2d 55 20 28 2d  |  Also see -U (-|
0000dba0  2d 63 6f 70 79 29 20 66  6f 72 20 6d 6f 72 65 20  |-copy) for more |
0000dbb0  6f 6e 20 75 73 69 6e 67  20 63 6f 70 79 20 6d 6f  |on using copy mo|
0000dbc0  64 65 2e 0a 0a 20 20 20  2d 73 62 0a 0a 20 20 20  |de...   -sb..   |
0000dbd0  2d 2d 73 70 6c 69 74 2d  62 65 6c 6c 0a 20 20 20  |--split-bell.   |
0000dbe0  20 20 20 20 20 20 20 49  66 20 73 70 6c 69 74 74  |       If splitt|
0000dbf0  69 6e 67 20 61 6e 64 20  75 73 69 6e 67 20 73 70  |ing and using sp|
0000dc00  6c 69 74 20 70 61 75 73  65 20 6d 6f 64 65 2c 20  |lit pause mode, |
0000dc10  72 69 6e 67 20 74 68 65  20 62 65 6c 6c 20 77 68  |ring the bell wh|
0000dc20  65 6e 20 7a 69 70 0a 20  20 20 20 20 20 20 20 20  |en zip.         |
0000dc30  20 70 61 75 73 65 73 20  66 6f 72 20 65 61 63 68  | pauses for each|
0000dc40  20 73 70 6c 69 74 20 64  65 73 74 69 6e 61 74 69  | split destinati|
0000dc50  6f 6e 2e 0a 0a 20 20 20  2d 73 63 0a 0a 20 20 20  |on...   -sc..   |
0000dc60  2d 2d 73 68 6f 77 2d 63  6f 6d 6d 61 6e 64 0a 20  |--show-command. |
0000dc70  20 20 20 20 20 20 20 20  20 53 68 6f 77 20 74 68  |         Show th|
0000dc80  65 20 63 6f 6d 6d 61 6e  64 20 6c 69 6e 65 20 73  |e command line s|
0000dc90  74 61 72 74 69 6e 67 20  7a 69 70 20 61 73 20 70  |tarting zip as p|
0000dca0  72 6f 63 65 73 73 65 64  20 61 6e 64 20 65 78 69  |rocessed and exi|
0000dcb0  74 2e 20 54 68 65 0a 20  20 20 20 20 20 20 20 20  |t. The.         |
0000dcc0  20 6e 65 77 20 63 6f 6d  6d 61 6e 64 20 70 61 72  | new command par|
0000dcd0  73 65 72 20 70 65 72 6d  75 74 65 73 20 74 68 65  |ser permutes the|
0000dce0  20 61 72 67 75 6d 65 6e  74 73 2c 20 70 75 74 74  | arguments, putt|
0000dcf0  69 6e 67 20 61 6c 6c 20  6f 70 74 69 6f 6e 73 0a  |ing all options.|
0000dd00  20 20 20 20 20 20 20 20  20 20 61 6e 64 20 61 6e  |          and an|
0000dd10  79 20 76 61 6c 75 65 73  20 61 73 73 6f 63 69 61  |y values associa|
0000dd20  74 65 64 20 77 69 74 68  20 74 68 65 6d 20 62 65  |ted with them be|
0000dd30  66 6f 72 65 20 61 6e 79  20 6e 6f 6e 2d 6f 70 74  |fore any non-opt|
0000dd40  69 6f 6e 0a 20 20 20 20  20 20 20 20 20 20 61 72  |ion.          ar|
0000dd50  67 75 6d 65 6e 74 73 2e  20 54 68 69 73 20 61 6c  |guments. This al|
0000dd60  6c 6f 77 73 20 61 6e 20  6f 70 74 69 6f 6e 20 74  |lows an option t|
0000dd70  6f 20 61 70 70 65 61 72  20 61 6e 79 77 68 65 72  |o appear anywher|
0000dd80  65 20 69 6e 20 74 68 65  0a 20 20 20 20 20 20 20  |e in the.       |
0000dd90  20 20 20 63 6f 6d 6d 61  6e 64 20 6c 69 6e 65 20  |   command line |
0000dda0  61 73 20 6c 6f 6e 67 20  61 73 20 61 6e 79 20 76  |as long as any v|
0000ddb0  61 6c 75 65 73 20 74 68  61 74 20 67 6f 20 77 69  |alues that go wi|
0000ddc0  74 68 20 74 68 65 20 6f  70 74 69 6f 6e 20 67 6f  |th the option go|
0000ddd0  0a 20 20 20 20 20 20 20  20 20 20 77 69 74 68 20  |.          with |
0000dde0  69 74 2e 20 54 68 69 73  20 6f 70 74 69 6f 6e 20  |it. This option |
0000ddf0  64 69 73 70 6c 61 79 73  20 74 68 65 20 63 6f 6d  |displays the com|
0000de00  6d 61 6e 64 20 6c 69 6e  65 20 61 73 20 7a 69 70  |mand line as zip|
0000de10  20 73 65 65 73 20 69 74  2c 0a 20 20 20 20 20 20  | sees it,.      |
0000de20  20 20 20 20 69 6e 63 6c  75 64 69 6e 67 20 61 6e  |    including an|
0000de30  79 20 61 72 67 75 6d 65  6e 74 73 20 66 72 6f 6d  |y arguments from|
0000de40  20 74 68 65 20 65 6e 76  69 72 6f 6e 6d 65 6e 74  | the environment|
0000de50  20 73 75 63 68 20 61 73  20 66 72 6f 6d 20 74 68  | such as from th|
0000de60  65 0a 20 20 20 20 20 20  20 20 20 20 5a 49 50 4f  |e.          ZIPO|
0000de70  50 54 20 76 61 72 69 61  62 6c 65 2e 20 57 68 65  |PT variable. Whe|
0000de80  72 65 20 61 6c 6c 6f 77  65 64 2c 20 6f 70 74 69  |re allowed, opti|
0000de90  6f 6e 73 20 6c 61 74 65  72 20 69 6e 20 74 68 65  |ons later in the|
0000dea0  20 63 6f 6d 6d 61 6e 64  0a 20 20 20 20 20 20 20  | command.       |
0000deb0  20 20 20 6c 69 6e 65 20  63 61 6e 20 6f 76 65 72  |   line can over|
0000dec0  72 69 64 65 20 6f 70 74  69 6f 6e 73 20 65 61 72  |ride options ear|
0000ded0  6c 69 65 72 20 69 6e 20  74 68 65 20 63 6f 6d 6d  |lier in the comm|
0000dee0  61 6e 64 20 6c 69 6e 65  2e 0a 0a 20 20 20 2d 73  |and line...   -s|
0000def0  66 0a 0a 20 20 20 2d 2d  73 68 6f 77 2d 66 69 6c  |f..   --show-fil|
0000df00  65 73 0a 20 20 20 20 20  20 20 20 20 20 53 68 6f  |es.          Sho|
0000df10  77 20 74 68 65 20 66 69  6c 65 73 20 74 68 61 74  |w the files that|
0000df20  20 77 6f 75 6c 64 20 62  65 20 6f 70 65 72 61 74  | would be operat|
0000df30  65 64 20 6f 6e 2c 20 74  68 65 6e 20 65 78 69 74  |ed on, then exit|
0000df40  2e 20 46 6f 72 0a 20 20  20 20 20 20 20 20 20 20  |. For.          |
0000df50  69 6e 73 74 61 6e 63 65  2c 20 69 66 20 63 72 65  |instance, if cre|
0000df60  61 74 69 6e 67 20 61 20  6e 65 77 20 61 72 63 68  |ating a new arch|
0000df70  69 76 65 2c 20 74 68 69  73 20 77 69 6c 6c 20 6c  |ive, this will l|
0000df80  69 73 74 20 74 68 65 20  66 69 6c 65 73 0a 20 20  |ist the files.  |
0000df90  20 20 20 20 20 20 20 20  74 68 61 74 20 77 6f 75  |        that wou|
0000dfa0  6c 64 20 62 65 20 61 64  64 65 64 2e 20 49 66 20  |ld be added. If |
0000dfb0  74 68 65 20 6f 70 74 69  6f 6e 20 69 73 20 6e 65  |the option is ne|
0000dfc0  67 61 74 65 64 2c 20 2d  73 66 2d 2c 20 6f 75 74  |gated, -sf-, out|
0000dfd0  70 75 74 0a 20 20 20 20  20 20 20 20 20 20 6f 6e  |put.          on|
0000dfe0  6c 79 20 74 6f 20 61 6e  20 6f 70 65 6e 20 6c 6f  |ly to an open lo|
0000dff0  67 20 66 69 6c 65 2e 20  53 63 72 65 65 6e 20 64  |g file. Screen d|
0000e000  69 73 70 6c 61 79 20 69  73 20 6e 6f 74 20 72 65  |isplay is not re|
0000e010  63 6f 6d 6d 65 6e 64 65  64 20 66 6f 72 0a 20 20  |commended for.  |
0000e020  20 20 20 20 20 20 20 20  6c 61 72 67 65 20 6c 69  |        large li|
0000e030  73 74 73 2e 0a 0a 20 20  20 2d 73 6f 0a 0a 20 20  |sts...   -so..  |
0000e040  20 2d 2d 73 68 6f 77 2d  6f 70 74 69 6f 6e 73 0a  | --show-options.|
0000e050  20 20 20 20 20 20 20 20  20 20 53 68 6f 77 20 61  |          Show a|
0000e060  6c 6c 20 61 76 61 69 6c  61 62 6c 65 20 6f 70 74  |ll available opt|
0000e070  69 6f 6e 73 20 73 75 70  70 6f 72 74 65 64 20 62  |ions supported b|
0000e080  79 20 7a 69 70 20 61 73  20 63 6f 6d 70 69 6c 65  |y zip as compile|
0000e090  64 20 6f 6e 20 74 68 65  0a 20 20 20 20 20 20 20  |d on the.       |
0000e0a0  20 20 20 63 75 72 72 65  6e 74 20 73 79 73 74 65  |   current syste|
0000e0b0  6d 2e 20 41 73 20 74 68  69 73 20 63 6f 6d 6d 61  |m. As this comma|
0000e0c0  6e 64 20 72 65 61 64 73  20 74 68 65 20 6f 70 74  |nd reads the opt|
0000e0d0  69 6f 6e 20 74 61 62 6c  65 2c 20 69 74 0a 20 20  |ion table, it.  |
0000e0e0  20 20 20 20 20 20 20 20  73 68 6f 75 6c 64 20 69  |        should i|
0000e0f0  6e 63 6c 75 64 65 20 61  6c 6c 20 6f 70 74 69 6f  |nclude all optio|
0000e100  6e 73 2e 20 45 61 63 68  20 6c 69 6e 65 20 69 6e  |ns. Each line in|
0000e110  63 6c 75 64 65 73 20 74  68 65 20 73 68 6f 72 74  |cludes the short|
0000e120  20 6f 70 74 69 6f 6e 0a  20 20 20 20 20 20 20 20  | option.        |
0000e130  20 20 28 69 66 20 64 65  66 69 6e 65 64 29 2c 20  |  (if defined), |
0000e140  74 68 65 20 6c 6f 6e 67  20 6f 70 74 69 6f 6e 20  |the long option |
0000e150  28 69 66 20 64 65 66 69  6e 65 64 29 2c 20 74 68  |(if defined), th|
0000e160  65 20 66 6f 72 6d 61 74  20 6f 66 20 61 6e 79 0a  |e format of any.|
0000e170  20 20 20 20 20 20 20 20  20 20 76 61 6c 75 65 20  |          value |
0000e180  74 68 61 74 20 67 6f 65  73 20 77 69 74 68 20 74  |that goes with t|
0000e190  68 65 20 6f 70 74 69 6f  6e 2c 20 69 66 20 74 68  |he option, if th|
0000e1a0  65 20 6f 70 74 69 6f 6e  20 63 61 6e 20 62 65 20  |e option can be |
0000e1b0  6e 65 67 61 74 65 64 2c  0a 20 20 20 20 20 20 20  |negated,.       |
0000e1c0  20 20 20 61 6e 64 20 61  20 73 6d 61 6c 6c 20 64  |   and a small d|
0000e1d0  65 73 63 72 69 70 74 69  6f 6e 2e 20 54 68 65 20  |escription. The |
0000e1e0  76 61 6c 75 65 20 66 6f  72 6d 61 74 20 63 61 6e  |value format can|
0000e1f0  20 62 65 20 6e 6f 20 76  61 6c 75 65 2c 0a 20 20  | be no value,.  |
0000e200  20 20 20 20 20 20 20 20  72 65 71 75 69 72 65 64  |        required|
0000e210  20 76 61 6c 75 65 2c 20  6f 70 74 69 6f 6e 61 6c  | value, optional|
0000e220  20 76 61 6c 75 65 2c 20  73 69 6e 67 6c 65 20 63  | value, single c|
0000e230  68 61 72 61 63 74 65 72  20 76 61 6c 75 65 2c 20  |haracter value, |
0000e240  6e 75 6d 62 65 72 0a 20  20 20 20 20 20 20 20 20  |number.         |
0000e250  20 76 61 6c 75 65 2c 20  6f 72 20 61 20 6c 69 73  | value, or a lis|
0000e260  74 20 6f 66 20 76 61 6c  75 65 73 2e 20 54 68 65  |t of values. The|
0000e270  20 6f 75 74 70 75 74 20  6f 66 20 74 68 69 73 20  | output of this |
0000e280  6f 70 74 69 6f 6e 20 69  73 20 6e 6f 74 0a 20 20  |option is not.  |
0000e290  20 20 20 20 20 20 20 20  69 6e 74 65 6e 64 65 64  |        intended|
0000e2a0  20 74 6f 20 73 68 6f 77  20 68 6f 77 20 74 6f 20  | to show how to |
0000e2b0  75 73 65 20 61 6e 79 20  6f 70 74 69 6f 6e 20 62  |use any option b|
0000e2c0  75 74 20 6f 6e 6c 79 20  73 68 6f 77 20 77 68 61  |ut only show wha|
0000e2d0  74 0a 20 20 20 20 20 20  20 20 20 20 6f 70 74 69  |t.          opti|
0000e2e0  6f 6e 73 20 61 72 65 20  61 76 61 69 6c 61 62 6c  |ons are availabl|
0000e2f0  65 2e 0a 0a 20 20 20 2d  73 70 0a 0a 20 20 20 2d  |e...   -sp..   -|
0000e300  2d 73 70 6c 69 74 2d 70  61 75 73 65 0a 20 20 20  |-split-pause.   |
0000e310  20 20 20 20 20 20 20 49  66 20 73 70 6c 69 74 74  |       If splitt|
0000e320  69 6e 67 20 69 73 20 65  6e 61 62 6c 65 64 20 77  |ing is enabled w|
0000e330  69 74 68 20 2d 73 2c 20  65 6e 61 62 6c 65 20 73  |ith -s, enable s|
0000e340  70 6c 69 74 20 70 61 75  73 65 20 6d 6f 64 65 2e  |plit pause mode.|
0000e350  20 54 68 69 73 0a 20 20  20 20 20 20 20 20 20 20  | This.          |
0000e360  63 72 65 61 74 65 73 20  73 70 6c 69 74 20 61 72  |creates split ar|
0000e370  63 68 69 76 65 73 20 61  73 20 2d 73 20 64 6f 65  |chives as -s doe|
0000e380  73 2c 20 62 75 74 20 73  74 72 65 61 6d 20 77 72  |s, but stream wr|
0000e390  69 74 69 6e 67 20 69 73  20 75 73 65 64 0a 20 20  |iting is used.  |
0000e3a0  20 20 20 20 20 20 20 20  73 6f 20 65 61 63 68 20  |        so each |
0000e3b0  73 70 6c 69 74 20 63 61  6e 20 62 65 20 63 6c 6f  |split can be clo|
0000e3c0  73 65 64 20 61 73 20 73  6f 6f 6e 20 61 73 20 69  |sed as soon as i|
0000e3d0  74 20 69 73 20 77 72 69  74 74 65 6e 20 61 6e 64  |t is written and|
0000e3e0  20 7a 69 70 0a 20 20 20  20 20 20 20 20 20 20 77  | zip.          w|
0000e3f0  69 6c 6c 20 70 61 75 73  65 20 62 65 74 77 65 65  |ill pause betwee|
0000e400  6e 20 65 61 63 68 20 73  70 6c 69 74 20 74 6f 20  |n each split to |
0000e410  61 6c 6c 6f 77 20 63 68  61 6e 67 69 6e 67 20 73  |allow changing s|
0000e420  70 6c 69 74 0a 20 20 20  20 20 20 20 20 20 20 64  |plit.          d|
0000e430  65 73 74 69 6e 61 74 69  6f 6e 20 6f 72 20 6d 65  |estination or me|
0000e440  64 69 61 2e 0a 0a 20 20  20 20 20 20 20 20 20 20  |dia...          |
0000e450  54 68 6f 75 67 68 20 74  68 69 73 20 73 70 6c 69  |Though this spli|
0000e460  74 20 6d 6f 64 65 20 61  6c 6c 6f 77 73 20 77 72  |t mode allows wr|
0000e470  69 74 69 6e 67 20 73 70  6c 69 74 73 20 64 69 72  |iting splits dir|
0000e480  65 63 74 6c 79 20 74 6f  0a 20 20 20 20 20 20 20  |ectly to.       |
0000e490  20 20 20 72 65 6d 6f 76  61 62 6c 65 20 6d 65 64  |   removable med|
0000e4a0  69 61 2c 20 69 74 20 75  73 65 73 20 73 74 72 65  |ia, it uses stre|
0000e4b0  61 6d 20 61 72 63 68 69  76 65 20 66 6f 72 6d 61  |am archive forma|
0000e4c0  74 20 74 68 61 74 20 6d  61 79 20 6e 6f 74 20 62  |t that may not b|
0000e4d0  65 0a 20 20 20 20 20 20  20 20 20 20 72 65 61 64  |e.          read|
0000e4e0  61 62 6c 65 20 62 79 20  73 6f 6d 65 20 75 6e 7a  |able by some unz|
0000e4f0  69 70 73 2e 20 42 65 66  6f 72 65 20 72 65 6c 79  |ips. Before rely|
0000e500  69 6e 67 20 6f 6e 20 73  70 6c 69 74 73 20 63 72  |ing on splits cr|
0000e510  65 61 74 65 64 20 77 69  74 68 0a 20 20 20 20 20  |eated with.     |
0000e520  20 20 20 20 20 2d 73 70  2c 20 74 65 73 74 20 61  |     -sp, test a|
0000e530  20 73 70 6c 69 74 20 61  72 63 68 69 76 65 20 77  | split archive w|
0000e540  69 74 68 20 74 68 65 20  75 6e 7a 69 70 20 79 6f  |ith the unzip yo|
0000e550  75 20 77 69 6c 6c 20 62  65 20 75 73 69 6e 67 2e  |u will be using.|
0000e560  0a 0a 20 20 20 20 20 20  20 20 20 20 54 6f 20 63  |..          To c|
0000e570  6f 6e 76 65 72 74 20 61  20 73 74 72 65 61 6d 20  |onvert a stream |
0000e580  73 70 6c 69 74 20 61 72  63 68 69 76 65 20 28 63  |split archive (c|
0000e590  72 65 61 74 65 64 20 77  69 74 68 20 2d 73 70 29  |reated with -sp)|
0000e5a0  20 74 6f 20 61 0a 20 20  20 20 20 20 20 20 20 20  | to a.          |
0000e5b0  73 74 61 6e 64 61 72 64  20 61 72 63 68 69 76 65  |standard archive|
0000e5c0  20 73 65 65 20 74 68 65  20 2d 2d 6f 75 74 20 6f  | see the --out o|
0000e5d0  70 74 69 6f 6e 2e 0a 0a  20 20 20 2d 73 75 0a 0a  |ption...   -su..|
0000e5e0  20 20 20 2d 2d 73 68 6f  77 2d 75 6e 69 63 6f 64  |   --show-unicod|
0000e5f0  65 0a 20 20 20 20 20 20  20 20 20 20 41 73 20 2d  |e.          As -|
0000e600  73 66 2c 20 62 75 74 20  61 6c 73 6f 20 73 68 6f  |sf, but also sho|
0000e610  77 20 55 6e 69 63 6f 64  65 20 76 65 72 73 69 6f  |w Unicode versio|
0000e620  6e 20 6f 66 20 74 68 65  20 70 61 74 68 20 69 66  |n of the path if|
0000e630  20 65 78 69 73 74 73 2e  0a 0a 20 20 20 2d 73 55  | exists...   -sU|
0000e640  0a 0a 20 20 20 2d 2d 73  68 6f 77 2d 6a 75 73 74  |..   --show-just|
0000e650  2d 75 6e 69 63 6f 64 65  0a 20 20 20 20 20 20 20  |-unicode.       |
0000e660  20 20 20 41 73 20 2d 73  66 2c 20 62 75 74 20 6f  |   As -sf, but o|
0000e670  6e 6c 79 20 73 68 6f 77  20 55 6e 69 63 6f 64 65  |nly show Unicode|
0000e680  20 76 65 72 73 69 6f 6e  20 6f 66 20 74 68 65 20  | version of the |
0000e690  70 61 74 68 20 69 66 20  65 78 69 73 74 73 2c 0a  |path if exists,.|
0000e6a0  20 20 20 20 20 20 20 20  20 20 6f 74 68 65 72 77  |          otherw|
0000e6b0  69 73 65 20 73 68 6f 77  20 74 68 65 20 73 74 61  |ise show the sta|
0000e6c0  6e 64 61 72 64 20 76 65  72 73 69 6f 6e 20 6f 66  |ndard version of|
0000e6d0  20 74 68 65 20 70 61 74  68 2e 0a 0a 20 20 20 2d  | the path...   -|
0000e6e0  73 76 0a 0a 20 20 20 2d  2d 73 70 6c 69 74 2d 76  |sv..   --split-v|
0000e6f0  65 72 62 6f 73 65 0a 20  20 20 20 20 20 20 20 20  |erbose.         |
0000e700  20 45 6e 61 62 6c 65 20  76 61 72 69 6f 75 73 20  | Enable various |
0000e710  76 65 72 62 6f 73 65 20  6d 65 73 73 61 67 65 73  |verbose messages|
0000e720  20 77 68 69 6c 65 20 73  70 6c 69 74 74 69 6e 67  | while splitting|
0000e730  2c 20 73 68 6f 77 69 6e  67 20 68 6f 77 0a 20 20  |, showing how.  |
0000e740  20 20 20 20 20 20 20 20  74 68 65 20 73 70 6c 69  |        the spli|
0000e750  74 74 69 6e 67 20 69 73  20 62 65 69 6e 67 20 64  |tting is being d|
0000e760  6f 6e 65 2e 0a 0a 20 20  20 2d 53 0a 0a 20 20 20  |one...   -S..   |
0000e770  2d 2d 73 79 73 74 65 6d  2d 68 69 64 64 65 6e 0a  |--system-hidden.|
0000e780  20 20 20 20 20 20 20 20  20 20 5b 4d 53 44 4f 53  |          [MSDOS|
0000e790  2c 20 4f 53 2f 32 2c 20  57 49 4e 33 32 20 61 6e  |, OS/2, WIN32 an|
0000e7a0  64 20 41 54 41 52 49 5d  20 49 6e 63 6c 75 64 65  |d ATARI] Include|
0000e7b0  20 73 79 73 74 65 6d 20  61 6e 64 20 68 69 64 64  | system and hidd|
0000e7c0  65 6e 20 66 69 6c 65 73  2e 0a 0a 20 20 20 20 20  |en files...     |
0000e7d0  5b 4d 61 63 4f 53 5d 20  49 6e 63 6c 75 64 65 73  |[MacOS] Includes|
0000e7e0  20 66 69 6e 64 65 72 20  69 6e 76 69 73 69 62 6c  | finder invisibl|
0000e7f0  65 20 66 69 6c 65 73 2c  20 77 68 69 63 68 20 61  |e files, which a|
0000e800  72 65 20 69 67 6e 6f 72  65 64 0a 20 20 20 20 20  |re ignored.     |
0000e810  6f 74 68 65 72 77 69 73  65 2e 0a 0a 20 20 20 2d  |otherwise...   -|
0000e820  74 20 6d 6d 64 64 79 79  79 79 0a 0a 20 20 20 2d  |t mmddyyyy..   -|
0000e830  2d 66 72 6f 6d 2d 64 61  74 65 20 6d 6d 64 64 79  |-from-date mmddy|
0000e840  79 79 79 0a 20 20 20 20  20 20 20 20 20 20 44 6f  |yyy.          Do|
0000e850  20 6e 6f 74 20 6f 70 65  72 61 74 65 20 6f 6e 20  | not operate on |
0000e860  66 69 6c 65 73 20 6d 6f  64 69 66 69 65 64 20 70  |files modified p|
0000e870  72 69 6f 72 20 74 6f 20  74 68 65 20 73 70 65 63  |rior to the spec|
0000e880  69 66 69 65 64 20 64 61  74 65 2c 0a 20 20 20 20  |ified date,.    |
0000e890  20 20 20 20 20 20 77 68  65 72 65 20 6d 6d 20 69  |      where mm i|
0000e8a0  73 20 74 68 65 20 6d 6f  6e 74 68 20 28 30 30 2d  |s the month (00-|
0000e8b0  31 32 29 2c 20 64 64 20  69 73 20 74 68 65 20 64  |12), dd is the d|
0000e8c0  61 79 20 6f 66 20 74 68  65 20 6d 6f 6e 74 68 0a  |ay of the month.|
0000e8d0  20 20 20 20 20 20 20 20  20 20 28 30 31 2d 33 31  |          (01-31|
0000e8e0  29 2c 20 61 6e 64 20 79  79 79 79 20 69 73 20 74  |), and yyyy is t|
0000e8f0  68 65 20 79 65 61 72 2e  20 54 68 65 20 49 53 4f  |he year. The ISO|
0000e900  20 38 36 30 31 20 64 61  74 65 20 66 6f 72 6d 61  | 8601 date forma|
0000e910  74 0a 20 20 20 20 20 20  20 20 20 20 79 79 79 79  |t.          yyyy|
0000e920  2d 6d 6d 2d 64 64 20 69  73 20 61 6c 73 6f 20 61  |-mm-dd is also a|
0000e930  63 63 65 70 74 65 64 2e  20 46 6f 72 20 65 78 61  |ccepted. For exa|
0000e940  6d 70 6c 65 3a 0a 0a 20  20 20 7a 69 70 20 2d 72  |mple:..   zip -r|
0000e950  74 20 31 32 30 37 31 39  39 31 20 69 6e 66 61 6d  |t 12071991 infam|
0000e960  79 20 66 6f 6f 0a 0a 20  20 20 7a 69 70 20 2d 72  |y foo..   zip -r|
0000e970  74 20 31 39 39 31 2d 31  32 2d 30 37 20 69 6e 66  |t 1991-12-07 inf|
0000e980  61 6d 79 20 66 6f 6f 0a  0a 20 20 20 77 69 6c 6c  |amy foo..   will|
0000e990  20 61 64 64 20 61 6c 6c  20 74 68 65 20 66 69 6c  | add all the fil|
0000e9a0  65 73 20 69 6e 0a 20 20  20 20 20 20 20 20 20 20  |es in.          |
0000e9b0  66 6f 6f 20 61 6e 64 20  69 74 73 20 73 75 62 64  |foo and its subd|
0000e9c0  69 72 65 63 74 6f 72 69  65 73 20 74 68 61 74 20  |irectories that |
0000e9d0  77 65 72 65 20 6c 61 73  74 20 6d 6f 64 69 66 69  |were last modifi|
0000e9e0  65 64 20 6f 6e 20 6f 72  20 61 66 74 65 72 0a 20  |ed on or after. |
0000e9f0  20 20 20 20 20 20 20 20  20 37 20 44 65 63 65 6d  |         7 Decem|
0000ea00  62 65 72 20 31 39 39 31  2c 20 74 6f 20 74 68 65  |ber 1991, to the|
0000ea10  20 7a 69 70 20 61 72 63  68 69 76 65 20 69 6e 66  | zip archive inf|
0000ea20  61 6d 79 2e 7a 69 70 2e  0a 0a 20 20 20 2d 74 74  |amy.zip...   -tt|
0000ea30  20 6d 6d 64 64 79 79 79  79 0a 0a 20 20 20 2d 2d  | mmddyyyy..   --|
0000ea40  62 65 66 6f 72 65 2d 64  61 74 65 20 6d 6d 64 64  |before-date mmdd|
0000ea50  79 79 79 79 0a 20 20 20  20 20 20 20 20 20 20 44  |yyyy.          D|
0000ea60  6f 20 6e 6f 74 20 6f 70  65 72 61 74 65 20 6f 6e  |o not operate on|
0000ea70  20 66 69 6c 65 73 20 6d  6f 64 69 66 69 65 64 20  | files modified |
0000ea80  61 66 74 65 72 20 6f 72  20 61 74 20 74 68 65 20  |after or at the |
0000ea90  73 70 65 63 69 66 69 65  64 0a 20 20 20 20 20 20  |specified.      |
0000eaa0  20 20 20 20 64 61 74 65  2c 20 77 68 65 72 65 20  |    date, where |
0000eab0  6d 6d 20 69 73 20 74 68  65 20 6d 6f 6e 74 68 20  |mm is the month |
0000eac0  28 30 30 2d 31 32 29 2c  20 64 64 20 69 73 20 74  |(00-12), dd is t|
0000ead0  68 65 20 64 61 79 20 6f  66 20 74 68 65 20 6d 6f  |he day of the mo|
0000eae0  6e 74 68 0a 20 20 20 20  20 20 20 20 20 20 28 30  |nth.          (0|
0000eaf0  31 2d 33 31 29 2c 20 61  6e 64 20 79 79 79 79 20  |1-31), and yyyy |
0000eb00  69 73 20 74 68 65 20 79  65 61 72 2e 20 54 68 65  |is the year. The|
0000eb10  20 49 53 4f 20 38 36 30  31 20 64 61 74 65 20 66  | ISO 8601 date f|
0000eb20  6f 72 6d 61 74 0a 20 20  20 20 20 20 20 20 20 20  |ormat.          |
0000eb30  79 79 79 79 2d 6d 6d 2d  64 64 20 69 73 20 61 6c  |yyyy-mm-dd is al|
0000eb40  73 6f 20 61 63 63 65 70  74 65 64 2e 20 46 6f 72  |so accepted. For|
0000eb50  20 65 78 61 6d 70 6c 65  3a 0a 0a 20 20 20 7a 69  | example:..   zi|
0000eb60  70 20 2d 72 74 74 20 31  31 33 30 31 39 39 35 20  |p -rtt 11301995 |
0000eb70  69 6e 66 61 6d 79 20 66  6f 6f 0a 0a 20 20 20 7a  |infamy foo..   z|
0000eb80  69 70 20 2d 72 74 74 20  31 39 39 35 2d 31 31 2d  |ip -rtt 1995-11-|
0000eb90  33 30 20 69 6e 66 61 6d  79 20 66 6f 6f 0a 0a 20  |30 infamy foo.. |
0000eba0  20 20 77 69 6c 6c 20 61  64 64 20 61 6c 6c 20 74  |  will add all t|
0000ebb0  68 65 20 66 69 6c 65 73  20 69 6e 0a 20 20 20 20  |he files in.    |
0000ebc0  20 20 20 20 20 20 66 6f  6f 20 61 6e 64 20 69 74  |      foo and it|
0000ebd0  73 20 73 75 62 64 69 72  65 63 74 6f 72 69 65 73  |s subdirectories|
0000ebe0  20 74 68 61 74 20 77 65  72 65 20 6c 61 73 74 20  | that were last |
0000ebf0  6d 6f 64 69 66 69 65 64  20 62 65 66 6f 72 65 20  |modified before |
0000ec00  33 30 0a 20 20 20 20 20  20 20 20 20 20 4e 6f 76  |30.          Nov|
0000ec10  65 6d 62 65 72 20 31 39  39 35 2c 20 74 6f 20 74  |ember 1995, to t|
0000ec20  68 65 20 7a 69 70 20 61  72 63 68 69 76 65 20 69  |he zip archive i|
0000ec30  6e 66 61 6d 79 2e 7a 69  70 2e 0a 0a 20 20 20 2d  |nfamy.zip...   -|
0000ec40  54 0a 0a 20 20 20 2d 2d  74 65 73 74 0a 20 20 20  |T..   --test.   |
0000ec50  20 20 20 20 20 20 20 54  65 73 74 20 74 68 65 20  |       Test the |
0000ec60  69 6e 74 65 67 72 69 74  79 20 6f 66 20 74 68 65  |integrity of the|
0000ec70  20 6e 65 77 20 7a 69 70  20 66 69 6c 65 2e 20 49  | new zip file. I|
0000ec80  66 20 74 68 65 20 63 68  65 63 6b 20 66 61 69 6c  |f the check fail|
0000ec90  73 2c 20 74 68 65 0a 20  20 20 20 20 20 20 20 20  |s, the.         |
0000eca0  20 6f 6c 64 20 7a 69 70  20 66 69 6c 65 20 69 73  | old zip file is|
0000ecb0  20 75 6e 63 68 61 6e 67  65 64 20 61 6e 64 20 28  | unchanged and (|
0000ecc0  77 69 74 68 20 74 68 65  20 2d 6d 20 6f 70 74 69  |with the -m opti|
0000ecd0  6f 6e 29 20 6e 6f 20 69  6e 70 75 74 0a 20 20 20  |on) no input.   |
0000ece0  20 20 20 20 20 20 20 66  69 6c 65 73 20 61 72 65  |       files are|
0000ecf0  20 72 65 6d 6f 76 65 64  2e 0a 0a 20 20 20 2d 54  | removed...   -T|
0000ed00  54 20 63 6d 64 0a 0a 20  20 20 2d 2d 75 6e 7a 69  |T cmd..   --unzi|
0000ed10  70 2d 63 6f 6d 6d 61 6e  64 20 63 6d 64 0a 20 20  |p-command cmd.  |
0000ed20  20 20 20 20 20 20 20 20  55 73 65 20 63 6f 6d 6d  |        Use comm|
0000ed30  61 6e 64 20 63 6d 64 20  69 6e 73 74 65 61 64 20  |and cmd instead |
0000ed40  6f 66 20 27 75 6e 7a 69  70 20 2d 74 71 71 27 20  |of 'unzip -tqq' |
0000ed50  74 6f 20 74 65 73 74 20  61 6e 20 61 72 63 68 69  |to test an archi|
0000ed60  76 65 20 77 68 65 6e 0a  20 20 20 20 20 20 20 20  |ve when.        |
0000ed70  20 20 74 68 65 20 2d 54  20 6f 70 74 69 6f 6e 20  |  the -T option |
0000ed80  69 73 20 75 73 65 64 2e  20 4f 6e 20 55 6e 69 78  |is used. On Unix|
0000ed90  2c 20 74 6f 20 75 73 65  20 61 20 63 6f 70 79 20  |, to use a copy |
0000eda0  6f 66 20 75 6e 7a 69 70  20 69 6e 20 74 68 65 0a  |of unzip in the.|
0000edb0  20 20 20 20 20 20 20 20  20 20 63 75 72 72 65 6e  |          curren|
0000edc0  74 20 64 69 72 65 63 74  6f 72 79 20 69 6e 73 74  |t directory inst|
0000edd0  65 61 64 20 6f 66 20 74  68 65 20 73 74 61 6e 64  |ead of the stand|
0000ede0  61 72 64 20 73 79 73 74  65 6d 20 75 6e 7a 69 70  |ard system unzip|
0000edf0  2c 20 63 6f 75 6c 64 0a  20 20 20 20 20 20 20 20  |, could.        |
0000ee00  20 20 75 73 65 3a 0a 0a  20 20 20 7a 69 70 20 61  |  use:..   zip a|
0000ee10  72 63 68 69 76 65 20 66  69 6c 65 31 20 66 69 6c  |rchive file1 fil|
0000ee20  65 32 20 2d 54 20 2d 54  54 20 22 2e 2f 75 6e 7a  |e2 -T -TT "./unz|
0000ee30  69 70 20 2d 74 71 71 22  0a 0a 20 20 20 49 6e 20  |ip -tqq"..   In |
0000ee40  63 6d 64 2c 20 7b 7d 20  69 73 20 72 65 70 6c 61  |cmd, {} is repla|
0000ee50  63 65 64 20 62 79 20 74  68 65 20 6e 61 6d 65 20  |ced by the name |
0000ee60  6f 66 20 74 68 65 20 74  65 6d 70 6f 72 61 72 79  |of the temporary|
0000ee70  20 61 72 63 68 69 76 65  2c 20 6f 74 68 65 72 77  | archive, otherw|
0000ee80  69 73 65 0a 20 20 20 20  20 20 20 20 20 20 74 68  |ise.          th|
0000ee90  65 20 6e 61 6d 65 0a 20  20 20 20 20 20 20 20 20  |e name.         |
0000eea0  20 6f 66 20 74 68 65 20  61 72 63 68 69 76 65 20  | of the archive |
0000eeb0  69 73 20 61 70 70 65 6e  64 65 64 20 74 6f 20 74  |is appended to t|
0000eec0  68 65 20 65 6e 64 20 6f  66 20 74 68 65 20 63 6f  |he end of the co|
0000eed0  6d 6d 61 6e 64 2e 20 54  68 65 0a 20 20 20 20 20  |mmand. The.     |
0000eee0  20 20 20 20 20 72 65 74  75 72 6e 20 63 6f 64 65  |     return code|
0000eef0  20 69 73 20 63 68 65 63  6b 65 64 20 66 6f 72 20  | is checked for |
0000ef00  73 75 63 63 65 73 73 20  28 30 20 6f 6e 20 55 6e  |success (0 on Un|
0000ef10  69 78 29 2e 0a 0a 20 20  20 2d 75 0a 0a 20 20 20  |ix)...   -u..   |
0000ef20  2d 2d 75 70 64 61 74 65  0a 20 20 20 20 20 20 20  |--update.       |
0000ef30  20 20 20 52 65 70 6c 61  63 65 20 28 75 70 64 61  |   Replace (upda|
0000ef40  74 65 29 20 61 6e 20 65  78 69 73 74 69 6e 67 20  |te) an existing |
0000ef50  65 6e 74 72 79 20 69 6e  20 74 68 65 20 7a 69 70  |entry in the zip|
0000ef60  20 61 72 63 68 69 76 65  20 6f 6e 6c 79 20 69 66  | archive only if|
0000ef70  0a 20 20 20 20 20 20 20  20 20 20 69 74 20 68 61  |.          it ha|
0000ef80  73 20 62 65 65 6e 20 6d  6f 64 69 66 69 65 64 20  |s been modified |
0000ef90  6d 6f 72 65 20 72 65 63  65 6e 74 6c 79 20 74 68  |more recently th|
0000efa0  61 6e 20 74 68 65 20 76  65 72 73 69 6f 6e 20 61  |an the version a|
0000efb0  6c 72 65 61 64 79 20 69  6e 0a 20 20 20 20 20 20  |lready in.      |
0000efc0  20 20 20 20 74 68 65 20  7a 69 70 20 61 72 63 68  |    the zip arch|
0000efd0  69 76 65 2e 20 46 6f 72  20 65 78 61 6d 70 6c 65  |ive. For example|
0000efe0  3a 0a 0a 20 20 20 7a 69  70 20 2d 75 20 73 74 75  |:..   zip -u stu|
0000eff0  66 66 20 2a 0a 0a 20 20  20 77 69 6c 6c 20 61 64  |ff *..   will ad|
0000f000  64 20 61 6e 79 20 6e 65  77 20 66 69 6c 65 73 20  |d any new files |
0000f010  69 6e 20 74 68 65 20 63  75 72 72 65 6e 74 20 64  |in the current d|
0000f020  69 72 65 63 74 6f 72 79  2c 0a 20 20 20 20 20 20  |irectory,.      |
0000f030  20 20 20 20 61 6e 64 20  75 70 64 61 74 65 20 61  |    and update a|
0000f040  6e 79 20 66 69 6c 65 73  20 77 68 69 63 68 20 68  |ny files which h|
0000f050  61 76 65 20 62 65 65 6e  20 6d 6f 64 69 66 69 65  |ave been modifie|
0000f060  64 20 73 69 6e 63 65 20  74 68 65 20 7a 69 70 0a  |d since the zip.|
0000f070  20 20 20 20 20 20 20 20  20 20 61 72 63 68 69 76  |          archiv|
0000f080  65 20 73 74 75 66 66 2e  7a 69 70 20 77 61 73 20  |e stuff.zip was |
0000f090  6c 61 73 74 20 63 72 65  61 74 65 64 2f 6d 6f 64  |last created/mod|
0000f0a0  69 66 69 65 64 20 28 6e  6f 74 65 20 74 68 61 74  |ified (note that|
0000f0b0  20 7a 69 70 20 77 69 6c  6c 0a 20 20 20 20 20 20  | zip will.      |
0000f0c0  20 20 20 20 6e 6f 74 20  74 72 79 20 74 6f 20 70  |    not try to p|
0000f0d0  61 63 6b 20 73 74 75 66  66 2e 7a 69 70 20 69 6e  |ack stuff.zip in|
0000f0e0  74 6f 20 69 74 73 65 6c  66 20 77 68 65 6e 20 79  |to itself when y|
0000f0f0  6f 75 20 64 6f 20 74 68  69 73 29 2e 0a 0a 20 20  |ou do this)...  |
0000f100  20 4e 6f 74 65 20 74 68  61 74 20 74 68 65 0a 20  | Note that the. |
0000f110  20 20 20 20 20 20 20 20  20 2d 75 20 6f 70 74 69  |         -u opti|
0000f120  6f 6e 20 77 69 74 68 20  6e 6f 20 69 6e 70 75 74  |on with no input|
0000f130  20 66 69 6c 65 20 61 72  67 75 6d 65 6e 74 73 20  | file arguments |
0000f140  61 63 74 73 20 6c 69 6b  65 20 74 68 65 20 2d 66  |acts like the -f|
0000f150  0a 20 20 20 20 20 20 20  20 20 20 28 66 72 65 73  |.          (fres|
0000f160  68 65 6e 29 20 6f 70 74  69 6f 6e 2e 0a 0a 20 20  |hen) option...  |
0000f170  20 2d 55 0a 0a 20 20 20  2d 2d 63 6f 70 79 2d 65  | -U..   --copy-e|
0000f180  6e 74 72 69 65 73 0a 20  20 20 20 20 20 20 20 20  |ntries.         |
0000f190  20 43 6f 70 79 20 65 6e  74 72 69 65 73 20 66 72  | Copy entries fr|
0000f1a0  6f 6d 20 6f 6e 65 20 61  72 63 68 69 76 65 20 74  |om one archive t|
0000f1b0  6f 20 61 6e 6f 74 68 65  72 2e 20 52 65 71 75 69  |o another. Requi|
0000f1c0  72 65 73 20 74 68 65 20  2d 2d 6f 75 74 0a 20 20  |res the --out.  |
0000f1d0  20 20 20 20 20 20 20 20  6f 70 74 69 6f 6e 20 74  |        option t|
0000f1e0  6f 20 73 70 65 63 69 66  79 20 61 20 64 69 66 66  |o specify a diff|
0000f1f0  65 72 65 6e 74 20 6f 75  74 70 75 74 20 66 69 6c  |erent output fil|
0000f200  65 20 74 68 61 6e 20 74  68 65 20 69 6e 70 75 74  |e than the input|
0000f210  0a 20 20 20 20 20 20 20  20 20 20 61 72 63 68 69  |.          archi|
0000f220  76 65 2e 20 43 6f 70 79  20 6d 6f 64 65 20 69 73  |ve. Copy mode is|
0000f230  20 74 68 65 20 72 65 76  65 72 73 65 20 6f 66 20  | the reverse of |
0000f240  2d 64 20 64 65 6c 65 74  65 2e 20 57 68 65 6e 20  |-d delete. When |
0000f250  64 65 6c 65 74 65 20 69  73 0a 20 20 20 20 20 20  |delete is.      |
0000f260  20 20 20 20 62 65 69 6e  67 20 75 73 65 64 20 77  |    being used w|
0000f270  69 74 68 20 2d 2d 6f 75  74 2c 20 74 68 65 20 73  |ith --out, the s|
0000f280  65 6c 65 63 74 65 64 20  65 6e 74 72 69 65 73 20  |elected entries |
0000f290  61 72 65 20 64 65 6c 65  74 65 64 20 66 72 6f 6d  |are deleted from|
0000f2a0  0a 20 20 20 20 20 20 20  20 20 20 74 68 65 20 61  |.          the a|
0000f2b0  72 63 68 69 76 65 20 61  6e 64 20 61 6c 6c 20 6f  |rchive and all o|
0000f2c0  74 68 65 72 20 65 6e 74  72 69 65 73 20 61 72 65  |ther entries are|
0000f2d0  20 63 6f 70 69 65 64 20  74 6f 20 74 68 65 20 6e  | copied to the n|
0000f2e0  65 77 0a 20 20 20 20 20  20 20 20 20 20 61 72 63  |ew.          arc|
0000f2f0  68 69 76 65 2c 20 77 68  69 6c 65 20 63 6f 70 79  |hive, while copy|
0000f300  20 6d 6f 64 65 20 73 65  6c 65 63 74 73 20 74 68  | mode selects th|
0000f310  65 20 66 69 6c 65 73 20  74 6f 20 69 6e 63 6c 75  |e files to inclu|
0000f320  64 65 20 69 6e 20 74 68  65 0a 20 20 20 20 20 20  |de in the.      |
0000f330  20 20 20 20 6e 65 77 20  61 72 63 68 69 76 65 2e  |    new archive.|
0000f340  20 55 6e 6c 69 6b 65 20  2d 75 20 75 70 64 61 74  | Unlike -u updat|
0000f350  65 2c 20 69 6e 70 75 74  20 70 61 74 74 65 72 6e  |e, input pattern|
0000f360  73 20 6f 6e 20 74 68 65  20 63 6f 6d 6d 61 6e 64  |s on the command|
0000f370  0a 20 20 20 20 20 20 20  20 20 20 6c 69 6e 65 20  |.          line |
0000f380  61 72 65 20 6d 61 74 63  68 65 64 20 61 67 61 69  |are matched agai|
0000f390  6e 73 74 20 61 72 63 68  69 76 65 20 65 6e 74 72  |nst archive entr|
0000f3a0  69 65 73 20 6f 6e 6c 79  20 61 6e 64 20 6e 6f 74  |ies only and not|
0000f3b0  20 74 68 65 20 66 69 6c  65 0a 20 20 20 20 20 20  | the file.      |
0000f3c0  20 20 20 20 73 79 73 74  65 6d 20 66 69 6c 65 73  |    system files|
0000f3d0  2e 20 46 6f 72 20 69 6e  73 74 61 6e 63 65 2c 0a  |. For instance,.|
0000f3e0  0a 20 20 20 7a 69 70 20  69 6e 61 72 63 68 69 76  |.   zip inarchiv|
0000f3f0  65 20 22 2a 2e 63 22 20  2d 2d 63 6f 70 79 20 2d  |e "*.c" --copy -|
0000f400  2d 6f 75 74 20 6f 75 74  61 72 63 68 69 76 65 0a  |-out outarchive.|
0000f410  0a 20 20 20 63 6f 70 69  65 73 20 65 6e 74 72 69  |.   copies entri|
0000f420  65 73 20 77 69 74 68 20  6e 61 6d 65 73 20 65 6e  |es with names en|
0000f430  64 69 6e 67 20 69 6e 20  2e 63 20 66 72 6f 6d 20  |ding in .c from |
0000f440  69 6e 61 72 63 68 69 76  65 0a 20 20 20 20 20 20  |inarchive.      |
0000f450  20 20 20 20 74 6f 20 6f  75 74 61 72 63 68 69 76  |    to outarchiv|
0000f460  65 2e 20 54 68 65 20 77  69 6c 64 63 61 72 64 20  |e. The wildcard |
0000f470  6d 75 73 74 20 62 65 20  65 73 63 61 70 65 64 20  |must be escaped |
0000f480  6f 6e 20 73 6f 6d 65 20  73 79 73 74 65 6d 73 20  |on some systems |
0000f490  74 6f 0a 20 20 20 20 20  20 20 20 20 20 70 72 65  |to.          pre|
0000f4a0  76 65 6e 74 20 74 68 65  20 73 68 65 6c 6c 20 66  |vent the shell f|
0000f4b0  72 6f 6d 20 73 75 62 73  74 69 74 75 74 69 6e 67  |rom substituting|
0000f4c0  20 6e 61 6d 65 73 20 6f  66 20 66 69 6c 65 73 20  | names of files |
0000f4d0  66 72 6f 6d 20 74 68 65  0a 20 20 20 20 20 20 20  |from the.       |
0000f4e0  20 20 20 66 69 6c 65 20  73 79 73 74 65 6d 20 77  |   file system w|
0000f4f0  68 69 63 68 20 6d 61 79  20 68 61 76 65 20 6e 6f  |hich may have no|
0000f500  20 72 65 6c 65 76 61 6e  63 65 20 74 6f 20 74 68  | relevance to th|
0000f510  65 20 65 6e 74 72 69 65  73 20 69 6e 20 74 68 65  |e entries in the|
0000f520  0a 20 20 20 20 20 20 20  20 20 20 61 72 63 68 69  |.          archi|
0000f530  76 65 2e 0a 0a 20 20 20  20 20 20 20 20 20 20 49  |ve...          I|
0000f540  66 20 6e 6f 20 69 6e 70  75 74 20 66 69 6c 65 73  |f no input files|
0000f550  20 61 70 70 65 61 72 20  6f 6e 20 74 68 65 20 63  | appear on the c|
0000f560  6f 6d 6d 61 6e 64 20 6c  69 6e 65 20 61 6e 64 20  |ommand line and |
0000f570  2d 2d 6f 75 74 20 69 73  20 75 73 65 64 2c 0a 20  |--out is used,. |
0000f580  20 20 20 20 20 20 20 20  20 63 6f 70 79 20 6d 6f  |         copy mo|
0000f590  64 65 20 69 73 20 61 73  73 75 6d 65 64 3a 0a 0a  |de is assumed:..|
0000f5a0  20 20 20 7a 69 70 20 69  6e 61 72 63 68 69 76 65  |   zip inarchive|
0000f5b0  20 2d 2d 6f 75 74 20 6f  75 74 61 72 63 68 69 76  | --out outarchiv|
0000f5c0  65 0a 0a 20 20 20 54 68  69 73 20 69 73 20 75 73  |e..   This is us|
0000f5d0  65 66 75 6c 20 66 6f 72  20 63 68 61 6e 67 69 6e  |eful for changin|
0000f5e0  67 20 73 70 6c 69 74 20  73 69 7a 65 20 66 6f 72  |g split size for|
0000f5f0  20 69 6e 73 74 61 6e 63  65 2e 20 45 6e 63 72 79  | instance. Encry|
0000f600  70 74 69 6e 67 0a 20 20  20 20 20 20 20 20 20 20  |pting.          |
0000f610  61 6e 64 20 64 65 63 72  79 70 74 69 6e 67 20 65  |and decrypting e|
0000f620  6e 74 72 69 65 73 20 69  73 20 6e 6f 74 20 79 65  |ntries is not ye|
0000f630  74 20 73 75 70 70 6f 72  74 65 64 20 75 73 69 6e  |t supported usin|
0000f640  67 20 63 6f 70 79 20 6d  6f 64 65 2e 0a 20 20 20  |g copy mode..   |
0000f650  20 20 20 20 20 20 20 55  73 65 20 7a 69 70 63 6c  |       Use zipcl|
0000f660  6f 61 6b 20 66 6f 72 20  74 68 61 74 2e 0a 0a 20  |oak for that... |
0000f670  20 20 2d 55 4e 20 76 0a  0a 20 20 20 2d 2d 75 6e  |  -UN v..   --un|
0000f680  69 63 6f 64 65 20 76 0a  20 20 20 20 20 20 20 20  |icode v.        |
0000f690  20 20 44 65 74 65 72 6d  69 6e 65 20 77 68 61 74  |  Determine what|
0000f6a0  20 7a 69 70 20 73 68 6f  75 6c 64 20 64 6f 20 77  | zip should do w|
0000f6b0  69 74 68 20 55 6e 69 63  6f 64 65 20 66 69 6c 65  |ith Unicode file|
0000f6c0  20 6e 61 6d 65 73 2e 20  7a 69 70 20 33 2e 30 2c  | names. zip 3.0,|
0000f6d0  0a 20 20 20 20 20 20 20  20 20 20 69 6e 20 61 64  |.          in ad|
0000f6e0  64 69 74 69 6f 6e 20 74  6f 20 74 68 65 20 73 74  |dition to the st|
0000f6f0  61 6e 64 61 72 64 20 66  69 6c 65 20 70 61 74 68  |andard file path|
0000f700  2c 20 6e 6f 77 20 69 6e  63 6c 75 64 65 73 20 74  |, now includes t|
0000f710  68 65 20 55 54 46 2d 38  0a 20 20 20 20 20 20 20  |he UTF-8.       |
0000f720  20 20 20 74 72 61 6e 73  6c 61 74 69 6f 6e 20 6f  |   translation o|
0000f730  66 20 74 68 65 20 70 61  74 68 20 69 66 20 74 68  |f the path if th|
0000f740  65 20 65 6e 74 72 79 20  70 61 74 68 20 69 73 20  |e entry path is |
0000f750  6e 6f 74 20 65 6e 74 69  72 65 6c 79 20 37 2d 62  |not entirely 7-b|
0000f760  69 74 0a 20 20 20 20 20  20 20 20 20 20 41 53 43  |it.          ASC|
0000f770  49 49 2e 20 57 68 65 6e  20 61 6e 20 65 6e 74 72  |II. When an entr|
0000f780  79 20 69 73 20 6d 69 73  73 69 6e 67 20 74 68 65  |y is missing the|
0000f790  20 55 6e 69 63 6f 64 65  20 70 61 74 68 2c 20 7a  | Unicode path, z|
0000f7a0  69 70 20 72 65 76 65 72  74 73 0a 20 20 20 20 20  |ip reverts.     |
0000f7b0  20 20 20 20 20 62 61 63  6b 20 74 6f 20 74 68 65  |     back to the|
0000f7c0  20 73 74 61 6e 64 61 72  64 20 66 69 6c 65 20 70  | standard file p|
0000f7d0  61 74 68 2e 20 54 68 65  20 70 72 6f 62 6c 65 6d  |ath. The problem|
0000f7e0  20 77 69 74 68 20 75 73  69 6e 67 20 74 68 65 0a  | with using the.|
0000f7f0  20 20 20 20 20 20 20 20  20 20 73 74 61 6e 64 61  |          standa|
0000f800  72 64 20 70 61 74 68 20  69 73 20 74 68 69 73 20  |rd path is this |
0000f810  70 61 74 68 20 69 73 20  69 6e 20 74 68 65 20 6c  |path is in the l|
0000f820  6f 63 61 6c 20 63 68 61  72 61 63 74 65 72 20 73  |ocal character s|
0000f830  65 74 20 6f 66 20 74 68  65 0a 20 20 20 20 20 20  |et of the.      |
0000f840  20 20 20 20 7a 69 70 20  74 68 61 74 20 63 72 65  |    zip that cre|
0000f850  61 74 65 64 20 74 68 65  20 65 6e 74 72 79 2c 20  |ated the entry, |
0000f860  77 68 69 63 68 20 6d 61  79 20 63 6f 6e 74 61 69  |which may contai|
0000f870  6e 20 63 68 61 72 61 63  74 65 72 73 20 74 68 61  |n characters tha|
0000f880  74 0a 20 20 20 20 20 20  20 20 20 20 61 72 65 20  |t.          are |
0000f890  6e 6f 74 20 76 61 6c 69  64 20 69 6e 20 74 68 65  |not valid in the|
0000f8a0  20 63 68 61 72 61 63 74  65 72 20 73 65 74 20 62  | character set b|
0000f8b0  65 69 6e 67 20 75 73 65  64 20 62 79 20 74 68 65  |eing used by the|
0000f8c0  20 75 6e 7a 69 70 2e 0a  20 20 20 20 20 20 20 20  | unzip..        |
0000f8d0  20 20 57 68 65 6e 20 7a  69 70 20 69 73 20 72 65  |  When zip is re|
0000f8e0  61 64 69 6e 67 20 61 6e  20 61 72 63 68 69 76 65  |ading an archive|
0000f8f0  2c 20 69 66 20 61 6e 20  65 6e 74 72 79 20 61 6c  |, if an entry al|
0000f900  73 6f 20 68 61 73 20 61  20 55 6e 69 63 6f 64 65  |so has a Unicode|
0000f910  0a 20 20 20 20 20 20 20  20 20 20 70 61 74 68 2c  |.          path,|
0000f920  20 7a 69 70 20 6e 6f 77  20 64 65 66 61 75 6c 74  | zip now default|
0000f930  73 20 74 6f 20 75 73 69  6e 67 20 74 68 65 20 55  |s to using the U|
0000f940  6e 69 63 6f 64 65 20 70  61 74 68 20 74 6f 20 72  |nicode path to r|
0000f950  65 63 72 65 61 74 65 0a  20 20 20 20 20 20 20 20  |ecreate.        |
0000f960  20 20 74 68 65 20 73 74  61 6e 64 61 72 64 20 70  |  the standard p|
0000f970  61 74 68 20 75 73 69 6e  67 20 74 68 65 20 63 75  |ath using the cu|
0000f980  72 72 65 6e 74 20 6c 6f  63 61 6c 20 63 68 61 72  |rrent local char|
0000f990  61 63 74 65 72 20 73 65  74 2e 0a 0a 20 20 20 20  |acter set...    |
0000f9a0  20 20 20 20 20 20 54 68  69 73 20 6f 70 74 69 6f  |      This optio|
0000f9b0  6e 20 63 61 6e 20 62 65  20 75 73 65 64 20 74 6f  |n can be used to|
0000f9c0  20 64 65 74 65 72 6d 69  6e 65 20 77 68 61 74 20  | determine what |
0000f9d0  7a 69 70 20 73 68 6f 75  6c 64 20 64 6f 20 77 69  |zip should do wi|
0000f9e0  74 68 0a 20 20 20 20 20  20 20 20 20 20 74 68 69  |th.          thi|
0000f9f0  73 20 70 61 74 68 20 69  66 20 74 68 65 72 65 20  |s path if there |
0000fa00  69 73 20 61 20 6d 69 73  6d 61 74 63 68 20 62 65  |is a mismatch be|
0000fa10  74 77 65 65 6e 20 74 68  65 20 73 74 6f 72 65 64  |tween the stored|
0000fa20  20 73 74 61 6e 64 61 72  64 0a 20 20 20 20 20 20  | standard.      |
0000fa30  20 20 20 20 70 61 74 68  20 61 6e 64 20 74 68 65  |    path and the|
0000fa40  20 73 74 6f 72 65 64 20  55 54 46 2d 38 20 70 61  | stored UTF-8 pa|
0000fa50  74 68 20 28 77 68 69 63  68 20 63 61 6e 20 68 61  |th (which can ha|
0000fa60  70 70 65 6e 20 69 66 20  74 68 65 0a 20 20 20 20  |ppen if the.    |
0000fa70  20 20 20 20 20 20 73 74  61 6e 64 61 72 64 20 70  |      standard p|
0000fa80  61 74 68 20 77 61 73 20  75 70 64 61 74 65 64 29  |ath was updated)|
0000fa90  2e 20 49 6e 20 61 6c 6c  20 63 61 73 65 73 2c 20  |. In all cases, |
0000faa0  69 66 20 74 68 65 72 65  20 69 73 20 61 0a 20 20  |if there is a.  |
0000fab0  20 20 20 20 20 20 20 20  6d 69 73 6d 61 74 63 68  |        mismatch|
0000fac0  20 69 74 20 69 73 20 61  73 73 75 6d 65 64 20 74  | it is assumed t|
0000fad0  68 61 74 20 74 68 65 20  73 74 61 6e 64 61 72 64  |hat the standard|
0000fae0  20 70 61 74 68 20 69 73  20 6d 6f 72 65 20 63 75  | path is more cu|
0000faf0  72 72 65 6e 74 0a 20 20  20 20 20 20 20 20 20 20  |rrent.          |
0000fb00  61 6e 64 20 7a 69 70 20  75 73 65 73 20 74 68 61  |and zip uses tha|
0000fb10  74 2e 20 56 61 6c 75 65  73 20 66 6f 72 20 76 20  |t. Values for v |
0000fb20  61 72 65 0a 0a 20 20 20  71 20 2d 20 71 75 69 74  |are..   q - quit|
0000fb30  20 69 66 20 70 61 74 68  73 20 64 6f 20 6e 6f 74  | if paths do not|
0000fb40  20 6d 61 74 63 68 0a 0a  20 20 20 77 20 2d 20 77  | match..   w - w|
0000fb50  61 72 6e 2c 20 63 6f 6e  74 69 6e 75 65 20 77 69  |arn, continue wi|
0000fb60  74 68 20 73 74 61 6e 64  61 72 64 20 70 61 74 68  |th standard path|
0000fb70  0a 0a 20 20 20 69 20 2d  20 69 67 6e 6f 72 65 2c  |..   i - ignore,|
0000fb80  20 63 6f 6e 74 69 6e 75  65 20 77 69 74 68 20 73  | continue with s|
0000fb90  74 61 6e 64 61 72 64 20  70 61 74 68 0a 0a 20 20  |tandard path..  |
0000fba0  20 6e 20 2d 20 6e 6f 20  55 6e 69 63 6f 64 65 2c  | n - no Unicode,|
0000fbb0  20 64 6f 20 6e 6f 74 20  75 73 65 20 55 6e 69 63  | do not use Unic|
0000fbc0  6f 64 65 20 70 61 74 68  73 0a 0a 20 20 20 54 68  |ode paths..   Th|
0000fbd0  65 20 64 65 66 61 75 6c  74 20 69 73 20 74 6f 20  |e default is to |
0000fbe0  77 61 72 6e 20 61 6e 64  20 63 6f 6e 74 69 6e 75  |warn and continu|
0000fbf0  65 2e 0a 20 20 20 20 20  20 20 20 20 20 43 68 61  |e..          Cha|
0000fc00  72 61 63 74 65 72 73 20  74 68 61 74 20 61 72 65  |racters that are|
0000fc10  20 6e 6f 74 20 76 61 6c  69 64 20 69 6e 20 74 68  | not valid in th|
0000fc20  65 20 63 75 72 72 65 6e  74 20 63 68 61 72 61 63  |e current charac|
0000fc30  74 65 72 20 73 65 74 20  61 72 65 0a 20 20 20 20  |ter set are.    |
0000fc40  20 20 20 20 20 20 65 73  63 61 70 65 64 20 61 73  |      escaped as|
0000fc50  20 23 55 78 78 78 78 20  61 6e 64 20 23 4c 78 78  | #Uxxxx and #Lxx|
0000fc60  78 78 78 78 2c 20 77 68  65 72 65 20 78 20 69 73  |xxxx, where x is|
0000fc70  20 61 6e 20 41 53 43 49  49 20 63 68 61 72 61 63  | an ASCII charac|
0000fc80  74 65 72 0a 20 20 20 20  20 20 20 20 20 20 66 6f  |ter.          fo|
0000fc90  72 20 61 20 68 65 78 20  64 69 67 69 74 2e 20 54  |r a hex digit. T|
0000fca0  68 65 20 66 69 72 73 74  20 69 73 20 75 73 65 64  |he first is used|
0000fcb0  20 69 66 20 61 20 31 36  2d 62 69 74 20 63 68 61  | if a 16-bit cha|
0000fcc0  72 61 63 74 65 72 20 6e  75 6d 62 65 72 0a 20 20  |racter number.  |
0000fcd0  20 20 20 20 20 20 20 20  69 73 20 73 75 66 66 69  |        is suffi|
0000fce0  63 69 65 6e 74 20 74 6f  20 72 65 70 72 65 73 65  |cient to represe|
0000fcf0  6e 74 20 74 68 65 20 55  6e 69 63 6f 64 65 20 63  |nt the Unicode c|
0000fd00  68 61 72 61 63 74 65 72  20 61 6e 64 20 74 68 65  |haracter and the|
0000fd10  20 73 65 63 6f 6e 64 0a  20 20 20 20 20 20 20 20  | second.        |
0000fd20  20 20 69 66 20 74 68 65  20 63 68 61 72 61 63 74  |  if the charact|
0000fd30  65 72 20 6e 65 65 64 73  20 6d 6f 72 65 20 74 68  |er needs more th|
0000fd40  61 6e 20 31 36 20 62 69  74 73 20 74 6f 20 72 65  |an 16 bits to re|
0000fd50  70 72 65 73 65 6e 74 20  69 74 27 73 0a 20 20 20  |present it's.   |
0000fd60  20 20 20 20 20 20 20 55  6e 69 63 6f 64 65 20 63  |       Unicode c|
0000fd70  68 61 72 61 63 74 65 72  20 63 6f 64 65 2e 20 53  |haracter code. S|
0000fd80  65 74 74 69 6e 67 20 2d  55 4e 20 74 6f 0a 0a 20  |etting -UN to.. |
0000fd90  20 20 65 20 2d 20 65 73  63 61 70 65 0a 0a 20 20  |  e - escape..  |
0000fda0  20 61 73 20 69 6e 0a 0a  20 20 20 7a 69 70 20 61  | as in..   zip a|
0000fdb0  72 63 68 69 76 65 20 2d  73 55 20 2d 55 4e 3d 65  |rchive -sU -UN=e|
0000fdc0  0a 0a 20 20 20 66 6f 72  63 65 73 20 7a 69 70 20  |..   forces zip |
0000fdd0  74 6f 20 65 73 63 61 70  65 20 61 6c 6c 20 63 68  |to escape all ch|
0000fde0  61 72 61 63 74 65 72 73  20 74 68 61 74 20 61 72  |aracters that ar|
0000fdf0  65 20 6e 6f 74 20 70 72  69 6e 74 61 62 6c 65 20  |e not printable |
0000fe00  37 2d 62 69 74 0a 20 20  20 20 20 20 20 20 20 20  |7-bit.          |
0000fe10  41 53 43 49 49 2e 0a 0a  20 20 20 20 20 20 20 20  |ASCII...        |
0000fe20  20 20 4e 6f 72 6d 61 6c  6c 79 20 7a 69 70 20 73  |  Normally zip s|
0000fe30  74 6f 72 65 73 20 55 54  46 2d 38 20 64 69 72 65  |tores UTF-8 dire|
0000fe40  63 74 6c 79 20 69 6e 20  74 68 65 20 73 74 61 6e  |ctly in the stan|
0000fe50  64 61 72 64 20 70 61 74  68 20 66 69 65 6c 64 0a  |dard path field.|
0000fe60  20 20 20 20 20 20 20 20  20 20 6f 6e 20 73 79 73  |          on sys|
0000fe70  74 65 6d 73 20 77 68 65  72 65 20 55 54 46 2d 38  |tems where UTF-8|
0000fe80  20 69 73 20 74 68 65 20  63 75 72 72 65 6e 74 20  | is the current |
0000fe90  63 68 61 72 61 63 74 65  72 20 73 65 74 20 61 6e  |character set an|
0000fea0  64 20 73 74 6f 72 65 73  0a 20 20 20 20 20 20 20  |d stores.       |
0000feb0  20 20 20 74 68 65 20 55  54 46 2d 38 20 69 6e 20  |   the UTF-8 in |
0000fec0  74 68 65 20 6e 65 77 20  65 78 74 72 61 20 66 69  |the new extra fi|
0000fed0  65 6c 64 73 20 6f 74 68  65 72 77 69 73 65 2e 20  |elds otherwise. |
0000fee0  54 68 65 20 6f 70 74 69  6f 6e 0a 0a 20 20 20 75  |The option..   u|
0000fef0  20 2d 20 55 54 46 2d 38  0a 0a 20 20 20 61 73 20  | - UTF-8..   as |
0000ff00  69 6e 0a 0a 20 20 20 7a  69 70 20 61 72 63 68 69  |in..   zip archi|
0000ff10  76 65 20 64 69 72 20 2d  72 20 2d 55 4e 3d 55 54  |ve dir -r -UN=UT|
0000ff20  46 38 0a 0a 20 20 20 66  6f 72 63 65 73 20 7a 69  |F8..   forces zi|
0000ff30  70 20 74 6f 20 73 74 6f  72 65 20 55 54 46 2d 38  |p to store UTF-8|
0000ff40  20 61 73 20 6e 61 74 69  76 65 20 69 6e 20 74 68  | as native in th|
0000ff50  65 20 61 72 63 68 69 76  65 2e 20 4e 6f 74 65 20  |e archive. Note |
0000ff60  74 68 61 74 0a 20 20 20  20 20 20 20 20 20 20 73  |that.          s|
0000ff70  74 6f 72 69 6e 67 20 55  54 46 2d 38 20 64 69 72  |toring UTF-8 dir|
0000ff80  65 63 74 6c 79 20 69 73  20 74 68 65 20 64 65 66  |ectly is the def|
0000ff90  61 75 6c 74 20 6f 6e 20  55 6e 69 78 20 73 79 73  |ault on Unix sys|
0000ffa0  74 65 6d 73 20 74 68 61  74 0a 20 20 20 20 20 20  |tems that.      |
0000ffb0  20 20 20 20 73 75 70 70  6f 72 74 20 69 74 2e 20  |    support it. |
0000ffc0  54 68 69 73 20 6f 70 74  69 6f 6e 20 63 6f 75 6c  |This option coul|
0000ffd0  64 20 62 65 20 75 73 65  66 75 6c 20 6f 6e 20 57  |d be useful on W|
0000ffe0  69 6e 64 6f 77 73 20 73  79 73 74 65 6d 73 0a 20  |indows systems. |
0000fff0  20 20 20 20 20 20 20 20  20 77 68 65 72 65 20 74  |         where t|
00010000  68 65 20 65 73 63 61 70  65 64 20 70 61 74 68 20  |he escaped path |
00010010  69 73 20 74 6f 6f 20 6c  61 72 67 65 20 74 6f 20  |is too large to |
00010020  62 65 20 61 20 76 61 6c  69 64 20 70 61 74 68 20  |be a valid path |
00010030  61 6e 64 20 74 68 65 0a  20 20 20 20 20 20 20 20  |and the.        |
00010040  20 20 55 54 46 2d 38 20  76 65 72 73 69 6f 6e 20  |  UTF-8 version |
00010050  6f 66 20 74 68 65 20 70  61 74 68 20 69 73 20 73  |of the path is s|
00010060  6d 61 6c 6c 65 72 2c 20  62 75 74 20 6e 61 74 69  |maller, but nati|
00010070  76 65 20 55 54 46 2d 38  20 69 73 20 6e 6f 74 0a  |ve UTF-8 is not.|
00010080  20 20 20 20 20 20 20 20  20 20 62 61 63 6b 77 61  |          backwa|
00010090  72 64 20 63 6f 6d 70 61  74 69 62 6c 65 20 6f 6e  |rd compatible on|
000100a0  20 57 69 6e 64 6f 77 73  20 73 79 73 74 65 6d 73  | Windows systems|
000100b0  2e 0a 0a 20 20 20 2d 76  0a 0a 20 20 20 2d 2d 76  |...   -v..   --v|
000100c0  65 72 62 6f 73 65 0a 20  20 20 20 20 20 20 20 20  |erbose.         |
000100d0  20 56 65 72 62 6f 73 65  20 6d 6f 64 65 20 6f 72  | Verbose mode or|
000100e0  20 70 72 69 6e 74 20 64  69 61 67 6e 6f 73 74 69  | print diagnosti|
000100f0  63 20 76 65 72 73 69 6f  6e 20 69 6e 66 6f 2e 0a  |c version info..|
00010100  0a 20 20 20 4e 6f 72 6d  61 6c 6c 79 2c 20 77 68  |.   Normally, wh|
00010110  65 6e 20 61 70 70 6c 69  65 64 20 74 6f 20 72 65  |en applied to re|
00010120  61 6c 20 6f 70 65 72 61  74 69 6f 6e 73 2c 20 74  |al operations, t|
00010130  68 69 73 20 6f 70 74 69  6f 6e 20 65 6e 61 62 6c  |his option enabl|
00010140  65 73 20 74 68 65 0a 20  20 20 20 20 20 20 20 20  |es the.         |
00010150  20 64 69 73 70 6c 61 79  20 6f 66 20 61 0a 20 20  | display of a.  |
00010160  20 20 20 20 20 20 20 20  70 72 6f 67 72 65 73 73  |        progress|
00010170  20 69 6e 64 69 63 61 74  6f 72 20 64 75 72 69 6e  | indicator durin|
00010180  67 20 63 6f 6d 70 72 65  73 73 69 6f 6e 20 28 73  |g compression (s|
00010190  65 65 20 2d 64 64 20 66  6f 72 20 6d 6f 72 65 20  |ee -dd for more |
000101a0  6f 6e 0a 20 20 20 20 20  20 20 20 20 20 64 6f 74  |on.          dot|
000101b0  73 29 20 61 6e 64 20 72  65 71 75 65 73 74 73 20  |s) and requests |
000101c0  76 65 72 62 6f 73 65 20  64 69 61 67 6e 6f 73 74  |verbose diagnost|
000101d0  69 63 20 69 6e 66 6f 20  61 62 6f 75 74 20 7a 69  |ic info about zi|
000101e0  70 66 69 6c 65 0a 20 20  20 20 20 20 20 20 20 20  |pfile.          |
000101f0  73 74 72 75 63 74 75 72  65 20 6f 64 64 69 74 69  |structure odditi|
00010200  65 73 2e 0a 0a 20 20 20  48 6f 77 65 76 65 72 2c  |es...   However,|
00010210  20 77 68 65 6e 0a 20 20  20 20 20 20 20 20 20 20  | when.          |
00010220  2d 76 20 69 73 20 74 68  65 20 6f 6e 6c 79 20 63  |-v is the only c|
00010230  6f 6d 6d 61 6e 64 20 6c  69 6e 65 20 61 72 67 75  |ommand line argu|
00010240  6d 65 6e 74 20 61 20 64  69 61 67 6e 6f 73 74 69  |ment a diagnosti|
00010250  63 20 73 63 72 65 65 6e  20 69 73 0a 20 20 20 20  |c screen is.    |
00010260  20 20 20 20 20 20 70 72  69 6e 74 65 64 20 69 6e  |      printed in|
00010270  73 74 65 61 64 2e 20 54  68 69 73 20 73 68 6f 75  |stead. This shou|
00010280  6c 64 20 6e 6f 77 20 77  6f 72 6b 20 65 76 65 6e  |ld now work even|
00010290  20 69 66 20 73 74 64 6f  75 74 20 69 73 0a 20 20  | if stdout is.  |
000102a0  20 20 20 20 20 20 20 20  72 65 64 69 72 65 63 74  |        redirect|
000102b0  65 64 20 74 6f 20 61 20  66 69 6c 65 2c 20 61 6c  |ed to a file, al|
000102c0  6c 6f 77 69 6e 67 20 65  61 73 79 20 73 61 76 69  |lowing easy savi|
000102d0  6e 67 20 6f 66 20 74 68  65 20 69 6e 66 6f 72 6d  |ng of the inform|
000102e0  61 74 69 6f 6e 0a 20 20  20 20 20 20 20 20 20 20  |ation.          |
000102f0  66 6f 72 20 73 65 6e 64  69 6e 67 20 77 69 74 68  |for sending with|
00010300  20 62 75 67 20 72 65 70  6f 72 74 73 20 74 6f 20  | bug reports to |
00010310  49 6e 66 6f 2d 5a 49 50  2e 20 54 68 65 20 76 65  |Info-ZIP. The ve|
00010320  72 73 69 6f 6e 20 73 63  72 65 65 6e 0a 20 20 20  |rsion screen.   |
00010330  20 20 20 20 20 20 20 70  72 6f 76 69 64 65 73 20  |       provides |
00010340  74 68 65 20 68 65 6c 70  20 73 63 72 65 65 6e 20  |the help screen |
00010350  68 65 61 64 65 72 20 77  69 74 68 20 70 72 6f 67  |header with prog|
00010360  72 61 6d 20 6e 61 6d 65  2c 20 76 65 72 73 69 6f  |ram name, versio|
00010370  6e 2c 20 61 6e 64 0a 20  20 20 20 20 20 20 20 20  |n, and.         |
00010380  20 72 65 6c 65 61 73 65  20 64 61 74 65 2c 20 73  | release date, s|
00010390  6f 6d 65 20 70 6f 69 6e  74 65 72 73 20 74 6f 20  |ome pointers to |
000103a0  74 68 65 20 49 6e 66 6f  2d 5a 49 50 20 68 6f 6d  |the Info-ZIP hom|
000103b0  65 20 61 6e 64 0a 20 20  20 20 20 20 20 20 20 20  |e and.          |
000103c0  64 69 73 74 72 69 62 75  74 69 6f 6e 20 73 69 74  |distribution sit|
000103d0  65 73 2c 20 61 6e 64 20  73 68 6f 77 73 20 69 6e  |es, and shows in|
000103e0  66 6f 72 6d 61 74 69 6f  6e 20 61 62 6f 75 74 20  |formation about |
000103f0  74 68 65 20 74 61 72 67  65 74 0a 20 20 20 20 20  |the target.     |
00010400  20 20 20 20 20 65 6e 76  69 72 6f 6e 6d 65 6e 74  |     environment|
00010410  20 28 63 6f 6d 70 69 6c  65 72 20 74 79 70 65 20  | (compiler type |
00010420  61 6e 64 20 76 65 72 73  69 6f 6e 2c 20 4f 53 20  |and version, OS |
00010430  76 65 72 73 69 6f 6e 2c  20 63 6f 6d 70 69 6c 61  |version, compila|
00010440  74 69 6f 6e 0a 20 20 20  20 20 20 20 20 20 20 64  |tion.          d|
00010450  61 74 65 20 61 6e 64 20  74 68 65 20 65 6e 61 62  |ate and the enab|
00010460  6c 65 64 20 6f 70 74 69  6f 6e 61 6c 20 66 65 61  |led optional fea|
00010470  74 75 72 65 73 20 75 73  65 64 20 74 6f 20 63 72  |tures used to cr|
00010480  65 61 74 65 20 74 68 65  20 7a 69 70 0a 20 20 20  |eate the zip.   |
00010490  20 20 20 20 20 20 20 65  78 65 63 75 74 61 62 6c  |       executabl|
000104a0  65 29 2e 0a 0a 20 20 20  2d 56 0a 0a 20 20 20 2d  |e)...   -V..   -|
000104b0  2d 56 4d 53 2d 70 6f 72  74 61 62 6c 65 0a 20 20  |-VMS-portable.  |
000104c0  20 20 20 20 20 20 20 20  5b 56 4d 53 5d 20 53 61  |        [VMS] Sa|
000104d0  76 65 20 56 4d 53 20 66  69 6c 65 20 61 74 74 72  |ve VMS file attr|
000104e0  69 62 75 74 65 73 2e 20  28 46 69 6c 65 73 20 61  |ibutes. (Files a|
000104f0  72 65 20 74 72 75 6e 63  61 74 65 64 20 61 74 20  |re truncated at |
00010500  45 4f 46 2e 29 0a 20 20  20 20 20 20 20 20 20 20  |EOF.).          |
00010510  57 68 65 6e 20 61 20 2d  56 20 61 72 63 68 69 76  |When a -V archiv|
00010520  65 20 69 73 20 75 6e 70  61 63 6b 65 64 20 6f 6e  |e is unpacked on|
00010530  20 61 20 6e 6f 6e 2d 56  4d 53 20 73 79 73 74 65  | a non-VMS syste|
00010540  6d 2c 20 73 6f 6d 65 20  66 69 6c 65 0a 20 20 20  |m, some file.   |
00010550  20 20 20 20 20 20 20 74  79 70 65 73 20 28 6e 6f  |       types (no|
00010560  74 61 62 6c 79 20 53 74  72 65 61 6d 5f 4c 46 20  |tably Stream_LF |
00010570  74 65 78 74 20 66 69 6c  65 73 20 61 6e 64 20 70  |text files and p|
00010580  75 72 65 20 62 69 6e 61  72 79 20 66 69 6c 65 73  |ure binary files|
00010590  20 6c 69 6b 65 0a 20 20  20 20 20 20 20 20 20 20  | like.          |
000105a0  66 69 78 65 64 2d 35 31  32 29 20 73 68 6f 75 6c  |fixed-512) shoul|
000105b0  64 20 62 65 20 65 78 74  72 61 63 74 65 64 20 69  |d be extracted i|
000105c0  6e 74 61 63 74 2e 20 49  6e 64 65 78 65 64 20 66  |ntact. Indexed f|
000105d0  69 6c 65 73 20 61 6e 64  20 66 69 6c 65 0a 20 20  |iles and file.  |
000105e0  20 20 20 20 20 20 20 20  74 79 70 65 73 20 77 69  |        types wi|
000105f0  74 68 20 65 6d 62 65 64  64 65 64 20 72 65 63 6f  |th embedded reco|
00010600  72 64 20 73 69 7a 65 73  20 28 6e 6f 74 61 62 6c  |rd sizes (notabl|
00010610  79 20 76 61 72 69 61 62  6c 65 2d 6c 65 6e 67 74  |y variable-lengt|
00010620  68 0a 20 20 20 20 20 20  20 20 20 20 72 65 63 6f  |h.          reco|
00010630  72 64 20 74 79 70 65 73  29 20 77 69 6c 6c 20 70  |rd types) will p|
00010640  72 6f 62 61 62 6c 79 20  62 65 20 73 65 65 6e 20  |robably be seen |
00010650  61 73 20 63 6f 72 72 75  70 74 20 65 6c 73 65 77  |as corrupt elsew|
00010660  68 65 72 65 2e 0a 0a 20  20 20 2d 56 56 0a 0a 20  |here...   -VV.. |
00010670  20 20 2d 2d 56 4d 53 2d  73 70 65 63 69 66 69 63  |  --VMS-specific|
00010680  0a 20 20 20 20 20 20 20  20 20 20 5b 56 4d 53 5d  |.          [VMS]|
00010690  20 53 61 76 65 20 56 4d  53 20 66 69 6c 65 20 61  | Save VMS file a|
000106a0  74 74 72 69 62 75 74 65  73 2c 20 61 6e 64 20 61  |ttributes, and a|
000106b0  6c 6c 20 61 6c 6c 6f 63  61 74 65 64 20 62 6c 6f  |ll allocated blo|
000106c0  63 6b 73 20 69 6e 20 61  0a 20 20 20 20 20 20 20  |cks in a.       |
000106d0  20 20 20 66 69 6c 65 2c  20 69 6e 63 6c 75 64 69  |   file, includi|
000106e0  6e 67 20 61 6e 79 20 64  61 74 61 20 62 65 79 6f  |ng any data beyo|
000106f0  6e 64 20 45 4f 46 2e 20  55 73 65 66 75 6c 20 66  |nd EOF. Useful f|
00010700  6f 72 20 6d 6f 76 69 6e  67 0a 20 20 20 20 20 20  |or moving.      |
00010710  20 20 20 20 69 6c 6c 2d  66 6f 72 6d 65 64 20 66  |    ill-formed f|
00010720  69 6c 65 73 20 61 6d 6f  6e 67 20 56 4d 53 20 73  |iles among VMS s|
00010730  79 73 74 65 6d 73 2e 20  57 68 65 6e 20 61 20 2d  |ystems. When a -|
00010740  56 56 20 61 72 63 68 69  76 65 20 69 73 0a 20 20  |VV archive is.  |
00010750  20 20 20 20 20 20 20 20  75 6e 70 61 63 6b 65 64  |        unpacked|
00010760  20 6f 6e 20 61 20 6e 6f  6e 2d 56 4d 53 20 73 79  | on a non-VMS sy|
00010770  73 74 65 6d 2c 20 61 6c  6d 6f 73 74 20 61 6c 6c  |stem, almost all|
00010780  20 66 69 6c 65 73 20 77  69 6c 6c 20 61 70 70 65  | files will appe|
00010790  61 72 0a 20 20 20 20 20  20 20 20 20 20 63 6f 72  |ar.          cor|
000107a0  72 75 70 74 2e 0a 0a 20  20 20 2d 77 0a 0a 20 20  |rupt...   -w..  |
000107b0  20 2d 2d 56 4d 53 2d 76  65 72 73 69 6f 6e 73 0a  | --VMS-versions.|
000107c0  20 20 20 20 20 20 20 20  20 20 5b 56 4d 53 5d 20  |          [VMS] |
000107d0  41 70 70 65 6e 64 20 74  68 65 20 76 65 72 73 69  |Append the versi|
000107e0  6f 6e 20 6e 75 6d 62 65  72 20 6f 66 20 74 68 65  |on number of the|
000107f0  20 66 69 6c 65 73 20 74  6f 20 74 68 65 20 6e 61  | files to the na|
00010800  6d 65 2c 0a 20 20 20 20  20 20 20 20 20 20 69 6e  |me,.          in|
00010810  63 6c 75 64 69 6e 67 20  6d 75 6c 74 69 70 6c 65  |cluding multiple|
00010820  20 76 65 72 73 69 6f 6e  73 20 6f 66 20 66 69 6c  | versions of fil|
00010830  65 73 2e 20 44 65 66 61  75 6c 74 20 69 73 20 74  |es. Default is t|
00010840  6f 20 75 73 65 20 6f 6e  6c 79 0a 20 20 20 20 20  |o use only.     |
00010850  20 20 20 20 20 74 68 65  20 6d 6f 73 74 20 72 65  |     the most re|
00010860  63 65 6e 74 20 76 65 72  73 69 6f 6e 20 6f 66 20  |cent version of |
00010870  61 20 73 70 65 63 69 66  69 65 64 20 66 69 6c 65  |a specified file|
00010880  2e 0a 0a 20 20 20 2d 77  77 0a 0a 20 20 20 2d 2d  |...   -ww..   --|
00010890  56 4d 53 2d 64 6f 74 2d  76 65 72 73 69 6f 6e 73  |VMS-dot-versions|
000108a0  0a 20 20 20 20 20 20 20  20 20 20 5b 56 4d 53 5d  |.          [VMS]|
000108b0  20 41 70 70 65 6e 64 20  74 68 65 20 76 65 72 73  | Append the vers|
000108c0  69 6f 6e 20 6e 75 6d 62  65 72 20 6f 66 20 74 68  |ion number of th|
000108d0  65 20 66 69 6c 65 73 20  74 6f 20 74 68 65 20 6e  |e files to the n|
000108e0  61 6d 65 2c 0a 20 20 20  20 20 20 20 20 20 20 69  |ame,.          i|
000108f0  6e 63 6c 75 64 69 6e 67  20 6d 75 6c 74 69 70 6c  |ncluding multipl|
00010900  65 20 76 65 72 73 69 6f  6e 73 20 6f 66 20 66 69  |e versions of fi|
00010910  6c 65 73 2c 20 75 73 69  6e 67 20 74 68 65 20 2e  |les, using the .|
00010920  6e 6e 6e 20 66 6f 72 6d  61 74 2e 0a 20 20 20 20  |nnn format..    |
00010930  20 20 20 20 20 20 44 65  66 61 75 6c 74 20 69 73  |      Default is|
00010940  20 74 6f 20 75 73 65 20  6f 6e 6c 79 20 74 68 65  | to use only the|
00010950  20 6d 6f 73 74 20 72 65  63 65 6e 74 20 76 65 72  | most recent ver|
00010960  73 69 6f 6e 20 6f 66 20  61 20 73 70 65 63 69 66  |sion of a specif|
00010970  69 65 64 0a 20 20 20 20  20 20 20 20 20 20 66 69  |ied.          fi|
00010980  6c 65 2e 0a 0a 20 20 20  2d 77 73 0a 0a 20 20 20  |le...   -ws..   |
00010990  2d 2d 77 69 6c 64 2d 73  74 6f 70 2d 64 69 72 73  |--wild-stop-dirs|
000109a0  0a 20 20 20 20 20 20 20  20 20 20 57 69 6c 64 63  |.          Wildc|
000109b0  61 72 64 73 20 6d 61 74  63 68 20 6f 6e 6c 79 20  |ards match only |
000109c0  61 74 20 61 20 64 69 72  65 63 74 6f 72 79 20 6c  |at a directory l|
000109d0  65 76 65 6c 2e 20 4e 6f  72 6d 61 6c 6c 79 20 7a  |evel. Normally z|
000109e0  69 70 20 68 61 6e 64 6c  65 73 0a 20 20 20 20 20  |ip handles.     |
000109f0  20 20 20 20 20 70 61 74  68 73 20 61 73 20 73 74  |     paths as st|
00010a00  72 69 6e 67 73 20 61 6e  64 20 67 69 76 65 6e 20  |rings and given |
00010a10  74 68 65 20 70 61 74 68  73 0a 0a 20 20 20 2f 66  |the paths..   /f|
00010a20  6f 6f 2f 62 61 72 2f 64  69 72 2f 66 69 6c 65 31  |oo/bar/dir/file1|
00010a30  2e 63 0a 0a 20 20 20 2f  66 6f 6f 2f 62 61 72 2f  |.c..   /foo/bar/|
00010a40  66 69 6c 65 32 2e 63 0a  0a 20 20 20 61 6e 20 69  |file2.c..   an i|
00010a50  6e 70 75 74 20 70 61 74  74 65 72 6e 20 73 75 63  |nput pattern suc|
00010a60  68 20 61 73 0a 0a 20 20  20 2f 66 6f 6f 2f 62 61  |h as..   /foo/ba|
00010a70  72 2f 2a 0a 0a 20 20 20  6e 6f 72 6d 61 6c 6c 79  |r/*..   normally|
00010a80  20 77 6f 75 6c 64 20 6d  61 74 63 68 20 62 6f 74  | would match bot|
00010a90  68 20 70 61 74 68 73 2c  20 74 68 65 20 2a 20 6d  |h paths, the * m|
00010aa0  61 74 63 68 69 6e 67 20  64 69 72 2f 66 69 6c 65  |atching dir/file|
00010ab0  31 2e 63 0a 20 20 20 20  20 20 20 20 20 20 61 6e  |1.c.          an|
00010ac0  64 20 66 69 6c 65 32 2e  63 2e 20 4e 6f 74 65 20  |d file2.c. Note |
00010ad0  74 68 61 74 20 69 6e 20  74 68 65 20 66 69 72 73  |that in the firs|
00010ae0  74 20 63 61 73 65 20 61  20 64 69 72 65 63 74 6f  |t case a directo|
00010af0  72 79 20 62 6f 75 6e 64  61 72 79 0a 20 20 20 20  |ry boundary.    |
00010b00  20 20 20 20 20 20 28 2f  29 20 77 61 73 20 63 72  |      (/) was cr|
00010b10  6f 73 73 65 64 20 69 6e  20 74 68 65 20 6d 61 74  |ossed in the mat|
00010b20  63 68 2e 20 57 69 74 68  20 2d 77 73 20 6e 6f 20  |ch. With -ws no |
00010b30  64 69 72 65 63 74 6f 72  79 20 62 6f 75 6e 64 73  |directory bounds|
00010b40  20 77 69 6c 6c 0a 20 20  20 20 20 20 20 20 20 20  | will.          |
00010b50  62 65 20 69 6e 63 6c 75  64 65 64 20 69 6e 20 74  |be included in t|
00010b60  68 65 20 6d 61 74 63 68  2c 20 6d 61 6b 69 6e 67  |he match, making|
00010b70  20 77 69 6c 64 63 61 72  64 73 20 6c 6f 63 61 6c  | wildcards local|
00010b80  20 74 6f 20 61 20 73 70  65 63 69 66 69 63 0a 20  | to a specific. |
00010b90  20 20 20 20 20 20 20 20  20 64 69 72 65 63 74 6f  |         directo|
00010ba0  72 79 20 6c 65 76 65 6c  2e 20 53 6f 2c 20 77 69  |ry level. So, wi|
00010bb0  74 68 20 2d 77 73 20 65  6e 61 62 6c 65 64 2c 20  |th -ws enabled, |
00010bc0  6f 6e 6c 79 20 74 68 65  20 73 65 63 6f 6e 64 20  |only the second |
00010bd0  70 61 74 68 0a 20 20 20  20 20 20 20 20 20 20 77  |path.          w|
00010be0  6f 75 6c 64 20 62 65 20  6d 61 74 63 68 65 64 2e  |ould be matched.|
00010bf0  0a 0a 20 20 20 20 20 20  20 20 20 20 57 68 65 6e  |..          When|
00010c00  20 75 73 69 6e 67 20 2d  77 73 2c 20 75 73 65 20  | using -ws, use |
00010c10  2a 2a 20 74 6f 20 6d 61  74 63 68 20 61 63 72 6f  |** to match acro|
00010c20  73 73 20 64 69 72 65 63  74 6f 72 79 20 62 6f 75  |ss directory bou|
00010c30  6e 64 61 72 69 65 73 20  61 73 0a 20 20 20 20 20  |ndaries as.     |
00010c40  20 20 20 20 20 2a 20 64  6f 65 73 20 6e 6f 72 6d  |     * does norm|
00010c50  61 6c 6c 79 2e 0a 0a 20  20 20 2d 78 20 66 69 6c  |ally...   -x fil|
00010c60  65 73 0a 0a 20 20 20 2d  2d 65 78 63 6c 75 64 65  |es..   --exclude|
00010c70  20 66 69 6c 65 73 0a 20  20 20 20 20 20 20 20 20  | files.         |
00010c80  20 45 78 70 6c 69 63 69  74 6c 79 20 65 78 63 6c  | Explicitly excl|
00010c90  75 64 65 20 74 68 65 20  73 70 65 63 69 66 69 65  |ude the specifie|
00010ca0  64 20 66 69 6c 65 73 2c  20 61 73 20 69 6e 3a 0a  |d files, as in:.|
00010cb0  0a 20 20 20 7a 69 70 20  2d 72 20 66 6f 6f 20 66  |.   zip -r foo f|
00010cc0  6f 6f 20 2d 78 20 5c 2a  2e 6f 0a 0a 20 20 20 77  |oo -x \*.o..   w|
00010cd0  68 69 63 68 20 77 69 6c  6c 20 69 6e 63 6c 75 64  |hich will includ|
00010ce0  65 20 74 68 65 20 63 6f  6e 74 65 6e 74 73 20 6f  |e the contents o|
00010cf0  66 0a 20 20 20 20 20 20  20 20 20 20 66 6f 6f 20  |f.          foo |
00010d00  69 6e 20 66 6f 6f 2e 7a  69 70 20 77 68 69 6c 65  |in foo.zip while|
00010d10  20 65 78 63 6c 75 64 69  6e 67 20 61 6c 6c 20 74  | excluding all t|
00010d20  68 65 20 66 69 6c 65 73  20 74 68 61 74 20 65 6e  |he files that en|
00010d30  64 20 69 6e 20 2e 6f 2e  0a 20 20 20 20 20 20 20  |d in .o..       |
00010d40  20 20 20 54 68 65 20 62  61 63 6b 73 6c 61 73 68  |   The backslash|
00010d50  20 61 76 6f 69 64 73 20  74 68 65 20 73 68 65 6c  | avoids the shel|
00010d60  6c 20 66 69 6c 65 6e 61  6d 65 20 73 75 62 73 74  |l filename subst|
00010d70  69 74 75 74 69 6f 6e 2c  20 73 6f 20 74 68 61 74  |itution, so that|
00010d80  0a 20 20 20 20 20 20 20  20 20 20 74 68 65 20 6e  |.          the n|
00010d90  61 6d 65 20 6d 61 74 63  68 69 6e 67 20 69 73 20  |ame matching is |
00010da0  70 65 72 66 6f 72 6d 65  64 20 62 79 20 7a 69 70  |performed by zip|
00010db0  20 61 74 20 61 6c 6c 20  64 69 72 65 63 74 6f 72  | at all director|
00010dc0  79 20 6c 65 76 65 6c 73  2e 0a 0a 20 20 20 41 6c  |y levels...   Al|
00010dd0  73 6f 20 70 6f 73 73 69  62 6c 65 3a 0a 0a 20 20  |so possible:..  |
00010de0  20 7a 69 70 20 2d 72 20  66 6f 6f 20 66 6f 6f 20  | zip -r foo foo |
00010df0  2d 78 40 65 78 63 6c 75  64 65 2e 6c 73 74 0a 0a  |-x@exclude.lst..|
00010e00  20 20 20 77 68 69 63 68  20 77 69 6c 6c 20 69 6e  |   which will in|
00010e10  63 6c 75 64 65 20 74 68  65 20 63 6f 6e 74 65 6e  |clude the conten|
00010e20  74 73 20 6f 66 0a 20 20  20 20 20 20 20 20 20 20  |ts of.          |
00010e30  66 6f 6f 20 69 6e 20 66  6f 6f 2e 7a 69 70 20 77  |foo in foo.zip w|
00010e40  68 69 6c 65 20 65 78 63  6c 75 64 69 6e 67 20 61  |hile excluding a|
00010e50  6c 6c 20 74 68 65 20 66  69 6c 65 73 20 74 68 61  |ll the files tha|
00010e60  74 20 6d 61 74 63 68 20  74 68 65 0a 20 20 20 20  |t match the.    |
00010e70  20 20 20 20 20 20 70 61  74 74 65 72 6e 73 20 69  |      patterns i|
00010e80  6e 20 74 68 65 20 66 69  6c 65 20 65 78 63 6c 75  |n the file exclu|
00010e90  64 65 2e 6c 73 74 2e 0a  0a 20 20 20 54 68 65 20  |de.lst...   The |
00010ea0  6c 6f 6e 67 20 6f 70 74  69 6f 6e 20 66 6f 72 6d  |long option form|
00010eb0  73 20 6f 66 20 74 68 65  20 61 62 6f 76 65 20 61  |s of the above a|
00010ec0  72 65 0a 0a 20 20 20 7a  69 70 20 2d 72 20 66 6f  |re..   zip -r fo|
00010ed0  6f 20 66 6f 6f 20 2d 2d  65 78 63 6c 75 64 65 20  |o foo --exclude |
00010ee0  5c 2a 2e 6f 0a 0a 20 20  20 61 6e 64 0a 0a 20 20  |\*.o..   and..  |
00010ef0  20 7a 69 70 20 2d 72 20  66 6f 6f 20 66 6f 6f 20  | zip -r foo foo |
00010f00  2d 2d 65 78 63 6c 75 64  65 20 40 65 78 63 6c 75  |--exclude @exclu|
00010f10  64 65 2e 6c 73 74 0a 0a  20 20 20 4d 75 6c 74 69  |de.lst..   Multi|
00010f20  70 6c 65 20 70 61 74 74  65 72 6e 73 20 63 61 6e  |ple patterns can|
00010f30  20 62 65 20 73 70 65 63  69 66 69 65 64 2c 20 61  | be specified, a|
00010f40  73 20 69 6e 3a 0a 0a 20  20 20 7a 69 70 20 2d 72  |s in:..   zip -r|
00010f50  20 66 6f 6f 20 66 6f 6f  20 2d 78 20 5c 2a 2e 6f  | foo foo -x \*.o|
00010f60  20 5c 2a 2e 63 0a 0a 20  20 20 49 66 20 74 68 65  | \*.c..   If the|
00010f70  72 65 20 69 73 20 6e 6f  20 73 70 61 63 65 20 62  |re is no space b|
00010f80  65 74 77 65 65 6e 20 2d  78 20 61 6e 64 0a 20 20  |etween -x and.  |
00010f90  20 20 20 20 20 20 20 20  74 68 65 20 70 61 74 74  |        the patt|
00010fa0  65 72 6e 2c 20 6a 75 73  74 20 6f 6e 65 20 76 61  |ern, just one va|
00010fb0  6c 75 65 20 69 73 20 61  73 73 75 6d 65 64 20 28  |lue is assumed (|
00010fc0  6e 6f 20 6c 69 73 74 29  3a 0a 0a 20 20 20 7a 69  |no list):..   zi|
00010fd0  70 20 2d 72 20 66 6f 6f  20 66 6f 6f 20 2d 78 5c  |p -r foo foo -x\|
00010fe0  2a 2e 6f 0a 0a 20 20 20  53 65 65 20 2d 69 20 66  |*.o..   See -i f|
00010ff0  6f 72 20 6d 6f 72 65 20  6f 6e 20 69 6e 63 6c 75  |or more on inclu|
00011000  64 65 20 61 6e 64 20 65  78 63 6c 75 64 65 2e 0a  |de and exclude..|
00011010  0a 20 20 20 2d 58 0a 0a  20 20 20 2d 2d 6e 6f 2d  |.   -X..   --no-|
00011020  65 78 74 72 61 0a 20 20  20 20 20 20 20 20 20 20  |extra.          |
00011030  44 6f 20 6e 6f 74 20 73  61 76 65 20 65 78 74 72  |Do not save extr|
00011040  61 20 66 69 6c 65 20 61  74 74 72 69 62 75 74 65  |a file attribute|
00011050  73 20 28 45 78 74 65 6e  64 65 64 20 41 74 74 72  |s (Extended Attr|
00011060  69 62 75 74 65 73 20 6f  6e 20 4f 53 2f 32 2c 0a  |ibutes on OS/2,.|
00011070  20 20 20 20 20 20 20 20  20 20 75 69 64 2f 67 69  |          uid/gi|
00011080  64 20 61 6e 64 20 66 69  6c 65 20 74 69 6d 65 73  |d and file times|
00011090  20 6f 6e 20 55 6e 69 78  29 2e 20 54 68 65 20 7a  | on Unix). The z|
000110a0  69 70 20 66 6f 72 6d 61  74 20 75 73 65 73 20 65  |ip format uses e|
000110b0  78 74 72 61 0a 20 20 20  20 20 20 20 20 20 20 66  |xtra.          f|
000110c0  69 65 6c 64 73 20 74 6f  20 69 6e 63 6c 75 64 65  |ields to include|
000110d0  20 61 64 64 69 74 69 6f  6e 61 6c 20 69 6e 66 6f  | additional info|
000110e0  72 6d 61 74 69 6f 6e 20  66 6f 72 20 65 61 63 68  |rmation for each|
000110f0  20 65 6e 74 72 79 2e 20  53 6f 6d 65 0a 20 20 20  | entry. Some.   |
00011100  20 20 20 20 20 20 20 65  78 74 72 61 20 66 69 65  |       extra fie|
00011110  6c 64 73 20 61 72 65 20  73 70 65 63 69 66 69 63  |lds are specific|
00011120  20 74 6f 20 70 61 72 74  69 63 75 6c 61 72 20 73  | to particular s|
00011130  79 73 74 65 6d 73 20 77  68 69 6c 65 20 6f 74 68  |ystems while oth|
00011140  65 72 73 0a 20 20 20 20  20 20 20 20 20 20 61 72  |ers.          ar|
00011150  65 20 61 70 70 6c 69 63  61 62 6c 65 20 74 6f 20  |e applicable to |
00011160  61 6c 6c 20 73 79 73 74  65 6d 73 2e 20 4e 6f 72  |all systems. Nor|
00011170  6d 61 6c 6c 79 20 77 68  65 6e 20 7a 69 70 20 72  |mally when zip r|
00011180  65 61 64 73 20 65 6e 74  72 69 65 73 0a 20 20 20  |eads entries.   |
00011190  20 20 20 20 20 20 20 66  72 6f 6d 20 61 6e 20 65  |       from an e|
000111a0  78 69 73 74 69 6e 67 20  61 72 63 68 69 76 65 2c  |xisting archive,|
000111b0  20 69 74 20 72 65 61 64  73 20 74 68 65 20 65 78  | it reads the ex|
000111c0  74 72 61 20 66 69 65 6c  64 73 20 69 74 20 6b 6e  |tra fields it kn|
000111d0  6f 77 73 2c 0a 20 20 20  20 20 20 20 20 20 20 73  |ows,.          s|
000111e0  74 72 69 70 73 20 74 68  65 20 72 65 73 74 2c 20  |trips the rest, |
000111f0  61 6e 64 20 61 64 64 73  20 74 68 65 20 65 78 74  |and adds the ext|
00011200  72 61 20 66 69 65 6c 64  73 20 61 70 70 6c 69 63  |ra fields applic|
00011210  61 62 6c 65 20 74 6f 20  74 68 61 74 0a 20 20 20  |able to that.   |
00011220  20 20 20 20 20 20 20 73  79 73 74 65 6d 2e 20 57  |       system. W|
00011230  69 74 68 20 2d 58 2c 20  7a 69 70 20 73 74 72 69  |ith -X, zip stri|
00011240  70 73 20 61 6c 6c 20 6f  6c 64 20 66 69 65 6c 64  |ps all old field|
00011250  73 20 61 6e 64 20 6f 6e  6c 79 20 69 6e 63 6c 75  |s and only inclu|
00011260  64 65 73 0a 20 20 20 20  20 20 20 20 20 20 74 68  |des.          th|
00011270  65 20 55 6e 69 63 6f 64  65 20 61 6e 64 20 5a 69  |e Unicode and Zi|
00011280  70 36 34 20 65 78 74 72  61 20 66 69 65 6c 64 73  |p64 extra fields|
00011290  20 28 63 75 72 72 65 6e  74 6c 79 20 74 68 65 73  | (currently thes|
000112a0  65 20 74 77 6f 20 65 78  74 72 61 0a 20 20 20 20  |e two extra.    |
000112b0  20 20 20 20 20 20 66 69  65 6c 64 73 20 63 61 6e  |      fields can|
000112c0  6e 6f 74 20 62 65 20 64  69 73 61 62 6c 65 64 29  |not be disabled)|
000112d0  2e 0a 0a 20 20 20 20 20  20 20 20 20 20 4e 65 67  |...          Neg|
000112e0  61 74 69 6e 67 20 74 68  69 73 20 6f 70 74 69 6f  |ating this optio|
000112f0  6e 2c 20 2d 58 2d 2c 20  69 6e 63 6c 75 64 65 73  |n, -X-, includes|
00011300  20 61 6c 6c 20 74 68 65  20 64 65 66 61 75 6c 74  | all the default|
00011310  20 65 78 74 72 61 0a 20  20 20 20 20 20 20 20 20  | extra.         |
00011320  20 66 69 65 6c 64 73 2c  20 62 75 74 20 61 6c 73  | fields, but als|
00011330  6f 20 63 6f 70 69 65 73  20 6f 76 65 72 20 61 6e  |o copies over an|
00011340  79 20 75 6e 72 65 63 6f  67 6e 69 7a 65 64 20 65  |y unrecognized e|
00011350  78 74 72 61 20 66 69 65  6c 64 73 2e 0a 0a 20 20  |xtra fields...  |
00011360  20 2d 79 0a 0a 20 20 20  2d 2d 73 79 6d 6c 69 6e  | -y..   --symlin|
00011370  6b 73 0a 20 20 20 20 20  20 20 20 20 20 46 6f 72  |ks.          For|
00011380  20 55 4e 49 58 20 61 6e  64 20 56 4d 53 20 28 56  | UNIX and VMS (V|
00011390  38 2e 33 20 61 6e 64 20  6c 61 74 65 72 29 2c 20  |8.3 and later), |
000113a0  73 74 6f 72 65 20 73 79  6d 62 6f 6c 69 63 20 6c  |store symbolic l|
000113b0  69 6e 6b 73 20 61 73 20  73 75 63 68 0a 20 20 20  |inks as such.   |
000113c0  20 20 20 20 20 20 20 69  6e 20 74 68 65 20 7a 69  |       in the zi|
000113d0  70 20 61 72 63 68 69 76  65 2c 20 69 6e 73 74 65  |p archive, inste|
000113e0  61 64 20 6f 66 20 63 6f  6d 70 72 65 73 73 69 6e  |ad of compressin|
000113f0  67 20 61 6e 64 20 73 74  6f 72 69 6e 67 20 74 68  |g and storing th|
00011400  65 20 66 69 6c 65 0a 20  20 20 20 20 20 20 20 20  |e file.         |
00011410  20 72 65 66 65 72 72 65  64 20 74 6f 20 62 79 20  | referred to by |
00011420  74 68 65 20 6c 69 6e 6b  2e 20 54 68 69 73 20 63  |the link. This c|
00011430  61 6e 20 61 76 6f 69 64  20 6d 75 6c 74 69 70 6c  |an avoid multipl|
00011440  65 20 63 6f 70 69 65 73  20 6f 66 0a 20 20 20 20  |e copies of.    |
00011450  20 20 20 20 20 20 66 69  6c 65 73 20 62 65 69 6e  |      files bein|
00011460  67 20 69 6e 63 6c 75 64  65 64 20 69 6e 20 74 68  |g included in th|
00011470  65 20 61 72 63 68 69 76  65 20 61 73 20 7a 69 70  |e archive as zip|
00011480  20 72 65 63 75 72 73 65  73 20 74 68 65 0a 20 20  | recurses the.  |
00011490  20 20 20 20 20 20 20 20  64 69 72 65 63 74 6f 72  |        director|
000114a0  79 20 74 72 65 65 73 20  61 6e 64 20 61 63 63 65  |y trees and acce|
000114b0  73 73 65 73 20 66 69 6c  65 73 20 64 69 72 65 63  |sses files direc|
000114c0  74 6c 79 20 61 6e 64 20  62 79 20 6c 69 6e 6b 73  |tly and by links|
000114d0  2e 0a 0a 20 20 20 2d 7a  0a 0a 20 20 20 2d 2d 61  |...   -z..   --a|
000114e0  72 63 68 69 76 65 2d 63  6f 6d 6d 65 6e 74 0a 20  |rchive-comment. |
000114f0  20 20 20 20 20 20 20 20  20 50 72 6f 6d 70 74 20  |         Prompt |
00011500  66 6f 72 20 61 20 6d 75  6c 74 69 2d 6c 69 6e 65  |for a multi-line|
00011510  20 63 6f 6d 6d 65 6e 74  20 66 6f 72 20 74 68 65  | comment for the|
00011520  20 65 6e 74 69 72 65 20  7a 69 70 20 61 72 63 68  | entire zip arch|
00011530  69 76 65 2e 20 54 68 65  0a 20 20 20 20 20 20 20  |ive. The.       |
00011540  20 20 20 63 6f 6d 6d 65  6e 74 20 69 73 20 65 6e  |   comment is en|
00011550  64 65 64 20 62 79 20 61  20 6c 69 6e 65 20 63 6f  |ded by a line co|
00011560  6e 74 61 69 6e 69 6e 67  20 6a 75 73 74 20 61 20  |ntaining just a |
00011570  70 65 72 69 6f 64 2c 20  6f 72 20 61 6e 20 65 6e  |period, or an en|
00011580  64 0a 20 20 20 20 20 20  20 20 20 20 6f 66 20 66  |d.          of f|
00011590  69 6c 65 20 63 6f 6e 64  69 74 69 6f 6e 20 28 5e  |ile condition (^|
000115a0  44 20 6f 6e 20 55 6e 69  78 2c 20 5e 5a 20 6f 6e  |D on Unix, ^Z on|
000115b0  20 4d 53 44 4f 53 2c 20  4f 53 2f 32 2c 20 61 6e  | MSDOS, OS/2, an|
000115c0  64 20 56 4d 53 29 2e 20  54 68 65 0a 20 20 20 20  |d VMS). The.    |
000115d0  20 20 20 20 20 20 63 6f  6d 6d 65 6e 74 20 63 61  |      comment ca|
000115e0  6e 20 62 65 20 74 61 6b  65 6e 20 66 72 6f 6d 20  |n be taken from |
000115f0  61 20 66 69 6c 65 3a 0a  0a 20 20 20 7a 69 70 20  |a file:..   zip |
00011600  2d 7a 20 66 6f 6f 20 3c  20 66 6f 6f 77 68 61 74  |-z foo < foowhat|
00011610  0a 0a 20 20 20 2d 5a 20  63 6d 0a 0a 20 20 20 2d  |..   -Z cm..   -|
00011620  2d 63 6f 6d 70 72 65 73  73 69 6f 6e 2d 6d 65 74  |-compression-met|
00011630  68 6f 64 20 63 6d 0a 20  20 20 20 20 20 20 20 20  |hod cm.         |
00011640  20 53 65 74 20 74 68 65  20 64 65 66 61 75 6c 74  | Set the default|
00011650  20 63 6f 6d 70 72 65 73  73 69 6f 6e 20 6d 65 74  | compression met|
00011660  68 6f 64 2e 20 43 75 72  72 65 6e 74 6c 79 20 74  |hod. Currently t|
00011670  68 65 20 6d 61 69 6e 20  6d 65 74 68 6f 64 73 0a  |he main methods.|
00011680  20 20 20 20 20 20 20 20  20 20 73 75 70 70 6f 72  |          suppor|
00011690  74 65 64 20 62 79 20 7a  69 70 20 61 72 65 20 73  |ted by zip are s|
000116a0  74 6f 72 65 20 61 6e 64  20 64 65 66 6c 61 74 65  |tore and deflate|
000116b0  2e 20 43 6f 6d 70 72 65  73 73 69 6f 6e 20 6d 65  |. Compression me|
000116c0  74 68 6f 64 20 63 61 6e  0a 20 20 20 20 20 20 20  |thod can.       |
000116d0  20 20 20 62 65 20 73 65  74 20 74 6f 3a 0a 0a 20  |   be set to:.. |
000116e0  20 20 20 20 20 20 20 20  20 73 74 6f 72 65 20 2d  |         store -|
000116f0  20 53 65 74 74 69 6e 67  20 74 68 65 20 63 6f 6d  | Setting the com|
00011700  70 72 65 73 73 69 6f 6e  20 6d 65 74 68 6f 64 20  |pression method |
00011710  74 6f 20 73 74 6f 72 65  20 66 6f 72 63 65 73 20  |to store forces |
00011720  7a 69 70 20 74 6f 0a 20  20 20 20 20 20 20 20 20  |zip to.         |
00011730  20 73 74 6f 72 65 20 65  6e 74 72 69 65 73 20 77  | store entries w|
00011740  69 74 68 20 6e 6f 20 63  6f 6d 70 72 65 73 73 69  |ith no compressi|
00011750  6f 6e 2e 20 54 68 69 73  20 69 73 20 67 65 6e 65  |on. This is gene|
00011760  72 61 6c 6c 79 20 66 61  73 74 65 72 0a 20 20 20  |rally faster.   |
00011770  20 20 20 20 20 20 20 74  68 61 6e 20 63 6f 6d 70  |       than comp|
00011780  72 65 73 73 69 6e 67 20  65 6e 74 72 69 65 73 2c  |ressing entries,|
00011790  20 62 75 74 20 72 65 73  75 6c 74 73 20 69 6e 20  | but results in |
000117a0  6e 6f 20 73 70 61 63 65  20 73 61 76 69 6e 67 73  |no space savings|
000117b0  2e 20 54 68 69 73 0a 20  20 20 20 20 20 20 20 20  |. This.         |
000117c0  20 69 73 20 74 68 65 20  73 61 6d 65 20 61 73 20  | is the same as |
000117d0  75 73 69 6e 67 20 2d 30  20 28 63 6f 6d 70 72 65  |using -0 (compre|
000117e0  73 73 69 6f 6e 20 6c 65  76 65 6c 20 7a 65 72 6f  |ssion level zero|
000117f0  29 2e 0a 0a 20 20 20 20  20 20 20 20 20 20 64 65  |)...          de|
00011800  66 6c 61 74 65 20 2d 20  54 68 69 73 20 69 73 20  |flate - This is |
00011810  74 68 65 20 64 65 66 61  75 6c 74 20 6d 65 74 68  |the default meth|
00011820  6f 64 20 66 6f 72 20 7a  69 70 2e 20 49 66 20 7a  |od for zip. If z|
00011830  69 70 20 64 65 74 65 72  6d 69 6e 65 73 0a 20 20  |ip determines.  |
00011840  20 20 20 20 20 20 20 20  74 68 61 74 20 73 74 6f  |        that sto|
00011850  72 69 6e 67 20 69 73 20  62 65 74 74 65 72 20 74  |ring is better t|
00011860  68 61 6e 20 64 65 66 6c  61 74 69 6f 6e 2c 20 74  |han deflation, t|
00011870  68 65 20 65 6e 74 72 79  20 77 69 6c 6c 20 62 65  |he entry will be|
00011880  20 73 74 6f 72 65 64 0a  20 20 20 20 20 20 20 20  | stored.        |
00011890  20 20 69 6e 73 74 65 61  64 2e 0a 0a 20 20 20 20  |  instead...    |
000118a0  20 20 20 20 20 20 62 7a  69 70 32 20 2d 20 49 66  |      bzip2 - If|
000118b0  20 62 7a 69 70 32 20 73  75 70 70 6f 72 74 20 69  | bzip2 support i|
000118c0  73 20 63 6f 6d 70 69 6c  65 64 20 69 6e 2c 20 74  |s compiled in, t|
000118d0  68 69 73 20 63 6f 6d 70  72 65 73 73 69 6f 6e 0a  |his compression.|
000118e0  20 20 20 20 20 20 20 20  20 20 6d 65 74 68 6f 64  |          method|
000118f0  20 61 6c 73 6f 20 62 65  63 6f 6d 65 73 20 61 76  | also becomes av|
00011900  61 69 6c 61 62 6c 65 2e  20 4f 6e 6c 79 20 73 6f  |ailable. Only so|
00011910  6d 65 20 6d 6f 64 65 72  6e 20 75 6e 7a 69 70 73  |me modern unzips|
00011920  0a 20 20 20 20 20 20 20  20 20 20 63 75 72 72 65  |.          curre|
00011930  6e 74 6c 79 20 73 75 70  70 6f 72 74 20 74 68 65  |ntly support the|
00011940  20 62 7a 69 70 32 20 63  6f 6d 70 72 65 73 73 69  | bzip2 compressi|
00011950  6f 6e 20 6d 65 74 68 6f  64 2c 20 73 6f 20 74 65  |on method, so te|
00011960  73 74 20 74 68 65 0a 20  20 20 20 20 20 20 20 20  |st the.         |
00011970  20 75 6e 7a 69 70 20 79  6f 75 20 77 69 6c 6c 20  | unzip you will |
00011980  62 65 20 75 73 69 6e 67  20 62 65 66 6f 72 65 20  |be using before |
00011990  72 65 6c 79 69 6e 67 20  6f 6e 20 61 72 63 68 69  |relying on archi|
000119a0  76 65 73 20 75 73 69 6e  67 20 74 68 69 73 0a 20  |ves using this. |
000119b0  20 20 20 20 20 20 20 20  20 6d 65 74 68 6f 64 20  |         method |
000119c0  28 63 6f 6d 70 72 65 73  73 69 6f 6e 20 6d 65 74  |(compression met|
000119d0  68 6f 64 20 31 32 29 2e  0a 0a 20 20 20 20 20 20  |hod 12)...      |
000119e0  20 20 20 20 46 6f 72 20  65 78 61 6d 70 6c 65 2c  |    For example,|
000119f0  20 74 6f 20 61 64 64 20  62 61 72 2e 63 20 74 6f  | to add bar.c to|
00011a00  20 61 72 63 68 69 76 65  20 66 6f 6f 20 75 73 69  | archive foo usi|
00011a10  6e 67 20 62 7a 69 70 32  0a 20 20 20 20 20 20 20  |ng bzip2.       |
00011a20  20 20 20 63 6f 6d 70 72  65 73 73 69 6f 6e 3a 0a  |   compression:.|
00011a30  0a 20 20 20 7a 69 70 20  2d 5a 20 62 7a 69 70 32  |.   zip -Z bzip2|
00011a40  20 66 6f 6f 20 62 61 72  2e 63 0a 0a 20 20 20 54  | foo bar.c..   T|
00011a50  68 65 20 63 6f 6d 70 72  65 73 73 69 6f 6e 20 6d  |he compression m|
00011a60  65 74 68 6f 64 20 63 61  6e 20 62 65 20 61 62 62  |ethod can be abb|
00011a70  72 65 76 69 61 74 65 64  3a 0a 0a 20 20 20 7a 69  |reviated:..   zi|
00011a80  70 20 2d 5a 62 20 66 6f  6f 20 62 61 72 2e 63 0a  |p -Zb foo bar.c.|
00011a90  0a 20 20 20 2d 23 0a 0a  20 20 20 28 2d 30 2c 20  |.   -#..   (-0, |
00011aa0  2d 31 2c 20 2d 32 2c 20  2d 33 2c 20 2d 34 2c 20  |-1, -2, -3, -4, |
00011ab0  2d 35 2c 20 2d 36 2c 20  2d 37 2c 20 2d 38 2c 20  |-5, -6, -7, -8, |
00011ac0  2d 39 29 0a 20 20 20 20  20 20 20 20 20 20 52 65  |-9).          Re|
00011ad0  67 75 6c 61 74 65 20 74  68 65 20 73 70 65 65 64  |gulate the speed|
00011ae0  20 6f 66 20 63 6f 6d 70  72 65 73 73 69 6f 6e 20  | of compression |
00011af0  75 73 69 6e 67 20 74 68  65 20 73 70 65 63 69 66  |using the specif|
00011b00  69 65 64 20 64 69 67 69  74 20 23 2c 0a 20 20 20  |ied digit #,.   |
00011b10  20 20 20 20 20 20 20 77  68 65 72 65 20 2d 30 20  |       where -0 |
00011b20  69 6e 64 69 63 61 74 65  73 20 6e 6f 20 63 6f 6d  |indicates no com|
00011b30  70 72 65 73 73 69 6f 6e  20 28 73 74 6f 72 65 20  |pression (store |
00011b40  61 6c 6c 20 66 69 6c 65  73 29 2c 20 2d 31 0a 20  |all files), -1. |
00011b50  20 20 20 20 20 20 20 20  20 69 6e 64 69 63 61 74  |         indicat|
00011b60  65 73 20 74 68 65 20 66  61 73 74 65 73 74 20 63  |es the fastest c|
00011b70  6f 6d 70 72 65 73 73 69  6f 6e 20 73 70 65 65 64  |ompression speed|
00011b80  20 28 6c 65 73 73 20 63  6f 6d 70 72 65 73 73 69  | (less compressi|
00011b90  6f 6e 29 20 61 6e 64 0a  20 20 20 20 20 20 20 20  |on) and.        |
00011ba0  20 20 2d 39 20 69 6e 64  69 63 61 74 65 73 20 74  |  -9 indicates t|
00011bb0  68 65 20 73 6c 6f 77 65  73 74 20 63 6f 6d 70 72  |he slowest compr|
00011bc0  65 73 73 69 6f 6e 20 73  70 65 65 64 20 28 6f 70  |ession speed (op|
00011bd0  74 69 6d 61 6c 0a 20 20  20 20 20 20 20 20 20 20  |timal.          |
00011be0  63 6f 6d 70 72 65 73 73  69 6f 6e 2c 20 69 67 6e  |compression, ign|
00011bf0  6f 72 65 73 20 74 68 65  20 73 75 66 66 69 78 20  |ores the suffix |
00011c00  6c 69 73 74 29 2e 20 54  68 65 20 64 65 66 61 75  |list). The defau|
00011c10  6c 74 20 63 6f 6d 70 72  65 73 73 69 6f 6e 0a 20  |lt compression. |
00011c20  20 20 20 20 20 20 20 20  20 6c 65 76 65 6c 20 69  |         level i|
00011c30  73 20 2d 36 2e 0a 0a 20  20 20 20 20 20 20 20 20  |s -6...         |
00011c40  20 54 68 6f 75 67 68 20  73 74 69 6c 6c 20 62 65  | Though still be|
00011c50  69 6e 67 20 77 6f 72 6b  65 64 2c 20 74 68 65 20  |ing worked, the |
00011c60  69 6e 74 65 6e 74 69 6f  6e 20 69 73 20 74 68 69  |intention is thi|
00011c70  73 20 73 65 74 74 69 6e  67 20 77 69 6c 6c 0a 20  |s setting will. |
00011c80  20 20 20 20 20 20 20 20  20 63 6f 6e 74 72 6f 6c  |         control|
00011c90  20 63 6f 6d 70 72 65 73  73 69 6f 6e 20 73 70 65  | compression spe|
00011ca0  65 64 20 66 6f 72 20 61  6c 6c 20 63 6f 6d 70 72  |ed for all compr|
00011cb0  65 73 73 69 6f 6e 20 6d  65 74 68 6f 64 73 2e 0a  |ession methods..|
00011cc0  20 20 20 20 20 20 20 20  20 20 43 75 72 72 65 6e  |          Curren|
00011cd0  74 6c 79 20 6f 6e 6c 79  20 64 65 66 6c 61 74 69  |tly only deflati|
00011ce0  6f 6e 20 69 73 20 63 6f  6e 74 72 6f 6c 6c 65 64  |on is controlled|
00011cf0  2e 0a 0a 20 20 20 2d 21  0a 0a 20 20 20 2d 2d 75  |...   -!..   --u|
00011d00  73 65 2d 70 72 69 76 69  6c 65 67 65 73 0a 20 20  |se-privileges.  |
00011d10  20 20 20 20 20 20 20 20  5b 57 49 4e 33 32 5d 20  |        [WIN32] |
00011d20  55 73 65 20 70 72 69 76  69 6c 69 67 65 73 20 28  |Use priviliges (|
00011d30  69 66 20 67 72 61 6e 74  65 64 29 20 74 6f 20 6f  |if granted) to o|
00011d40  62 74 61 69 6e 20 61 6c  6c 20 61 73 70 65 63 74  |btain all aspect|
00011d50  73 20 6f 66 0a 20 20 20  20 20 20 20 20 20 20 57  |s of.          W|
00011d60  69 6e 4e 54 20 73 65 63  75 72 69 74 79 2e 0a 0a  |inNT security...|
00011d70  20 20 20 2d 40 0a 0a 20  20 20 2d 2d 6e 61 6d 65  |   -@..   --name|
00011d80  73 2d 73 74 64 69 6e 0a  20 20 20 20 20 20 20 20  |s-stdin.        |
00011d90  20 20 54 61 6b 65 20 74  68 65 20 6c 69 73 74 20  |  Take the list |
00011da0  6f 66 20 69 6e 70 75 74  20 66 69 6c 65 73 20 66  |of input files f|
00011db0  72 6f 6d 20 73 74 61 6e  64 61 72 64 20 69 6e 70  |rom standard inp|
00011dc0  75 74 2e 20 4f 6e 6c 79  20 6f 6e 65 0a 20 20 20  |ut. Only one.   |
00011dd0  20 20 20 20 20 20 20 66  69 6c 65 6e 61 6d 65 20  |       filename |
00011de0  70 65 72 20 6c 69 6e 65  2e 0a 0a 20 20 20 2d 24  |per line...   -$|
00011df0  0a 0a 20 20 20 2d 2d 76  6f 6c 75 6d 65 2d 6c 61  |..   --volume-la|
00011e00  62 65 6c 0a 20 20 20 20  20 20 20 20 20 20 5b 4d  |bel.          [M|
00011e10  53 44 4f 53 2c 20 4f 53  2f 32 2c 20 57 49 4e 33  |SDOS, OS/2, WIN3|
00011e20  32 5d 20 49 6e 63 6c 75  64 65 20 74 68 65 20 76  |2] Include the v|
00011e30  6f 6c 75 6d 65 20 6c 61  62 65 6c 20 66 6f 72 20  |olume label for |
00011e40  74 68 65 20 64 72 69 76  65 0a 20 20 20 20 20 20  |the drive.      |
00011e50  20 20 20 20 68 6f 6c 64  69 6e 67 20 74 68 65 20  |    holding the |
00011e60  66 69 72 73 74 20 66 69  6c 65 20 74 6f 20 62 65  |first file to be|
00011e70  20 63 6f 6d 70 72 65 73  73 65 64 2e 20 49 66 20  | compressed. If |
00011e80  79 6f 75 20 77 61 6e 74  20 74 6f 20 69 6e 63 6c  |you want to incl|
00011e90  75 64 65 0a 20 20 20 20  20 20 20 20 20 20 6f 6e  |ude.          on|
00011ea0  6c 79 20 74 68 65 20 76  6f 6c 75 6d 65 20 6c 61  |ly the volume la|
00011eb0  62 65 6c 20 6f 72 20 74  6f 20 66 6f 72 63 65 20  |bel or to force |
00011ec0  61 20 73 70 65 63 69 66  69 63 20 64 72 69 76 65  |a specific drive|
00011ed0  2c 20 75 73 65 20 74 68  65 0a 20 20 20 20 20 20  |, use the.      |
00011ee0  20 20 20 20 64 72 69 76  65 20 6e 61 6d 65 20 61  |    drive name a|
00011ef0  73 20 66 69 72 73 74 20  66 69 6c 65 20 6e 61 6d  |s first file nam|
00011f00  65 2c 20 61 73 20 69 6e  3a 0a 0a 20 20 20 7a 69  |e, as in:..   zi|
00011f10  70 20 2d 24 20 66 6f 6f  20 61 3a 20 63 3a 62 61  |p -$ foo a: c:ba|
00011f20  72 0a 0a 45 78 61 6d 70  6c 65 73 0a 0a 20 20 20  |r..Examples..   |
00011f30  54 68 65 20 73 69 6d 70  6c 65 73 74 20 65 78 61  |The simplest exa|
00011f40  6d 70 6c 65 3a 0a 0a 20  20 20 7a 69 70 20 73 74  |mple:..   zip st|
00011f50  75 66 66 20 2a 0a 0a 20  20 20 63 72 65 61 74 65  |uff *..   create|
00011f60  73 20 74 68 65 20 61 72  63 68 69 76 65 20 73 74  |s the archive st|
00011f70  75 66 66 2e 7a 69 70 20  28 61 73 73 75 6d 69 6e  |uff.zip (assumin|
00011f80  67 20 69 74 20 64 6f 65  73 20 6e 6f 74 20 65 78  |g it does not ex|
00011f90  69 73 74 29 20 61 6e 64  20 70 75 74 73 0a 20 20  |ist) and puts.  |
00011fa0  20 61 6c 6c 20 74 68 65  20 66 69 6c 65 73 20 69  | all the files i|
00011fb0  6e 20 74 68 65 20 63 75  72 72 65 6e 74 20 64 69  |n the current di|
00011fc0  72 65 63 74 6f 72 79 20  69 6e 20 69 74 2c 20 69  |rectory in it, i|
00011fd0  6e 20 63 6f 6d 70 72 65  73 73 65 64 20 66 6f 72  |n compressed for|
00011fe0  6d 20 28 74 68 65 0a 20  20 20 2e 7a 69 70 20 73  |m (the.   .zip s|
00011ff0  75 66 66 69 78 20 69 73  20 61 64 64 65 64 20 61  |uffix is added a|
00012000  75 74 6f 6d 61 74 69 63  61 6c 6c 79 2c 20 75 6e  |utomatically, un|
00012010  6c 65 73 73 20 74 68 65  20 61 72 63 68 69 76 65  |less the archive|
00012020  20 6e 61 6d 65 20 63 6f  6e 74 61 69 6e 73 20 61  | name contains a|
00012030  0a 20 20 20 64 6f 74 20  61 6c 72 65 61 64 79 3b  |.   dot already;|
00012040  20 74 68 69 73 20 61 6c  6c 6f 77 73 20 74 68 65  | this allows the|
00012050  20 65 78 70 6c 69 63 69  74 20 73 70 65 63 69 66  | explicit specif|
00012060  69 63 61 74 69 6f 6e 20  6f 66 20 6f 74 68 65 72  |ication of other|
00012070  0a 20 20 20 73 75 66 66  69 78 65 73 29 2e 0a 0a  |.   suffixes)...|
00012080  20 20 20 42 65 63 61 75  73 65 20 6f 66 20 74 68  |   Because of th|
00012090  65 20 77 61 79 20 74 68  65 20 73 68 65 6c 6c 20  |e way the shell |
000120a0  6f 6e 20 55 6e 69 78 20  64 6f 65 73 20 66 69 6c  |on Unix does fil|
000120b0  65 6e 61 6d 65 20 73 75  62 73 74 69 74 75 74 69  |ename substituti|
000120c0  6f 6e 2c 20 66 69 6c 65  73 0a 20 20 20 73 74 61  |on, files.   sta|
000120d0  72 74 69 6e 67 20 77 69  74 68 20 22 2e 22 20 61  |rting with "." a|
000120e0  72 65 20 6e 6f 74 20 69  6e 63 6c 75 64 65 64 3b  |re not included;|
000120f0  20 74 6f 20 69 6e 63 6c  75 64 65 20 74 68 65 73  | to include thes|
00012100  65 20 61 73 20 77 65 6c  6c 3a 0a 0a 20 20 20 7a  |e as well:..   z|
00012110  69 70 20 73 74 75 66 66  20 2e 2a 20 2a 0a 0a 20  |ip stuff .* *.. |
00012120  20 20 45 76 65 6e 20 74  68 69 73 20 77 69 6c 6c  |  Even this will|
00012130  20 6e 6f 74 20 69 6e 63  6c 75 64 65 20 61 6e 79  | not include any|
00012140  20 73 75 62 64 69 72 65  63 74 6f 72 69 65 73 20  | subdirectories |
00012150  66 72 6f 6d 20 74 68 65  20 63 75 72 72 65 6e 74  |from the current|
00012160  0a 20 20 20 64 69 72 65  63 74 6f 72 79 2e 0a 0a  |.   directory...|
00012170  20 20 20 54 6f 20 7a 69  70 20 75 70 20 61 6e 20  |   To zip up an |
00012180  65 6e 74 69 72 65 20 64  69 72 65 63 74 6f 72 79  |entire directory|
00012190  2c 20 74 68 65 20 63 6f  6d 6d 61 6e 64 3a 0a 0a  |, the command:..|
000121a0  20 20 20 7a 69 70 20 2d  72 20 66 6f 6f 20 66 6f  |   zip -r foo fo|
000121b0  6f 0a 0a 20 20 20 63 72  65 61 74 65 73 20 74 68  |o..   creates th|
000121c0  65 20 61 72 63 68 69 76  65 20 66 6f 6f 2e 7a 69  |e archive foo.zi|
000121d0  70 2c 20 63 6f 6e 74 61  69 6e 69 6e 67 20 61 6c  |p, containing al|
000121e0  6c 20 74 68 65 20 66 69  6c 65 73 20 61 6e 64 20  |l the files and |
000121f0  64 69 72 65 63 74 6f 72  69 65 73 0a 20 20 20 69  |directories.   i|
00012200  6e 20 74 68 65 20 64 69  72 65 63 74 6f 72 79 20  |n the directory |
00012210  66 6f 6f 20 74 68 61 74  20 69 73 20 63 6f 6e 74  |foo that is cont|
00012220  61 69 6e 65 64 20 77 69  74 68 69 6e 20 74 68 65  |ained within the|
00012230  20 63 75 72 72 65 6e 74  20 64 69 72 65 63 74 6f  | current directo|
00012240  72 79 2e 0a 0a 20 20 20  59 6f 75 20 6d 61 79 20  |ry...   You may |
00012250  77 61 6e 74 20 74 6f 20  6d 61 6b 65 20 61 20 7a  |want to make a z|
00012260  69 70 20 61 72 63 68 69  76 65 20 74 68 61 74 20  |ip archive that |
00012270  63 6f 6e 74 61 69 6e 73  20 74 68 65 20 66 69 6c  |contains the fil|
00012280  65 73 20 69 6e 20 66 6f  6f 2c 0a 20 20 20 77 69  |es in foo,.   wi|
00012290  74 68 6f 75 74 20 72 65  63 6f 72 64 69 6e 67 20  |thout recording |
000122a0  74 68 65 20 64 69 72 65  63 74 6f 72 79 20 6e 61  |the directory na|
000122b0  6d 65 2c 20 66 6f 6f 2e  20 59 6f 75 20 63 61 6e  |me, foo. You can|
000122c0  20 75 73 65 20 74 68 65  20 2d 6a 20 6f 70 74 69  | use the -j opti|
000122d0  6f 6e 0a 20 20 20 74 6f  20 6c 65 61 76 65 20 6f  |on.   to leave o|
000122e0  66 66 20 74 68 65 20 70  61 74 68 73 2c 20 61 73  |ff the paths, as|
000122f0  20 69 6e 3a 0a 0a 20 20  20 7a 69 70 20 2d 6a 20  | in:..   zip -j |
00012300  66 6f 6f 20 66 6f 6f 2f  2a 0a 0a 20 20 20 49 66  |foo foo/*..   If|
00012310  20 79 6f 75 20 61 72 65  20 73 68 6f 72 74 20 6f  | you are short o|
00012320  6e 20 64 69 73 6b 20 73  70 61 63 65 2c 20 79 6f  |n disk space, yo|
00012330  75 20 6d 69 67 68 74 20  6e 6f 74 20 68 61 76 65  |u might not have|
00012340  20 65 6e 6f 75 67 68 20  72 6f 6f 6d 20 74 6f 20  | enough room to |
00012350  68 6f 6c 64 0a 20 20 20  62 6f 74 68 20 74 68 65  |hold.   both the|
00012360  20 6f 72 69 67 69 6e 61  6c 20 64 69 72 65 63 74  | original direct|
00012370  6f 72 79 20 61 6e 64 20  74 68 65 20 63 6f 72 72  |ory and the corr|
00012380  65 73 70 6f 6e 64 69 6e  67 20 63 6f 6d 70 72 65  |esponding compre|
00012390  73 73 65 64 20 7a 69 70  0a 20 20 20 61 72 63 68  |ssed zip.   arch|
000123a0  69 76 65 2e 20 49 6e 20  74 68 69 73 20 63 61 73  |ive. In this cas|
000123b0  65 2c 20 79 6f 75 20 63  61 6e 20 63 72 65 61 74  |e, you can creat|
000123c0  65 20 74 68 65 20 61 72  63 68 69 76 65 20 69 6e  |e the archive in|
000123d0  20 73 74 65 70 73 20 75  73 69 6e 67 20 74 68 65  | steps using the|
000123e0  0a 20 20 20 2d 6d 20 6f  70 74 69 6f 6e 2e 20 49  |.   -m option. I|
000123f0  66 20 66 6f 6f 20 63 6f  6e 74 61 69 6e 73 20 74  |f foo contains t|
00012400  68 65 20 73 75 62 64 69  72 65 63 74 6f 72 69 65  |he subdirectorie|
00012410  73 20 74 6f 6d 2c 20 64  69 63 6b 2c 20 61 6e 64  |s tom, dick, and|
00012420  20 68 61 72 72 79 2c 0a  20 20 20 79 6f 75 20 63  | harry,.   you c|
00012430  61 6e 3a 0a 0a 20 20 20  7a 69 70 20 2d 72 6d 20  |an:..   zip -rm |
00012440  66 6f 6f 20 66 6f 6f 2f  74 6f 6d 0a 20 20 20 20  |foo foo/tom.    |
00012450  20 20 20 20 20 20 7a 69  70 20 2d 72 6d 20 66 6f  |      zip -rm fo|
00012460  6f 20 66 6f 6f 2f 64 69  63 6b 0a 20 20 20 20 20  |o foo/dick.     |
00012470  20 20 20 20 20 7a 69 70  20 2d 72 6d 20 66 6f 6f  |     zip -rm foo|
00012480  20 66 6f 6f 2f 68 61 72  72 79 0a 0a 20 20 20 77  | foo/harry..   w|
00012490  68 65 72 65 20 74 68 65  20 66 69 72 73 74 20 63  |here the first c|
000124a0  6f 6d 6d 61 6e 64 20 63  72 65 61 74 65 73 20 66  |ommand creates f|
000124b0  6f 6f 2e 7a 69 70 2c 20  61 6e 64 20 74 68 65 20  |oo.zip, and the |
000124c0  6e 65 78 74 20 74 77 6f  20 61 64 64 20 74 6f 20  |next two add to |
000124d0  69 74 2e 0a 20 20 20 41  74 20 74 68 65 20 63 6f  |it..   At the co|
000124e0  6d 70 6c 65 74 69 6f 6e  20 6f 66 20 65 61 63 68  |mpletion of each|
000124f0  20 7a 69 70 20 63 6f 6d  6d 61 6e 64 2c 20 74 68  | zip command, th|
00012500  65 20 6c 61 73 74 20 63  72 65 61 74 65 64 20 61  |e last created a|
00012510  72 63 68 69 76 65 20 69  73 0a 20 20 20 64 65 6c  |rchive is.   del|
00012520  65 74 65 64 2c 20 6d 61  6b 69 6e 67 20 72 6f 6f  |eted, making roo|
00012530  6d 20 66 6f 72 20 74 68  65 20 6e 65 78 74 20 7a  |m for the next z|
00012540  69 70 20 63 6f 6d 6d 61  6e 64 20 74 6f 20 66 75  |ip command to fu|
00012550  6e 63 74 69 6f 6e 2e 0a  0a 20 20 20 55 73 65 20  |nction...   Use |
00012560  2d 73 20 74 6f 20 73 65  74 20 74 68 65 20 73 70  |-s to set the sp|
00012570  6c 69 74 20 73 69 7a 65  20 61 6e 64 20 63 72 65  |lit size and cre|
00012580  61 74 65 20 61 20 73 70  6c 69 74 20 61 72 63 68  |ate a split arch|
00012590  69 76 65 2e 20 54 68 65  20 73 69 7a 65 20 69 73  |ive. The size is|
000125a0  0a 20 20 20 67 69 76 65  6e 20 61 73 20 61 20 6e  |.   given as a n|
000125b0  75 6d 62 65 72 20 66 6f  6c 6c 6f 77 65 64 20 6f  |umber followed o|
000125c0  70 74 69 6f 6e 61 6c 6c  79 20 62 79 20 6f 6e 65  |ptionally by one|
000125d0  20 6f 66 20 6b 20 28 6b  42 29 2c 20 6d 20 28 4d  | of k (kB), m (M|
000125e0  42 29 2c 20 67 0a 20 20  20 28 47 42 29 2c 20 6f  |B), g.   (GB), o|
000125f0  72 20 74 20 28 54 42 29  2e 20 54 68 65 20 63 6f  |r t (TB). The co|
00012600  6d 6d 61 6e 64 0a 0a 20  20 20 7a 69 70 20 2d 73  |mmand..   zip -s|
00012610  20 32 67 20 2d 72 20 73  70 6c 69 74 2e 7a 69 70  | 2g -r split.zip|
00012620  20 66 6f 6f 0a 0a 20 20  20 63 72 65 61 74 65 73  | foo..   creates|
00012630  20 61 20 73 70 6c 69 74  20 61 72 63 68 69 76 65  | a split archive|
00012640  20 6f 66 20 74 68 65 20  64 69 72 65 63 74 6f 72  | of the director|
00012650  79 20 66 6f 6f 20 77 69  74 68 20 73 70 6c 69 74  |y foo with split|
00012660  73 20 6e 6f 20 62 69 67  67 65 72 0a 20 20 20 74  |s no bigger.   t|
00012670  68 61 6e 20 32 20 47 42  20 65 61 63 68 2e 20 49  |han 2 GB each. I|
00012680  66 20 66 6f 6f 20 63 6f  6e 74 61 69 6e 65 64 20  |f foo contained |
00012690  35 20 47 42 20 6f 66 20  63 6f 6e 74 65 6e 74 73  |5 GB of contents|
000126a0  20 61 6e 64 20 74 68 65  20 63 6f 6e 74 65 6e 74  | and the content|
000126b0  73 0a 20 20 20 77 65 72  65 20 73 74 6f 72 65 64  |s.   were stored|
000126c0  20 69 6e 20 74 68 65 20  73 70 6c 69 74 20 61 72  | in the split ar|
000126d0  63 68 69 76 65 20 77 69  74 68 6f 75 74 20 63 6f  |chive without co|
000126e0  6d 70 72 65 73 73 69 6f  6e 20 28 74 6f 20 6d 61  |mpression (to ma|
000126f0  6b 65 20 74 68 69 73 0a  20 20 20 65 78 61 6d 70  |ke this.   examp|
00012700  6c 65 20 73 69 6d 70 6c  65 29 2c 20 74 68 69 73  |le simple), this|
00012710  20 77 6f 75 6c 64 20 63  72 65 61 74 65 20 74 68  | would create th|
00012720  72 65 65 20 73 70 6c 69  74 73 2c 20 73 70 6c 69  |ree splits, spli|
00012730  74 2e 7a 30 31 20 61 74  20 32 20 47 42 2c 0a 20  |t.z01 at 2 GB,. |
00012740  20 20 73 70 6c 69 74 2e  7a 30 32 20 61 74 20 32  |  split.z02 at 2|
00012750  20 47 42 2c 20 61 6e 64  20 73 70 6c 69 74 2e 7a  | GB, and split.z|
00012760  69 70 20 61 74 20 61 20  6c 69 74 74 6c 65 20 6f  |ip at a little o|
00012770  76 65 72 20 31 20 47 42  2e 0a 0a 20 20 20 54 68  |ver 1 GB...   Th|
00012780  65 20 2d 73 70 20 6f 70  74 69 6f 6e 20 63 61 6e  |e -sp option can|
00012790  20 62 65 20 75 73 65 64  20 74 6f 20 70 61 75 73  | be used to paus|
000127a0  65 20 7a 69 70 20 62 65  74 77 65 65 6e 20 73 70  |e zip between sp|
000127b0  6c 69 74 73 20 74 6f 20  61 6c 6c 6f 77 0a 20 20  |lits to allow.  |
000127c0  20 63 68 61 6e 67 69 6e  67 20 72 65 6d 6f 76 61  | changing remova|
000127d0  62 6c 65 20 6d 65 64 69  61 2c 20 66 6f 72 20 65  |ble media, for e|
000127e0  78 61 6d 70 6c 65 2c 20  62 75 74 20 72 65 61 64  |xample, but read|
000127f0  20 74 68 65 20 64 65 73  63 72 69 70 74 69 6f 6e  | the description|
00012800  73 20 61 6e 64 0a 20 20  20 77 61 72 6e 69 6e 67  |s and.   warning|
00012810  73 20 66 6f 72 20 62 6f  74 68 20 2d 73 20 61 6e  |s for both -s an|
00012820  64 20 2d 73 70 20 62 65  6c 6f 77 2e 0a 0a 20 20  |d -sp below...  |
00012830  20 54 68 6f 75 67 68 20  7a 69 70 20 64 6f 65 73  | Though zip does|
00012840  20 6e 6f 74 20 75 70 64  61 74 65 20 73 70 6c 69  | not update spli|
00012850  74 20 61 72 63 68 69 76  65 73 2c 20 7a 69 70 20  |t archives, zip |
00012860  70 72 6f 76 69 64 65 73  20 74 68 65 20 6e 65 77  |provides the new|
00012870  20 6f 70 74 69 6f 6e 0a  20 20 20 2d 4f 20 28 2d  | option.   -O (-|
00012880  2d 6f 75 74 70 75 74 2d  66 69 6c 65 29 20 74 6f  |-output-file) to|
00012890  20 61 6c 6c 6f 77 20 73  70 6c 69 74 20 61 72 63  | allow split arc|
000128a0  68 69 76 65 73 20 74 6f  20 62 65 20 75 70 64 61  |hives to be upda|
000128b0  74 65 64 20 61 6e 64 20  73 61 76 65 64 20 69 6e  |ted and saved in|
000128c0  0a 20 20 20 61 20 6e 65  77 20 61 72 63 68 69 76  |.   a new archiv|
000128d0  65 2e 20 46 6f 72 20 65  78 61 6d 70 6c 65 2c 0a  |e. For example,.|
000128e0  0a 20 20 20 7a 69 70 20  69 6e 61 72 63 68 69 76  |.   zip inarchiv|
000128f0  65 2e 7a 69 70 20 66 6f  6f 2e 63 20 62 61 72 2e  |e.zip foo.c bar.|
00012900  63 20 2d 2d 6f 75 74 20  6f 75 74 61 72 63 68 69  |c --out outarchi|
00012910  76 65 2e 7a 69 70 0a 0a  20 20 20 72 65 61 64 73  |ve.zip..   reads|
00012920  20 61 72 63 68 69 76 65  20 69 6e 61 72 63 68 69  | archive inarchi|
00012930  76 65 2e 7a 69 70 2c 20  65 76 65 6e 20 69 66 20  |ve.zip, even if |
00012940  73 70 6c 69 74 2c 20 61  64 64 73 20 74 68 65 20  |split, adds the |
00012950  66 69 6c 65 73 20 66 6f  6f 2e 63 20 61 6e 64 0a  |files foo.c and.|
00012960  20 20 20 62 61 72 2e 63  2c 20 61 6e 64 20 77 72  |   bar.c, and wr|
00012970  69 74 65 73 20 74 68 65  20 72 65 73 75 6c 74 69  |ites the resulti|
00012980  6e 67 20 61 72 63 68 69  76 65 20 74 6f 20 6f 75  |ng archive to ou|
00012990  74 61 72 63 68 69 76 65  2e 7a 69 70 2e 20 49 66  |tarchive.zip. If|
000129a0  0a 20 20 20 69 6e 61 72  63 68 69 76 65 2e 7a 69  |.   inarchive.zi|
000129b0  70 20 69 73 20 73 70 6c  69 74 20 74 68 65 6e 20  |p is split then |
000129c0  6f 75 74 61 72 63 68 69  76 65 2e 7a 69 70 20 64  |outarchive.zip d|
000129d0  65 66 61 75 6c 74 73 20  74 6f 20 74 68 65 20 73  |efaults to the s|
000129e0  61 6d 65 20 73 70 6c 69  74 0a 20 20 20 73 69 7a  |ame split.   siz|
000129f0  65 2e 20 42 65 20 61 77  61 72 65 20 74 68 61 74  |e. Be aware that|
00012a00  20 6f 75 74 61 72 63 68  69 76 65 2e 7a 69 70 20  | outarchive.zip |
00012a10  61 6e 64 20 61 6e 79 20  73 70 6c 69 74 20 66 69  |and any split fi|
00012a20  6c 65 73 20 74 68 61 74  20 61 72 65 0a 20 20 20  |les that are.   |
00012a30  63 72 65 61 74 65 64 20  77 69 74 68 20 69 74 20  |created with it |
00012a40  61 72 65 20 61 6c 77 61  79 73 20 6f 76 65 72 77  |are always overw|
00012a50  72 69 74 74 65 6e 20 77  69 74 68 6f 75 74 20 77  |ritten without w|
00012a60  61 72 6e 69 6e 67 2e 20  54 68 69 73 20 6d 61 79  |arning. This may|
00012a70  20 62 65 0a 20 20 20 63  68 61 6e 67 65 64 20 69  | be.   changed i|
00012a80  6e 20 74 68 65 20 66 75  74 75 72 65 2e 0a 0a 50  |n the future...P|
00012a90  61 74 74 65 72 6e 20 4d  61 74 63 68 69 6e 67 0a  |attern Matching.|
00012aa0  0a 20 20 20 54 68 69 73  20 73 65 63 74 69 6f 6e  |.   This section|
00012ab0  20 61 70 70 6c 69 65 73  20 6f 6e 6c 79 20 74 6f  | applies only to|
00012ac0  20 55 6e 69 78 2e 20 57  61 74 63 68 20 74 68 69  | Unix. Watch thi|
00012ad0  73 20 73 70 61 63 65 20  66 6f 72 20 64 65 74 61  |s space for deta|
00012ae0  69 6c 73 20 6f 6e 0a 20  20 20 4d 53 44 4f 53 20  |ils on.   MSDOS |
00012af0  61 6e 64 20 56 4d 53 20  6f 70 65 72 61 74 69 6f  |and VMS operatio|
00012b00  6e 2e 20 48 6f 77 65 76  65 72 2c 20 74 68 65 20  |n. However, the |
00012b10  73 70 65 63 69 61 6c 20  77 69 6c 64 63 61 72 64  |special wildcard|
00012b20  20 63 68 61 72 61 63 74  65 72 73 20 2a 0a 20 20  | characters *.  |
00012b30  20 61 6e 64 20 5b 5d 20  62 65 6c 6f 77 20 61 70  | and [] below ap|
00012b40  70 6c 79 20 74 6f 20 61  74 20 6c 65 61 73 74 20  |ply to at least |
00012b50  4d 53 44 4f 53 20 61 6c  73 6f 2e 0a 0a 20 20 20  |MSDOS also...   |
00012b60  54 68 65 20 55 6e 69 78  20 73 68 65 6c 6c 73 20  |The Unix shells |
00012b70  28 73 68 2c 20 63 73 68  2c 20 62 61 73 68 2c 20  |(sh, csh, bash, |
00012b80  61 6e 64 20 6f 74 68 65  72 73 29 20 6e 6f 72 6d  |and others) norm|
00012b90  61 6c 6c 79 20 64 6f 20  66 69 6c 65 6e 61 6d 65  |ally do filename|
00012ba0  0a 20 20 20 73 75 62 73  74 69 74 75 74 69 6f 6e  |.   substitution|
00012bb0  20 28 61 6c 73 6f 20 63  61 6c 6c 65 64 20 22 67  | (also called "g|
00012bc0  6c 6f 62 62 69 6e 67 22  29 20 6f 6e 20 63 6f 6d  |lobbing") on com|
00012bd0  6d 61 6e 64 20 61 72 67  75 6d 65 6e 74 73 2e 20  |mand arguments. |
00012be0  47 65 6e 65 72 61 6c 6c  79 0a 20 20 20 74 68 65  |Generally.   the|
00012bf0  20 73 70 65 63 69 61 6c  20 63 68 61 72 61 63 74  | special charact|
00012c00  65 72 73 20 61 72 65 3a  0a 0a 20 20 20 3f 0a 20  |ers are:..   ?. |
00012c10  20 20 20 20 20 20 20 20  20 6d 61 74 63 68 20 61  |         match a|
00012c20  6e 79 20 73 69 6e 67 6c  65 20 63 68 61 72 61 63  |ny single charac|
00012c30  74 65 72 0a 0a 20 20 20  2a 0a 20 20 20 20 20 20  |ter..   *.      |
00012c40  20 20 20 20 6d 61 74 63  68 20 61 6e 79 20 6e 75  |    match any nu|
00012c50  6d 62 65 72 20 6f 66 20  63 68 61 72 61 63 74 65  |mber of characte|
00012c60  72 73 20 28 69 6e 63 6c  75 64 69 6e 67 20 6e 6f  |rs (including no|
00012c70  6e 65 29 0a 0a 20 20 20  5b 5d 0a 20 20 20 20 20  |ne)..   [].     |
00012c80  20 20 20 20 20 6d 61 74  63 68 20 61 6e 79 20 63  |     match any c|
00012c90  68 61 72 61 63 74 65 72  20 69 6e 20 74 68 65 20  |haracter in the |
00012ca0  72 61 6e 67 65 20 69 6e  64 69 63 61 74 65 64 20  |range indicated |
00012cb0  77 69 74 68 69 6e 20 74  68 65 20 62 72 61 63 6b  |within the brack|
00012cc0  65 74 73 0a 20 20 20 20  20 20 20 20 20 20 28 65  |ets.          (e|
00012cd0  78 61 6d 70 6c 65 3a 20  5b 61 2d 66 5d 2c 20 5b  |xample: [a-f], [|
00012ce0  30 2d 39 5d 29 2e 20 54  68 69 73 20 66 6f 72 6d  |0-9]). This form|
00012cf0  20 6f 66 20 77 69 6c 64  63 61 72 64 20 6d 61 74  | of wildcard mat|
00012d00  63 68 69 6e 67 20 61 6c  6c 6f 77 73 0a 20 20 20  |ching allows.   |
00012d10  20 20 20 20 20 20 20 61  20 75 73 65 72 20 74 6f  |       a user to|
00012d20  20 73 70 65 63 69 66 79  20 61 20 6c 69 73 74 20  | specify a list |
00012d30  6f 66 20 63 68 61 72 61  63 74 65 72 73 20 62 65  |of characters be|
00012d40  74 77 65 65 6e 20 73 71  75 61 72 65 20 62 72 61  |tween square bra|
00012d50  63 6b 65 74 73 0a 20 20  20 20 20 20 20 20 20 20  |ckets.          |
00012d60  61 6e 64 20 69 66 20 61  6e 79 20 6f 66 20 74 68  |and if any of th|
00012d70  65 20 63 68 61 72 61 63  74 65 72 73 20 6d 61 74  |e characters mat|
00012d80  63 68 20 74 68 65 20 65  78 70 72 65 73 73 69 6f  |ch the expressio|
00012d90  6e 20 6d 61 74 63 68 65  73 2e 20 46 6f 72 0a 20  |n matches. For. |
00012da0  20 20 20 20 20 20 20 20  20 65 78 61 6d 70 6c 65  |         example|
00012db0  3a 0a 0a 20 20 20 7a 69  70 20 61 72 63 68 69 76  |:..   zip archiv|
00012dc0  65 20 22 2a 2e 5b 68 63  5d 22 0a 0a 20 20 20 77  |e "*.[hc]"..   w|
00012dd0  6f 75 6c 64 20 61 72 63  68 69 76 65 20 61 6c 6c  |ould archive all|
00012de0  20 66 69 6c 65 73 20 69  6e 20 74 68 65 20 63 75  | files in the cu|
00012df0  72 72 65 6e 74 20 64 69  72 65 63 74 6f 72 79 20  |rrent directory |
00012e00  74 68 61 74 20 65 6e 64  20 69 6e 0a 20 20 20 20  |that end in.    |
00012e10  20 20 20 20 20 20 2e 68  20 6f 72 20 2e 63 2e 0a  |      .h or .c..|
00012e20  0a 20 20 20 20 20 20 20  20 20 20 52 61 6e 67 65  |.          Range|
00012e30  73 20 6f 66 20 63 68 61  72 61 63 74 65 72 73 20  |s of characters |
00012e40  61 72 65 20 73 75 70 70  6f 72 74 65 64 3a 0a 0a  |are supported:..|
00012e50  20 20 20 7a 69 70 20 61  72 63 68 69 76 65 20 22  |   zip archive "|
00012e60  5b 61 2d 66 5d 2a 22 0a  0a 20 20 20 77 6f 75 6c  |[a-f]*"..   woul|
00012e70  64 20 61 64 64 20 74 6f  20 74 68 65 20 61 72 63  |d add to the arc|
00012e80  68 69 76 65 20 61 6c 6c  20 66 69 6c 65 73 20 73  |hive all files s|
00012e90  74 61 72 74 69 6e 67 20  77 69 74 68 20 22 61 22  |tarting with "a"|
00012ea0  20 74 68 72 6f 75 67 68  20 22 66 22 2e 0a 20 20  | through "f"..  |
00012eb0  20 20 20 20 20 20 20 20  4e 65 67 61 74 69 6f 6e  |        Negation|
00012ec0  20 69 73 20 61 6c 73 6f  20 73 75 70 70 6f 72 74  | is also support|
00012ed0  65 64 2c 20 77 68 65 72  65 20 61 6e 79 20 63 68  |ed, where any ch|
00012ee0  61 72 61 63 74 65 72 20  69 6e 20 74 68 61 74 0a  |aracter in that.|
00012ef0  20 20 20 20 20 20 20 20  20 20 70 6f 73 69 74 69  |          positi|
00012f00  6f 6e 20 6e 6f 74 20 69  6e 20 74 68 65 20 6c 69  |on not in the li|
00012f10  73 74 20 6d 61 74 63 68  65 73 2e 20 4e 65 67 61  |st matches. Nega|
00012f20  74 69 6f 6e 20 69 73 20  73 75 70 70 6f 72 74 65  |tion is supporte|
00012f30  64 20 62 79 0a 20 20 20  20 20 20 20 20 20 20 61  |d by.          a|
00012f40  64 64 69 6e 67 20 21 20  6f 72 20 5e 20 74 6f 20  |dding ! or ^ to |
00012f50  74 68 65 20 62 65 67 69  6e 6e 69 6e 67 20 6f 66  |the beginning of|
00012f60  20 74 68 65 20 6c 69 73  74 3a 0a 0a 20 20 20 7a  | the list:..   z|
00012f70  69 70 20 61 72 63 68 69  76 65 20 22 2a 2e 5b 21  |ip archive "*.[!|
00012f80  6f 5d 22 0a 0a 20 20 20  6d 61 74 63 68 65 73 20  |o]"..   matches |
00012f90  66 69 6c 65 73 20 74 68  61 74 20 64 6f 6e 27 74  |files that don't|
00012fa0  20 65 6e 64 20 69 6e 20  22 2e 6f 22 2e 0a 20 20  | end in ".o"..  |
00012fb0  20 20 20 20 20 20 20 20  4f 6e 20 57 49 4e 33 32  |        On WIN32|
00012fc0  2c 20 5b 5d 20 6d 61 74  63 68 69 6e 67 20 6e 65  |, [] matching ne|
00012fd0  65 64 73 20 74 6f 20 62  65 20 74 75 72 6e 65 64  |eds to be turned|
00012fe0  20 6f 6e 20 77 69 74 68  20 74 68 65 20 2d 52 45  | on with the -RE|
00012ff0  20 6f 70 74 69 6f 6e 0a  20 20 20 20 20 20 20 20  | option.        |
00013000  20 20 74 6f 20 61 76 6f  69 64 20 74 68 65 20 63  |  to avoid the c|
00013010  6f 6e 66 75 73 69 6f 6e  20 74 68 61 74 20 6e 61  |onfusion that na|
00013020  6d 65 73 20 77 69 74 68  20 5b 20 6f 72 20 5d 20  |mes with [ or ] |
00013030  68 61 76 65 20 63 61 75  73 65 64 2e 0a 0a 20 20  |have caused...  |
00013040  20 57 68 65 6e 20 74 68  65 73 65 20 63 68 61 72  | When these char|
00013050  61 63 74 65 72 73 20 61  72 65 20 65 6e 63 6f 75  |acters are encou|
00013060  6e 74 65 72 65 64 20 28  77 69 74 68 6f 75 74 20  |ntered (without |
00013070  62 65 69 6e 67 20 65 73  63 61 70 65 64 20 77 69  |being escaped wi|
00013080  74 68 20 61 0a 20 20 20  62 61 63 6b 73 6c 61 73  |th a.   backslas|
00013090  68 20 6f 72 20 71 75 6f  74 65 73 29 2c 20 74 68  |h or quotes), th|
000130a0  65 20 73 68 65 6c 6c 20  77 69 6c 6c 20 6c 6f 6f  |e shell will loo|
000130b0  6b 20 66 6f 72 20 66 69  6c 65 73 20 72 65 6c 61  |k for files rela|
000130c0  74 69 76 65 20 74 6f 20  74 68 65 0a 20 20 20 63  |tive to the.   c|
000130d0  75 72 72 65 6e 74 20 70  61 74 68 20 74 68 61 74  |urrent path that|
000130e0  20 6d 61 74 63 68 20 74  68 65 20 70 61 74 74 65  | match the patte|
000130f0  72 6e 2c 20 61 6e 64 20  72 65 70 6c 61 63 65 20  |rn, and replace |
00013100  74 68 65 20 61 72 67 75  6d 65 6e 74 20 77 69 74  |the argument wit|
00013110  68 20 61 0a 20 20 20 6c  69 73 74 20 6f 66 20 74  |h a.   list of t|
00013120  68 65 20 6e 61 6d 65 73  20 74 68 61 74 20 6d 61  |he names that ma|
00013130  74 63 68 65 64 2e 0a 0a  20 20 20 54 68 65 20 7a  |tched...   The z|
00013140  69 70 20 70 72 6f 67 72  61 6d 20 63 61 6e 20 64  |ip program can d|
00013150  6f 20 74 68 65 20 73 61  6d 65 20 6d 61 74 63 68  |o the same match|
00013160  69 6e 67 20 6f 6e 20 6e  61 6d 65 73 20 74 68 61  |ing on names tha|
00013170  74 20 61 72 65 20 69 6e  20 74 68 65 20 7a 69 70  |t are in the zip|
00013180  0a 20 20 20 61 72 63 68  69 76 65 20 62 65 69 6e  |.   archive bein|
00013190  67 20 6d 6f 64 69 66 69  65 64 20 6f 72 2c 20 69  |g modified or, i|
000131a0  6e 20 74 68 65 20 63 61  73 65 20 6f 66 20 74 68  |n the case of th|
000131b0  65 20 2d 78 20 28 65 78  63 6c 75 64 65 29 20 6f  |e -x (exclude) o|
000131c0  72 20 2d 69 0a 20 20 20  28 69 6e 63 6c 75 64 65  |r -i.   (include|
000131d0  29 20 6f 70 74 69 6f 6e  73 2c 20 6f 6e 20 74 68  |) options, on th|
000131e0  65 20 6c 69 73 74 20 6f  66 20 66 69 6c 65 73 20  |e list of files |
000131f0  74 6f 20 62 65 20 6f 70  65 72 61 74 65 64 20 6f  |to be operated o|
00013200  6e 2c 20 62 79 20 75 73  69 6e 67 0a 20 20 20 62  |n, by using.   b|
00013210  61 63 6b 73 6c 61 73 68  65 73 20 6f 72 20 71 75  |ackslashes or qu|
00013220  6f 74 65 73 20 74 6f 20  74 65 6c 6c 20 74 68 65  |otes to tell the|
00013230  20 73 68 65 6c 6c 20 6e  6f 74 20 74 6f 20 64 6f  | shell not to do|
00013240  20 74 68 65 20 6e 61 6d  65 20 65 78 70 61 6e 73  | the name expans|
00013250  69 6f 6e 2e 0a 20 20 20  49 6e 20 67 65 6e 65 72  |ion..   In gener|
00013260  61 6c 2c 20 77 68 65 6e  20 7a 69 70 20 65 6e 63  |al, when zip enc|
00013270  6f 75 6e 74 65 72 73 20  61 20 6e 61 6d 65 20 69  |ounters a name i|
00013280  6e 20 74 68 65 20 6c 69  73 74 20 6f 66 20 66 69  |n the list of fi|
00013290  6c 65 73 20 74 6f 20 64  6f 2c 20 69 74 0a 20 20  |les to do, it.  |
000132a0  20 66 69 72 73 74 20 6c  6f 6f 6b 73 20 66 6f 72  | first looks for|
000132b0  20 74 68 65 20 6e 61 6d  65 20 69 6e 20 74 68 65  | the name in the|
000132c0  20 66 69 6c 65 20 73 79  73 74 65 6d 2e 20 49 66  | file system. If|
000132d0  20 69 74 20 66 69 6e 64  73 20 69 74 2c 20 69 74  | it finds it, it|
000132e0  20 74 68 65 6e 0a 20 20  20 61 64 64 73 20 69 74  | then.   adds it|
000132f0  20 74 6f 20 74 68 65 20  6c 69 73 74 20 6f 66 20  | to the list of |
00013300  66 69 6c 65 73 20 74 6f  20 64 6f 2e 20 49 66 20  |files to do. If |
00013310  69 74 20 64 6f 65 73 20  6e 6f 74 20 66 69 6e 64  |it does not find|
00013320  20 69 74 2c 20 69 74 20  6c 6f 6f 6b 73 0a 20 20  | it, it looks.  |
00013330  20 66 6f 72 20 74 68 65  20 6e 61 6d 65 20 69 6e  | for the name in|
00013340  20 74 68 65 20 7a 69 70  20 61 72 63 68 69 76 65  | the zip archive|
00013350  20 62 65 69 6e 67 20 6d  6f 64 69 66 69 65 64 20  | being modified |
00013360  28 69 66 20 69 74 20 65  78 69 73 74 73 29 2c 20  |(if it exists), |
00013370  75 73 69 6e 67 0a 20 20  20 74 68 65 20 70 61 74  |using.   the pat|
00013380  74 65 72 6e 20 6d 61 74  63 68 69 6e 67 20 63 68  |tern matching ch|
00013390  61 72 61 63 74 65 72 73  20 64 65 73 63 72 69 62  |aracters describ|
000133a0  65 64 20 61 62 6f 76 65  2c 20 69 66 20 70 72 65  |ed above, if pre|
000133b0  73 65 6e 74 2e 20 46 6f  72 20 65 61 63 68 0a 20  |sent. For each. |
000133c0  20 20 6d 61 74 63 68 2c  20 69 74 20 77 69 6c 6c  |  match, it will|
000133d0  20 61 64 64 20 74 68 61  74 20 6e 61 6d 65 20 74  | add that name t|
000133e0  6f 20 74 68 65 20 6c 69  73 74 20 6f 66 20 66 69  |o the list of fi|
000133f0  6c 65 73 20 74 6f 20 62  65 20 70 72 6f 63 65 73  |les to be proces|
00013400  73 65 64 2c 0a 20 20 20  75 6e 6c 65 73 73 20 74  |sed,.   unless t|
00013410  68 69 73 20 6e 61 6d 65  20 6d 61 74 63 68 65 73  |his name matches|
00013420  20 6f 6e 65 20 67 69 76  65 6e 20 77 69 74 68 20  | one given with |
00013430  74 68 65 20 2d 78 20 6f  70 74 69 6f 6e 2c 20 6f  |the -x option, o|
00013440  72 20 64 6f 65 73 20 6e  6f 74 0a 20 20 20 6d 61  |r does not.   ma|
00013450  74 63 68 20 61 6e 79 20  6e 61 6d 65 20 67 69 76  |tch any name giv|
00013460  65 6e 20 77 69 74 68 20  74 68 65 20 2d 69 20 6f  |en with the -i o|
00013470  70 74 69 6f 6e 2e 0a 0a  20 20 20 54 68 65 20 70  |ption...   The p|
00013480  61 74 74 65 72 6e 20 6d  61 74 63 68 69 6e 67 20  |attern matching |
00013490  69 6e 63 6c 75 64 65 73  20 74 68 65 20 70 61 74  |includes the pat|
000134a0  68 2c 20 61 6e 64 20 73  6f 20 70 61 74 74 65 72  |h, and so patter|
000134b0  6e 73 20 6c 69 6b 65 20  5c 2a 2e 6f 0a 20 20 20  |ns like \*.o.   |
000134c0  6d 61 74 63 68 20 6e 61  6d 65 73 20 74 68 61 74  |match names that|
000134d0  20 65 6e 64 20 69 6e 20  22 2e 6f 22 2c 20 6e 6f  | end in ".o", no|
000134e0  20 6d 61 74 74 65 72 20  77 68 61 74 20 74 68 65  | matter what the|
000134f0  20 70 61 74 68 20 70 72  65 66 69 78 20 69 73 2e  | path prefix is.|
00013500  20 4e 6f 74 65 0a 20 20  20 74 68 61 74 20 74 68  | Note.   that th|
00013510  65 20 62 61 63 6b 73 6c  61 73 68 20 6d 75 73 74  |e backslash must|
00013520  20 70 72 65 63 65 64 65  20 65 76 65 72 79 20 73  | precede every s|
00013530  70 65 63 69 61 6c 20 63  68 61 72 61 63 74 65 72  |pecial character|
00013540  20 28 69 2e 65 2e 20 3f  2a 5b 5d 29 2c 0a 20 20  | (i.e. ?*[]),.  |
00013550  20 6f 72 20 74 68 65 20  65 6e 74 69 72 65 20 61  | or the entire a|
00013560  72 67 75 6d 65 6e 74 20  6d 75 73 74 20 62 65 20  |rgument must be |
00013570  65 6e 63 6c 6f 73 65 64  20 69 6e 20 64 6f 75 62  |enclosed in doub|
00013580  6c 65 20 71 75 6f 74 65  73 20 28 22 22 29 2e 0a  |le quotes ("")..|
00013590  0a 20 20 20 49 6e 20 67  65 6e 65 72 61 6c 2c 20  |.   In general, |
000135a0  75 73 65 20 62 61 63 6b  73 6c 61 73 68 65 73 20  |use backslashes |
000135b0  6f 72 20 64 6f 75 62 6c  65 20 71 75 6f 74 65 73  |or double quotes|
000135c0  20 66 6f 72 20 70 61 74  68 73 20 74 68 61 74 20  | for paths that |
000135d0  68 61 76 65 0a 20 20 20  77 69 6c 64 63 61 72 64  |have.   wildcard|
000135e0  73 20 74 6f 20 6d 61 6b  65 20 7a 69 70 20 64 6f  |s to make zip do|
000135f0  20 74 68 65 20 70 61 74  74 65 72 6e 20 6d 61 74  | the pattern mat|
00013600  63 68 69 6e 67 20 66 6f  72 20 66 69 6c 65 20 70  |ching for file p|
00013610  61 74 68 73 2c 20 61 6e  64 0a 20 20 20 61 6c 77  |aths, and.   alw|
00013620  61 79 73 20 66 6f 72 20  70 61 74 68 73 20 61 6e  |ays for paths an|
00013630  64 20 73 74 72 69 6e 67  73 20 74 68 61 74 20 68  |d strings that h|
00013640  61 76 65 20 73 70 61 63  65 73 20 6f 72 20 77 69  |ave spaces or wi|
00013650  6c 64 63 61 72 64 73 20  66 6f 72 20 2d 69 2c 20  |ldcards for -i, |
00013660  2d 78 2c 0a 20 20 20 2d  52 2c 20 2d 64 2c 20 61  |-x,.   -R, -d, a|
00013670  6e 64 20 2d 55 20 61 6e  64 20 61 6e 79 77 68 65  |nd -U and anywhe|
00013680  72 65 20 7a 69 70 20 6e  65 65 64 73 20 74 6f 20  |re zip needs to |
00013690  70 72 6f 63 65 73 73 20  74 68 65 20 77 69 6c 64  |process the wild|
000136a0  63 61 72 64 73 2e 0a 0a  45 6e 76 69 72 6f 6e 6d  |cards...Environm|
000136b0  65 6e 74 0a 0a 20 20 20  54 68 65 20 66 6f 6c 6c  |ent..   The foll|
000136c0  6f 77 69 6e 67 20 65 6e  76 69 72 6f 6e 6d 65 6e  |owing environmen|
000136d0  74 20 76 61 72 69 61 62  6c 65 73 20 61 72 65 20  |t variables are |
000136e0  72 65 61 64 20 61 6e 64  20 75 73 65 64 20 62 79  |read and used by|
000136f0  20 7a 69 70 20 61 73 0a  20 20 20 64 65 73 63 72  | zip as.   descr|
00013700  69 62 65 64 2e 0a 0a 20  20 20 5a 49 50 4f 50 54  |ibed...   ZIPOPT|
00013710  0a 20 20 20 20 20 20 20  20 20 20 63 6f 6e 74 61  |.          conta|
00013720  69 6e 73 20 64 65 66 61  75 6c 74 20 6f 70 74 69  |ins default opti|
00013730  6f 6e 73 20 74 68 61 74  20 77 69 6c 6c 20 62 65  |ons that will be|
00013740  20 75 73 65 64 20 77 68  65 6e 20 72 75 6e 6e 69  | used when runni|
00013750  6e 67 20 7a 69 70 2e 0a  20 20 20 20 20 20 20 20  |ng zip..        |
00013760  20 20 54 68 65 20 63 6f  6e 74 65 6e 74 73 20 6f  |  The contents o|
00013770  66 20 74 68 69 73 20 65  6e 76 69 72 6f 6e 6d 65  |f this environme|
00013780  6e 74 20 76 61 72 69 61  62 6c 65 20 77 69 6c 6c  |nt variable will|
00013790  20 67 65 74 20 61 64 64  65 64 20 74 6f 20 74 68  | get added to th|
000137a0  65 0a 20 20 20 20 20 20  20 20 20 20 63 6f 6d 6d  |e.          comm|
000137b0  61 6e 64 20 6c 69 6e 65  20 6a 75 73 74 20 61 66  |and line just af|
000137c0  74 65 72 20 74 68 65 20  7a 69 70 20 63 6f 6d 6d  |ter the zip comm|
000137d0  61 6e 64 2e 0a 0a 20 20  20 5a 49 50 0a 20 20 20  |and...   ZIP.   |
000137e0  20 20 20 20 20 20 20 5b  4e 6f 74 20 6f 6e 20 52  |       [Not on R|
000137f0  49 53 43 20 4f 53 20 61  6e 64 20 56 4d 53 5d 20  |ISC OS and VMS] |
00013800  73 65 65 20 5a 49 50 4f  50 54 0a 0a 20 20 20 5a  |see ZIPOPT..   Z|
00013810  69 70 24 4f 70 74 69 6f  6e 73 0a 20 20 20 20 20  |ip$Options.     |
00013820  20 20 20 20 20 5b 52 49  53 43 20 4f 53 5d 20 73  |     [RISC OS] s|
00013830  65 65 20 5a 49 50 4f 50  54 0a 0a 20 20 20 5a 69  |ee ZIPOPT..   Zi|
00013840  70 24 45 78 74 73 0a 20  20 20 20 20 20 20 20 20  |p$Exts.         |
00013850  20 5b 52 49 53 43 20 4f  53 5d 20 63 6f 6e 74 61  | [RISC OS] conta|
00013860  69 6e 73 20 65 78 74 65  6e 73 69 6f 6e 73 20 73  |ins extensions s|
00013870  65 70 61 72 61 74 65 64  20 62 79 20 61 20 3a 20  |eparated by a : |
00013880  74 68 61 74 20 77 69 6c  6c 20 63 61 75 73 65 0a  |that will cause.|
00013890  20 20 20 20 20 20 20 20  20 20 6e 61 74 69 76 65  |          native|
000138a0  20 66 69 6c 65 6e 61 6d  65 73 20 77 69 74 68 20  | filenames with |
000138b0  6f 6e 65 20 6f 66 20 74  68 65 20 73 70 65 63 69  |one of the speci|
000138c0  66 69 65 64 20 65 78 74  65 6e 73 69 6f 6e 73 20  |fied extensions |
000138d0  74 6f 20 62 65 0a 20 20  20 20 20 20 20 20 20 20  |to be.          |
000138e0  61 64 64 65 64 20 74 6f  20 74 68 65 20 7a 69 70  |added to the zip|
000138f0  20 66 69 6c 65 20 77 69  74 68 20 62 61 73 65 6e  | file with basen|
00013900  61 6d 65 20 61 6e 64 20  65 78 74 65 6e 73 69 6f  |ame and extensio|
00013910  6e 20 73 77 61 70 70 65  64 2e 0a 0a 20 20 20 5a  |n swapped...   Z|
00013920  49 50 5f 4f 50 54 53 0a  20 20 20 20 20 20 20 20  |IP_OPTS.        |
00013930  20 20 5b 56 4d 53 5d 20  73 65 65 20 5a 49 50 4f  |  [VMS] see ZIPO|
00013940  50 54 0a 0a 53 65 65 20  41 6c 73 6f 0a 0a 20 20  |PT..See Also..  |
00013950  20 63 6f 6d 70 72 65 73  73 28 31 29 20 2c 20 73  | compress(1) , s|
00013960  68 61 72 28 31 4c 29 20  2c 20 74 61 72 28 31 29  |har(1L) , tar(1)|
00013970  20 2c 20 75 6e 7a 69 70  28 31 4c 29 20 2c 0a 20  | , unzip(1L) ,. |
00013980  20 20 67 7a 69 70 28 31  4c 29 0a 0a 44 69 61 67  |  gzip(1L)..Diag|
00013990  6e 6f 73 74 69 63 73 0a  0a 20 20 20 54 68 65 20  |nostics..   The |
000139a0  65 78 69 74 20 73 74 61  74 75 73 20 28 6f 72 20  |exit status (or |
000139b0  65 72 72 6f 72 20 6c 65  76 65 6c 29 20 61 70 70  |error level) app|
000139c0  72 6f 78 69 6d 61 74 65  73 20 74 68 65 20 65 78  |roximates the ex|
000139d0  69 74 20 63 6f 64 65 73  20 64 65 66 69 6e 65 64  |it codes defined|
000139e0  0a 20 20 20 62 79 20 50  4b 57 41 52 45 20 61 6e  |.   by PKWARE an|
000139f0  64 20 74 61 6b 65 73 20  6f 6e 20 74 68 65 20 66  |d takes on the f|
00013a00  6f 6c 6c 6f 77 69 6e 67  20 76 61 6c 75 65 73 2c  |ollowing values,|
00013a10  20 65 78 63 65 70 74 20  75 6e 64 65 72 20 56 4d  | except under VM|
00013a20  53 3a 0a 0a 20 20 20 30  0a 20 20 20 20 20 20 20  |S:..   0.       |
00013a30  20 20 20 6e 6f 72 6d 61  6c 3b 20 6e 6f 20 65 72  |   normal; no er|
00013a40  72 6f 72 73 20 6f 72 20  77 61 72 6e 69 6e 67 73  |rors or warnings|
00013a50  20 64 65 74 65 63 74 65  64 2e 0a 0a 20 20 20 32  | detected...   2|
00013a60  0a 20 20 20 20 20 20 20  20 20 20 75 6e 65 78 70  |.          unexp|
00013a70  65 63 74 65 64 20 65 6e  64 20 6f 66 20 7a 69 70  |ected end of zip|
00013a80  20 66 69 6c 65 2e 0a 0a  20 20 20 33 0a 20 20 20  | file...   3.   |
00013a90  20 20 20 20 20 20 20 61  20 67 65 6e 65 72 69 63  |       a generic|
00013aa0  20 65 72 72 6f 72 20 69  6e 20 74 68 65 20 7a 69  | error in the zi|
00013ab0  70 66 69 6c 65 20 66 6f  72 6d 61 74 20 77 61 73  |pfile format was|
00013ac0  20 64 65 74 65 63 74 65  64 2e 20 50 72 6f 63 65  | detected. Proce|
00013ad0  73 73 69 6e 67 0a 20 20  20 20 20 20 20 20 20 20  |ssing.          |
00013ae0  6d 61 79 20 68 61 76 65  20 63 6f 6d 70 6c 65 74  |may have complet|
00013af0  65 64 20 73 75 63 63 65  73 73 66 75 6c 6c 79 20  |ed successfully |
00013b00  61 6e 79 77 61 79 3b 20  73 6f 6d 65 20 62 72 6f  |anyway; some bro|
00013b10  6b 65 6e 20 7a 69 70 66  69 6c 65 73 0a 20 20 20  |ken zipfiles.   |
00013b20  20 20 20 20 20 20 20 63  72 65 61 74 65 64 20 62  |       created b|
00013b30  79 20 6f 74 68 65 72 20  61 72 63 68 69 76 65 72  |y other archiver|
00013b40  73 20 68 61 76 65 20 73  69 6d 70 6c 65 20 77 6f  |s have simple wo|
00013b50  72 6b 2d 61 72 6f 75 6e  64 73 2e 0a 0a 20 20 20  |rk-arounds...   |
00013b60  34 0a 20 20 20 20 20 20  20 20 20 20 7a 69 70 20  |4.          zip |
00013b70  77 61 73 20 75 6e 61 62  6c 65 20 74 6f 20 61 6c  |was unable to al|
00013b80  6c 6f 63 61 74 65 20 6d  65 6d 6f 72 79 20 66 6f  |locate memory fo|
00013b90  72 20 6f 6e 65 20 6f 72  20 6d 6f 72 65 20 62 75  |r one or more bu|
00013ba0  66 66 65 72 73 0a 20 20  20 20 20 20 20 20 20 20  |ffers.          |
00013bb0  64 75 72 69 6e 67 20 70  72 6f 67 72 61 6d 20 69  |during program i|
00013bc0  6e 69 74 69 61 6c 69 7a  61 74 69 6f 6e 2e 0a 0a  |nitialization...|
00013bd0  20 20 20 35 0a 20 20 20  20 20 20 20 20 20 20 61  |   5.          a|
00013be0  20 73 65 76 65 72 65 20  65 72 72 6f 72 20 69 6e  | severe error in|
00013bf0  20 74 68 65 20 7a 69 70  66 69 6c 65 20 66 6f 72  | the zipfile for|
00013c00  6d 61 74 20 77 61 73 20  64 65 74 65 63 74 65 64  |mat was detected|
00013c10  2e 20 50 72 6f 63 65 73  73 69 6e 67 0a 20 20 20  |. Processing.   |
00013c20  20 20 20 20 20 20 20 70  72 6f 62 61 62 6c 79 20  |       probably |
00013c30  66 61 69 6c 65 64 20 69  6d 6d 65 64 69 61 74 65  |failed immediate|
00013c40  6c 79 2e 0a 0a 20 20 20  36 0a 20 20 20 20 20 20  |ly...   6.      |
00013c50  20 20 20 20 65 6e 74 72  79 20 74 6f 6f 20 6c 61  |    entry too la|
00013c60  72 67 65 20 74 6f 20 62  65 20 70 72 6f 63 65 73  |rge to be proces|
00013c70  73 65 64 20 28 73 75 63  68 20 61 73 20 69 6e 70  |sed (such as inp|
00013c80  75 74 20 66 69 6c 65 73  20 6c 61 72 67 65 72 0a  |ut files larger.|
00013c90  20 20 20 20 20 20 20 20  20 20 74 68 61 6e 20 32  |          than 2|
00013ca0  20 47 42 20 77 68 65 6e  20 6e 6f 74 20 75 73 69  | GB when not usi|
00013cb0  6e 67 20 5a 69 70 36 34  20 6f 72 20 74 72 79 69  |ng Zip64 or tryi|
00013cc0  6e 67 20 74 6f 20 72 65  61 64 20 61 6e 20 65 78  |ng to read an ex|
00013cd0  69 73 74 69 6e 67 0a 20  20 20 20 20 20 20 20 20  |isting.         |
00013ce0  20 61 72 63 68 69 76 65  20 74 68 61 74 20 69 73  | archive that is|
00013cf0  20 74 6f 6f 20 6c 61 72  67 65 29 20 6f 72 20 65  | too large) or e|
00013d00  6e 74 72 79 20 74 6f 6f  20 6c 61 72 67 65 20 74  |ntry too large t|
00013d10  6f 20 62 65 20 73 70 6c  69 74 20 77 69 74 68 0a  |o be split with.|
00013d20  20 20 20 20 20 20 20 20  20 20 7a 69 70 73 70 6c  |          zipspl|
00013d30  69 74 0a 0a 20 20 20 37  0a 20 20 20 20 20 20 20  |it..   7.       |
00013d40  20 20 20 69 6e 76 61 6c  69 64 20 63 6f 6d 6d 65  |   invalid comme|
00013d50  6e 74 20 66 6f 72 6d 61  74 0a 0a 20 20 20 38 0a  |nt format..   8.|
00013d60  20 20 20 20 20 20 20 20  20 20 7a 69 70 20 2d 54  |          zip -T|
00013d70  20 66 61 69 6c 65 64 20  6f 72 20 6f 75 74 20 6f  | failed or out o|
00013d80  66 20 6d 65 6d 6f 72 79  0a 0a 20 20 20 39 0a 20  |f memory..   9. |
00013d90  20 20 20 20 20 20 20 20  20 74 68 65 20 75 73 65  |         the use|
00013da0  72 20 61 62 6f 72 74 65  64 20 7a 69 70 20 70 72  |r aborted zip pr|
00013db0  65 6d 61 74 75 72 65 6c  79 20 77 69 74 68 20 63  |ematurely with c|
00013dc0  6f 6e 74 72 6f 6c 2d 43  20 28 6f 72 20 73 69 6d  |ontrol-C (or sim|
00013dd0  69 6c 61 72 29 0a 0a 20  20 20 31 30 0a 20 20 20  |ilar)..   10.   |
00013de0  20 20 20 20 20 20 20 7a  69 70 20 65 6e 63 6f 75  |       zip encou|
00013df0  6e 74 65 72 65 64 20 61  6e 20 65 72 72 6f 72 20  |ntered an error |
00013e00  77 68 69 6c 65 20 75 73  69 6e 67 20 61 20 74 65  |while using a te|
00013e10  6d 70 20 66 69 6c 65 0a  0a 20 20 20 31 31 0a 20  |mp file..   11. |
00013e20  20 20 20 20 20 20 20 20  20 72 65 61 64 20 6f 72  |         read or|
00013e30  20 73 65 65 6b 20 65 72  72 6f 72 0a 0a 20 20 20  | seek error..   |
00013e40  31 32 0a 20 20 20 20 20  20 20 20 20 20 7a 69 70  |12.          zip|
00013e50  20 68 61 73 20 6e 6f 74  68 69 6e 67 20 74 6f 20  | has nothing to |
00013e60  64 6f 0a 0a 20 20 20 31  33 0a 20 20 20 20 20 20  |do..   13.      |
00013e70  20 20 20 20 6d 69 73 73  69 6e 67 20 6f 72 20 65  |    missing or e|
00013e80  6d 70 74 79 20 7a 69 70  20 66 69 6c 65 0a 0a 20  |mpty zip file.. |
00013e90  20 20 31 34 0a 20 20 20  20 20 20 20 20 20 20 65  |  14.          e|
00013ea0  72 72 6f 72 20 77 72 69  74 69 6e 67 20 74 6f 20  |rror writing to |
00013eb0  61 20 66 69 6c 65 0a 0a  20 20 20 31 35 0a 20 20  |a file..   15.  |
00013ec0  20 20 20 20 20 20 20 20  7a 69 70 20 77 61 73 20  |        zip was |
00013ed0  75 6e 61 62 6c 65 20 74  6f 20 63 72 65 61 74 65  |unable to create|
00013ee0  20 61 20 66 69 6c 65 20  74 6f 20 77 72 69 74 65  | a file to write|
00013ef0  20 74 6f 0a 0a 20 20 20  31 36 0a 20 20 20 20 20  | to..   16.     |
00013f00  20 20 20 20 20 62 61 64  20 63 6f 6d 6d 61 6e 64  |     bad command|
00013f10  20 6c 69 6e 65 20 70 61  72 61 6d 65 74 65 72 73  | line parameters|
00013f20  0a 0a 20 20 20 31 38 0a  20 20 20 20 20 20 20 20  |..   18.        |
00013f30  20 20 7a 69 70 20 63 6f  75 6c 64 20 6e 6f 74 20  |  zip could not |
00013f40  6f 70 65 6e 20 61 20 73  70 65 63 69 66 69 65 64  |open a specified|
00013f50  20 66 69 6c 65 20 74 6f  20 72 65 61 64 0a 0a 20  | file to read.. |
00013f60  20 20 31 39 0a 0a 20 20  20 20 20 7a 69 70 20 77  |  19..     zip w|
00013f70  61 73 20 63 6f 6d 70 69  6c 65 64 20 77 69 74 68  |as compiled with|
00013f80  20 6f 70 74 69 6f 6e 73  20 6e 6f 74 20 73 75 70  | options not sup|
00013f90  70 6f 72 74 65 64 20 6f  6e 20 74 68 69 73 20 73  |ported on this s|
00013fa0  79 73 74 65 6d 0a 0a 20  20 20 56 4d 53 20 69 6e  |ystem..   VMS in|
00013fb0  74 65 72 70 72 65 74 73  20 73 74 61 6e 64 61 72  |terprets standar|
00013fc0  64 20 55 6e 69 78 20 28  6f 72 20 50 43 29 20 72  |d Unix (or PC) r|
00013fd0  65 74 75 72 6e 20 76 61  6c 75 65 73 20 61 73 20  |eturn values as |
00013fe0  6f 74 68 65 72 2c 0a 20  20 20 73 63 61 72 69 65  |other,.   scarie|
00013ff0  72 2d 6c 6f 6f 6b 69 6e  67 20 74 68 69 6e 67 73  |r-looking things|
00014000  2c 20 73 6f 20 7a 69 70  20 69 6e 73 74 65 61 64  |, so zip instead|
00014010  20 6d 61 70 73 20 74 68  65 6d 20 69 6e 74 6f 20  | maps them into |
00014020  56 4d 53 2d 73 74 79 6c  65 20 73 74 61 74 75 73  |VMS-style status|
00014030  0a 20 20 20 63 6f 64 65  73 2e 20 49 6e 20 67 65  |.   codes. In ge|
00014040  6e 65 72 61 6c 2c 20 7a  69 70 20 73 65 74 73 20  |neral, zip sets |
00014050  56 4d 53 20 46 61 63 69  6c 69 74 79 20 3d 20 31  |VMS Facility = 1|
00014060  39 35 35 20 28 30 78 30  37 41 33 29 2c 20 43 6f  |955 (0x07A3), Co|
00014070  64 65 20 3d 20 32 2a 0a  20 20 20 55 6e 69 78 5f  |de = 2*.   Unix_|
00014080  73 74 61 74 75 73 2c 20  61 6e 64 20 61 6e 20 61  |status, and an a|
00014090  70 70 72 6f 70 72 69 61  74 65 20 53 65 76 65 72  |ppropriate Sever|
000140a0  69 74 79 20 28 61 73 20  73 70 65 63 69 66 69 65  |ity (as specifie|
000140b0  64 20 69 6e 20 7a 69 70  65 72 72 2e 68 29 2e 0a  |d in ziperr.h)..|
000140c0  20 20 20 4d 6f 72 65 20  64 65 74 61 69 6c 73 20  |   More details |
000140d0  61 72 65 20 69 6e 63 6c  75 64 65 64 20 69 6e 20  |are included in |
000140e0  74 68 65 20 56 4d 53 2d  73 70 65 63 69 66 69 63  |the VMS-specific|
000140f0  20 64 6f 63 75 6d 65 6e  74 61 74 69 6f 6e 2e 20  | documentation. |
00014100  53 65 65 0a 20 20 20 5b  2e 76 6d 73 5d 4e 4f 54  |See.   [.vms]NOT|
00014110  45 53 2e 54 58 54 20 61  6e 64 20 5b 2e 76 6d 73  |ES.TXT and [.vms|
00014120  5d 76 6d 73 5f 6d 73 67  5f 67 65 6e 2e 63 2e 0a  |]vms_msg_gen.c..|
00014130  0a 42 75 67 73 0a 0a 20  20 20 7a 69 70 20 33 2e  |.Bugs..   zip 3.|
00014140  30 20 69 73 20 6e 6f 74  20 63 6f 6d 70 61 74 69  |0 is not compati|
00014150  62 6c 65 20 77 69 74 68  20 50 4b 55 4e 5a 49 50  |ble with PKUNZIP|
00014160  20 31 2e 31 30 2e 20 55  73 65 20 7a 69 70 20 31  | 1.10. Use zip 1|
00014170  2e 31 20 74 6f 20 70 72  6f 64 75 63 65 0a 20 20  |.1 to produce.  |
00014180  20 7a 69 70 20 66 69 6c  65 73 20 77 68 69 63 68  | zip files which|
00014190  20 63 61 6e 20 62 65 20  65 78 74 72 61 63 74 65  | can be extracte|
000141a0  64 20 62 79 20 50 4b 55  4e 5a 49 50 20 31 2e 31  |d by PKUNZIP 1.1|
000141b0  30 2e 0a 0a 20 20 20 7a  69 70 20 66 69 6c 65 73  |0...   zip files|
000141c0  20 70 72 6f 64 75 63 65  64 20 62 79 20 7a 69 70  | produced by zip|
000141d0  20 33 2e 30 20 6d 75 73  74 20 6e 6f 74 20 62 65  | 3.0 must not be|
000141e0  20 75 70 64 61 74 65 64  20 62 79 20 7a 69 70 20  | updated by zip |
000141f0  31 2e 31 20 6f 72 20 50  4b 5a 49 50 0a 20 20 20  |1.1 or PKZIP.   |
00014200  31 2e 31 30 2c 20 69 66  20 74 68 65 79 20 63 6f  |1.10, if they co|
00014210  6e 74 61 69 6e 20 65 6e  63 72 79 70 74 65 64 20  |ntain encrypted |
00014220  6d 65 6d 62 65 72 73 20  6f 72 20 69 66 20 74 68  |members or if th|
00014230  65 79 20 68 61 76 65 20  62 65 65 6e 20 70 72 6f  |ey have been pro|
00014240  64 75 63 65 64 0a 20 20  20 69 6e 20 61 20 70 69  |duced.   in a pi|
00014250  70 65 20 6f 72 20 6f 6e  20 61 20 6e 6f 6e 2d 73  |pe or on a non-s|
00014260  65 65 6b 61 62 6c 65 20  64 65 76 69 63 65 2e 20  |eekable device. |
00014270  54 68 65 20 6f 6c 64 20  76 65 72 73 69 6f 6e 73  |The old versions|
00014280  20 6f 66 20 7a 69 70 20  6f 72 0a 20 20 20 50 4b  | of zip or.   PK|
00014290  5a 49 50 20 77 6f 75 6c  64 20 63 72 65 61 74 65  |ZIP would create|
000142a0  20 61 6e 20 61 72 63 68  69 76 65 20 77 69 74 68  | an archive with|
000142b0  20 61 6e 20 69 6e 63 6f  72 72 65 63 74 20 66 6f  | an incorrect fo|
000142c0  72 6d 61 74 2e 20 54 68  65 20 6f 6c 64 0a 20 20  |rmat. The old.  |
000142d0  20 76 65 72 73 69 6f 6e  73 20 63 61 6e 20 6c 69  | versions can li|
000142e0  73 74 20 74 68 65 20 63  6f 6e 74 65 6e 74 73 20  |st the contents |
000142f0  6f 66 20 74 68 65 20 7a  69 70 20 66 69 6c 65 20  |of the zip file |
00014300  62 75 74 20 63 61 6e 6e  6f 74 20 65 78 74 72 61  |but cannot extra|
00014310  63 74 20 69 74 0a 20 20  20 61 6e 79 77 61 79 20  |ct it.   anyway |
00014320  28 62 65 63 61 75 73 65  20 6f 66 20 74 68 65 20  |(because of the |
00014330  6e 65 77 20 63 6f 6d 70  72 65 73 73 69 6f 6e 20  |new compression |
00014340  61 6c 67 6f 72 69 74 68  6d 29 2e 20 49 66 20 79  |algorithm). If y|
00014350  6f 75 20 64 6f 20 6e 6f  74 20 75 73 65 0a 20 20  |ou do not use.  |
00014360  20 65 6e 63 72 79 70 74  69 6f 6e 20 61 6e 64 20  | encryption and |
00014370  75 73 65 20 72 65 67 75  6c 61 72 20 64 69 73 6b  |use regular disk|
00014380  20 66 69 6c 65 73 2c 20  79 6f 75 20 64 6f 20 6e  | files, you do n|
00014390  6f 74 20 68 61 76 65 20  74 6f 20 63 61 72 65 20  |ot have to care |
000143a0  61 62 6f 75 74 0a 20 20  20 74 68 69 73 20 70 72  |about.   this pr|
000143b0  6f 62 6c 65 6d 2e 0a 0a  20 20 20 55 6e 64 65 72  |oblem...   Under|
000143c0  20 56 4d 53 2c 20 6e 6f  74 20 61 6c 6c 20 6f 66  | VMS, not all of|
000143d0  20 74 68 65 20 6f 64 64  20 66 69 6c 65 20 66 6f  | the odd file fo|
000143e0  72 6d 61 74 73 20 61 72  65 20 74 72 65 61 74 65  |rmats are treate|
000143f0  64 20 70 72 6f 70 65 72  6c 79 2e 20 4f 6e 6c 79  |d properly. Only|
00014400  0a 20 20 20 73 74 72 65  61 6d 2d 4c 46 20 66 6f  |.   stream-LF fo|
00014410  72 6d 61 74 20 7a 69 70  20 66 69 6c 65 73 20 61  |rmat zip files a|
00014420  72 65 20 65 78 70 65 63  74 65 64 20 74 6f 20 77  |re expected to w|
00014430  6f 72 6b 20 77 69 74 68  20 7a 69 70 2e 20 4f 74  |ork with zip. Ot|
00014440  68 65 72 73 20 63 61 6e  0a 20 20 20 62 65 20 63  |hers can.   be c|
00014450  6f 6e 76 65 72 74 65 64  20 75 73 69 6e 67 20 52  |onverted using R|
00014460  61 68 75 6c 20 44 68 65  73 69 27 73 20 42 49 4c  |ahul Dhesi's BIL|
00014470  46 20 70 72 6f 67 72 61  6d 2e 20 54 68 69 73 20  |F program. This |
00014480  76 65 72 73 69 6f 6e 20  6f 66 20 7a 69 70 0a 20  |version of zip. |
00014490  20 20 68 61 6e 64 6c 65  73 20 73 6f 6d 65 20 6f  |  handles some o|
000144a0  66 20 74 68 65 20 63 6f  6e 76 65 72 73 69 6f 6e  |f the conversion|
000144b0  20 69 6e 74 65 72 6e 61  6c 6c 79 2e 20 57 68 65  | internally. Whe|
000144c0  6e 20 75 73 69 6e 67 20  4b 65 72 6d 69 74 20 74  |n using Kermit t|
000144d0  6f 0a 20 20 20 74 72 61  6e 73 66 65 72 20 7a 69  |o.   transfer zi|
000144e0  70 20 66 69 6c 65 73 20  66 72 6f 6d 20 56 4d 53  |p files from VMS|
000144f0  20 74 6f 20 4d 53 44 4f  53 2c 20 74 79 70 65 20  | to MSDOS, type |
00014500  22 73 65 74 20 66 69 6c  65 20 74 79 70 65 20 62  |"set file type b|
00014510  6c 6f 63 6b 22 20 6f 6e  0a 20 20 20 56 4d 53 2e  |lock" on.   VMS.|
00014520  20 57 68 65 6e 20 74 72  61 6e 73 66 65 72 69 6e  | When transferin|
00014530  67 20 66 72 6f 6d 20 4d  53 44 4f 53 20 74 6f 20  |g from MSDOS to |
00014540  56 4d 53 2c 20 74 79 70  65 20 22 73 65 74 20 66  |VMS, type "set f|
00014550  69 6c 65 20 74 79 70 65  20 66 69 78 65 64 22 20  |ile type fixed" |
00014560  6f 6e 0a 20 20 20 56 4d  53 2e 20 49 6e 20 62 6f  |on.   VMS. In bo|
00014570  74 68 20 63 61 73 65 73  2c 20 74 79 70 65 20 22  |th cases, type "|
00014580  73 65 74 20 66 69 6c 65  20 74 79 70 65 20 62 69  |set file type bi|
00014590  6e 61 72 79 22 20 6f 6e  20 4d 53 44 4f 53 2e 0a  |nary" on MSDOS..|
000145a0  0a 20 20 20 55 6e 64 65  72 20 73 6f 6d 65 20 6f  |.   Under some o|
000145b0  6c 64 65 72 20 56 4d 53  20 76 65 72 73 69 6f 6e  |lder VMS version|
000145c0  73 2c 20 7a 69 70 20 6d  61 79 20 68 61 6e 67 20  |s, zip may hang |
000145d0  66 6f 72 20 66 69 6c 65  20 73 70 65 63 69 66 69  |for file specifi|
000145e0  63 61 74 69 6f 6e 73 0a  20 20 20 74 68 61 74 20  |cations.   that |
000145f0  75 73 65 20 44 45 43 6e  65 74 20 73 79 6e 74 61  |use DECnet synta|
00014600  78 20 66 6f 6f 3a 3a 2a  2e 2a 2e 0a 0a 20 20 20  |x foo::*.*...   |
00014610  4f 6e 20 4f 53 2f 32 2c  20 7a 69 70 20 63 61 6e  |On OS/2, zip can|
00014620  6e 6f 74 20 6d 61 74 63  68 20 73 6f 6d 65 20 6e  |not match some n|
00014630  61 6d 65 73 2c 20 73 75  63 68 20 61 73 20 74 68  |ames, such as th|
00014640  6f 73 65 20 69 6e 63 6c  75 64 69 6e 67 20 61 6e  |ose including an|
00014650  0a 20 20 20 65 78 63 6c  61 6d 61 74 69 6f 6e 20  |.   exclamation |
00014660  6d 61 72 6b 20 6f 72 20  61 20 68 61 73 68 20 73  |mark or a hash s|
00014670  69 67 6e 2e 20 54 68 69  73 20 69 73 20 61 20 62  |ign. This is a b|
00014680  75 67 20 69 6e 20 4f 53  2f 32 20 69 74 73 65 6c  |ug in OS/2 itsel|
00014690  66 3a 20 74 68 65 0a 20  20 20 33 32 2d 62 69 74  |f: the.   32-bit|
000146a0  20 44 6f 73 46 69 6e 64  46 69 72 73 74 2f 4e 65  | DosFindFirst/Ne|
000146b0  78 74 20 64 6f 6e 27 74  20 66 69 6e 64 20 73 75  |xt don't find su|
000146c0  63 68 20 6e 61 6d 65 73  2e 20 4f 74 68 65 72 20  |ch names. Other |
000146d0  70 72 6f 67 72 61 6d 73  20 73 75 63 68 20 61 73  |programs such as|
000146e0  0a 20 20 20 47 4e 55 20  74 61 72 20 61 72 65 20  |.   GNU tar are |
000146f0  61 6c 73 6f 20 61 66 66  65 63 74 65 64 20 62 79  |also affected by|
00014700  20 74 68 69 73 20 62 75  67 2e 0a 0a 20 20 20 55  | this bug...   U|
00014710  6e 64 65 72 20 4f 53 2f  32 2c 20 74 68 65 20 61  |nder OS/2, the a|
00014720  6d 6f 75 6e 74 20 6f 66  20 45 78 74 65 6e 64 65  |mount of Extende|
00014730  64 20 41 74 74 72 69 62  75 74 65 73 20 64 69 73  |d Attributes dis|
00014740  70 6c 61 79 65 64 20 62  79 20 44 49 52 20 69 73  |played by DIR is|
00014750  20 28 66 6f 72 0a 20 20  20 63 6f 6d 70 61 74 69  | (for.   compati|
00014760  62 69 6c 69 74 79 29 20  74 68 65 20 61 6d 6f 75  |bility) the amou|
00014770  6e 74 20 72 65 74 75 72  6e 65 64 20 62 79 20 74  |nt returned by t|
00014780  68 65 20 31 36 2d 62 69  74 20 76 65 72 73 69 6f  |he 16-bit versio|
00014790  6e 20 6f 66 0a 20 20 20  44 6f 73 51 75 65 72 79  |n of.   DosQuery|
000147a0  50 61 74 68 49 6e 66 6f  28 29 2e 20 4f 74 68 65  |PathInfo(). Othe|
000147b0  72 77 69 73 65 20 4f 53  2f 32 20 31 2e 33 20 61  |rwise OS/2 1.3 a|
000147c0  6e 64 20 32 2e 30 20 77  6f 75 6c 64 20 72 65 70  |nd 2.0 would rep|
000147d0  6f 72 74 20 64 69 66 66  65 72 65 6e 74 0a 20 20  |ort different.  |
000147e0  20 45 41 20 73 69 7a 65  73 20 77 68 65 6e 20 44  | EA sizes when D|
000147f0  49 52 69 6e 67 20 61 20  66 69 6c 65 2e 20 48 6f  |IRing a file. Ho|
00014800  77 65 76 65 72 2c 20 74  68 65 20 73 74 72 75 63  |wever, the struc|
00014810  74 75 72 65 20 6c 61 79  6f 75 74 20 72 65 74 75  |ture layout retu|
00014820  72 6e 65 64 20 62 79 0a  20 20 20 74 68 65 20 33  |rned by.   the 3|
00014830  32 2d 62 69 74 20 44 6f  73 51 75 65 72 79 50 61  |2-bit DosQueryPa|
00014840  74 68 49 6e 66 6f 28 29  20 69 73 20 61 20 62 69  |thInfo() is a bi|
00014850  74 20 64 69 66 66 65 72  65 6e 74 2c 20 69 74 20  |t different, it |
00014860  75 73 65 73 20 65 78 74  72 61 0a 20 20 20 70 61  |uses extra.   pa|
00014870  64 64 69 6e 67 20 62 79  74 65 73 20 61 6e 64 20  |dding bytes and |
00014880  6c 69 6e 6b 20 70 6f 69  6e 74 65 72 73 20 28 69  |link pointers (i|
00014890  74 27 73 20 61 20 6c 69  6e 6b 65 64 20 6c 69 73  |t's a linked lis|
000148a0  74 29 20 74 6f 20 68 61  76 65 20 61 6c 6c 0a 20  |t) to have all. |
000148b0  20 20 66 69 65 6c 64 73  20 6f 6e 20 34 2d 62 79  |  fields on 4-by|
000148c0  74 65 20 62 6f 75 6e 64  61 72 69 65 73 20 66 6f  |te boundaries fo|
000148d0  72 20 70 6f 72 74 61 62  69 6c 69 74 79 20 74 6f  |r portability to|
000148e0  20 66 75 74 75 72 65 20  52 49 53 43 20 4f 53 2f  | future RISC OS/|
000148f0  32 0a 20 20 20 76 65 72  73 69 6f 6e 73 2e 20 54  |2.   versions. T|
00014900  68 65 72 65 66 6f 72 65  20 74 68 65 20 76 61 6c  |herefore the val|
00014910  75 65 20 72 65 70 6f 72  74 65 64 20 62 79 20 7a  |ue reported by z|
00014920  69 70 20 28 77 68 69 63  68 20 75 73 65 73 20 74  |ip (which uses t|
00014930  68 69 73 0a 20 20 20 33  32 2d 62 69 74 2d 6d 6f  |his.   32-bit-mo|
00014940  64 65 20 73 69 7a 65 29  20 64 69 66 66 65 72 73  |de size) differs|
00014950  20 66 72 6f 6d 20 74 68  61 74 20 72 65 70 6f 72  | from that repor|
00014960  74 65 64 20 62 79 20 44  49 52 2e 20 7a 69 70 20  |ted by DIR. zip |
00014970  73 74 6f 72 65 73 20 74  68 65 0a 20 20 20 33 32  |stores the.   32|
00014980  2d 62 69 74 20 66 6f 72  6d 61 74 20 66 6f 72 20  |-bit format for |
00014990  70 6f 72 74 61 62 69 6c  69 74 79 2c 20 65 76 65  |portability, eve|
000149a0  6e 20 74 68 65 20 31 36  2d 62 69 74 20 4d 53 2d  |n the 16-bit MS-|
000149b0  43 2d 63 6f 6d 70 69 6c  65 64 20 76 65 72 73 69  |C-compiled versi|
000149c0  6f 6e 0a 20 20 20 72 75  6e 6e 69 6e 67 20 6f 6e  |on.   running on|
000149d0  20 4f 53 2f 32 20 31 2e  33 2c 20 73 6f 20 65 76  | OS/2 1.3, so ev|
000149e0  65 6e 20 74 68 69 73 20  6f 6e 65 20 73 68 6f 77  |en this one show|
000149f0  73 20 74 68 65 20 33 32  2d 62 69 74 2d 6d 6f 64  |s the 32-bit-mod|
00014a00  65 20 73 69 7a 65 2e 0a  0a 41 75 74 68 6f 72 73  |e size...Authors|
00014a10  0a 0a 20 20 20 43 6f 70  79 72 69 67 68 74 20 28  |..   Copyright (|
00014a20  43 29 20 31 39 39 37 2d  32 30 30 38 20 49 6e 66  |C) 1997-2008 Inf|
00014a30  6f 2d 5a 49 50 2e 0a 0a  20 20 20 43 75 72 72 65  |o-ZIP...   Curre|
00014a40  6e 74 6c 79 20 64 69 73  74 72 69 62 75 74 65 64  |ntly distributed|
00014a50  20 75 6e 64 65 72 20 74  68 65 20 49 6e 66 6f 2d  | under the Info-|
00014a60  5a 49 50 20 6c 69 63 65  6e 73 65 2e 0a 0a 20 20  |ZIP license...  |
00014a70  20 43 6f 70 79 72 69 67  68 74 20 28 43 29 20 31  | Copyright (C) 1|
00014a80  39 39 30 2d 31 39 39 37  20 4d 61 72 6b 20 41 64  |990-1997 Mark Ad|
00014a90  6c 65 72 2c 20 52 69 63  68 61 72 64 20 42 2e 20  |ler, Richard B. |
00014aa0  57 61 6c 65 73 2c 20 4a  65 61 6e 2d 6c 6f 75 70  |Wales, Jean-loup|
00014ab0  0a 20 20 20 47 61 69 6c  6c 79 2c 20 4f 6e 6e 6f  |.   Gailly, Onno|
00014ac0  20 76 61 6e 20 64 65 72  20 4c 69 6e 64 65 6e 2c  | van der Linden,|
00014ad0  20 4b 61 69 20 55 77 65  20 52 6f 6d 6d 65 6c 2c  | Kai Uwe Rommel,|
00014ae0  20 49 67 6f 72 20 4d 61  6e 64 72 69 63 68 65 6e  | Igor Mandrichen|
00014af0  6b 6f 2c 20 4a 6f 68 6e  0a 20 20 20 42 75 73 68  |ko, John.   Bush|
00014b00  20 61 6e 64 20 50 61 75  6c 20 4b 69 65 6e 69 74  | and Paul Kienit|
00014b10  7a 2e 0a 0a 20 20 20 4f  72 69 67 69 6e 61 6c 20  |z...   Original |
00014b20  63 6f 70 79 72 69 67 68  74 3a 0a 0a 20 20 20 50  |copyright:..   P|
00014b30  65 72 6d 69 73 73 69 6f  6e 20 69 73 20 67 72 61  |ermission is gra|
00014b40  6e 74 65 64 20 74 6f 20  61 6e 79 20 69 6e 64 69  |nted to any indi|
00014b50  76 69 64 75 61 6c 20 6f  72 20 69 6e 73 74 69 74  |vidual or instit|
00014b60  75 74 69 6f 6e 20 74 6f  20 75 73 65 2c 20 63 6f  |ution to use, co|
00014b70  70 79 2c 0a 20 20 20 6f  72 20 72 65 64 69 73 74  |py,.   or redist|
00014b80  72 69 62 75 74 65 20 74  68 69 73 20 73 6f 66 74  |ribute this soft|
00014b90  77 61 72 65 20 73 6f 20  6c 6f 6e 67 20 61 73 20  |ware so long as |
00014ba0  61 6c 6c 20 6f 66 20 74  68 65 20 6f 72 69 67 69  |all of the origi|
00014bb0  6e 61 6c 20 66 69 6c 65  73 20 61 72 65 0a 20 20  |nal files are.  |
00014bc0  20 69 6e 63 6c 75 64 65  64 2c 20 74 68 61 74 20  | included, that |
00014bd0  69 74 20 69 73 20 6e 6f  74 20 73 6f 6c 64 20 66  |it is not sold f|
00014be0  6f 72 20 70 72 6f 66 69  74 2c 20 61 6e 64 20 74  |or profit, and t|
00014bf0  68 61 74 20 74 68 69 73  20 63 6f 70 79 72 69 67  |hat this copyrig|
00014c00  68 74 0a 20 20 20 6e 6f  74 69 63 65 20 69 73 20  |ht.   notice is |
00014c10  72 65 74 61 69 6e 65 64  2e 0a 0a 20 20 20 4c 49  |retained...   LI|
00014c20  4b 45 20 41 4e 59 54 48  49 4e 47 20 45 4c 53 45  |KE ANYTHING ELSE|
00014c30  20 54 48 41 54 27 53 20  46 52 45 45 2c 20 5a 49  | THAT'S FREE, ZI|
00014c40  50 20 41 4e 44 20 49 54  53 20 41 53 53 4f 43 49  |P AND ITS ASSOCI|
00014c50  41 54 45 44 20 55 54 49  4c 49 54 49 45 53 20 41  |ATED UTILITIES A|
00014c60  52 45 0a 20 20 20 50 52  4f 56 49 44 45 44 20 41  |RE.   PROVIDED A|
00014c70  53 20 49 53 20 41 4e 44  20 43 4f 4d 45 20 57 49  |S IS AND COME WI|
00014c80  54 48 20 4e 4f 20 57 41  52 52 41 4e 54 59 20 4f  |TH NO WARRANTY O|
00014c90  46 20 41 4e 59 20 4b 49  4e 44 2c 20 45 49 54 48  |F ANY KIND, EITH|
00014ca0  45 52 20 45 58 50 52 45  53 53 45 44 0a 20 20 20  |ER EXPRESSED.   |
00014cb0  4f 52 20 49 4d 50 4c 49  45 44 2e 20 49 4e 20 4e  |OR IMPLIED. IN N|
00014cc0  4f 20 45 56 45 4e 54 20  57 49 4c 4c 20 54 48 45  |O EVENT WILL THE|
00014cd0  20 43 4f 50 59 52 49 47  48 54 20 48 4f 4c 44 45  | COPYRIGHT HOLDE|
00014ce0  52 53 20 42 45 20 4c 49  41 42 4c 45 20 46 4f 52  |RS BE LIABLE FOR|
00014cf0  20 41 4e 59 0a 20 20 20  44 41 4d 41 47 45 53 20  | ANY.   DAMAGES |
00014d00  52 45 53 55 4c 54 49 4e  47 20 46 52 4f 4d 20 54  |RESULTING FROM T|
00014d10  48 45 20 55 53 45 20 4f  46 20 54 48 49 53 20 53  |HE USE OF THIS S|
00014d20  4f 46 54 57 41 52 45 2e  0a 0a 20 20 20 50 6c 65  |OFTWARE...   Ple|
00014d30  61 73 65 20 73 65 6e 64  20 62 75 67 20 72 65 70  |ase send bug rep|
00014d40  6f 72 74 73 20 61 6e 64  20 63 6f 6d 6d 65 6e 74  |orts and comment|
00014d50  73 20 75 73 69 6e 67 20  74 68 65 20 77 65 62 20  |s using the web |
00014d60  70 61 67 65 20 61 74 3a  0a 20 20 20 77 77 77 2e  |page at:.   www.|
00014d70  69 6e 66 6f 2d 7a 69 70  2e 6f 72 67 2e 20 46 6f  |info-zip.org. Fo|
00014d80  72 20 62 75 67 20 72 65  70 6f 72 74 73 2c 20 70  |r bug reports, p|
00014d90  6c 65 61 73 65 20 69 6e  63 6c 75 64 65 20 74 68  |lease include th|
00014da0  65 20 76 65 72 73 69 6f  6e 20 6f 66 20 7a 69 70  |e version of zip|
00014db0  0a 20 20 20 28 73 65 65  20 7a 69 70 20 2d 68 29  |.   (see zip -h)|
00014dc0  2c 20 74 68 65 20 6d 61  6b 65 20 6f 70 74 69 6f  |, the make optio|
00014dd0  6e 73 20 75 73 65 64 20  74 6f 20 63 6f 6d 70 69  |ns used to compi|
00014de0  6c 65 20 69 74 20 28 73  65 65 20 7a 69 70 20 2d  |le it (see zip -|
00014df0  76 29 2c 20 74 68 65 0a  20 20 20 6d 61 63 68 69  |v), the.   machi|
00014e00  6e 65 20 61 6e 64 20 6f  70 65 72 61 74 69 6e 67  |ne and operating|
00014e10  20 73 79 73 74 65 6d 20  69 6e 20 75 73 65 2c 20  | system in use, |
00014e20  61 6e 64 20 61 73 20 6d  75 63 68 20 61 64 64 69  |and as much addi|
00014e30  74 69 6f 6e 61 6c 0a 20  20 20 69 6e 66 6f 72 6d  |tional.   inform|
00014e40  61 74 69 6f 6e 20 61 73  20 70 6f 73 73 69 62 6c  |ation as possibl|
00014e50  65 2e 0a 0a 41 63 6b 6e  6f 77 6c 65 64 67 65 6d  |e...Acknowledgem|
00014e60  65 6e 74 73 0a 0a 20 20  20 54 68 61 6e 6b 73 20  |ents..   Thanks |
00014e70  74 6f 20 52 2e 20 50 2e  20 42 79 72 6e 65 20 66  |to R. P. Byrne f|
00014e80  6f 72 20 68 69 73 20 53  68 72 69 6e 6b 2e 50 61  |or his Shrink.Pa|
00014e90  73 20 70 72 6f 67 72 61  6d 2c 20 77 68 69 63 68  |s program, which|
00014ea0  20 69 6e 73 70 69 72 65  64 20 74 68 69 73 0a 20  | inspired this. |
00014eb0  20 20 70 72 6f 6a 65 63  74 2c 20 61 6e 64 20 66  |  project, and f|
00014ec0  72 6f 6d 20 77 68 69 63  68 20 74 68 65 20 73 68  |rom which the sh|
00014ed0  72 69 6e 6b 20 61 6c 67  6f 72 69 74 68 6d 20 77  |rink algorithm w|
00014ee0  61 73 20 73 74 6f 6c 65  6e 3b 20 74 6f 20 50 68  |as stolen; to Ph|
00014ef0  69 6c 20 4b 61 74 7a 0a  20 20 20 66 6f 72 20 70  |il Katz.   for p|
00014f00  6c 61 63 69 6e 67 20 69  6e 20 74 68 65 20 70 75  |lacing in the pu|
00014f10  62 6c 69 63 20 64 6f 6d  61 69 6e 20 74 68 65 20  |blic domain the |
00014f20  7a 69 70 20 66 69 6c 65  20 66 6f 72 6d 61 74 2c  |zip file format,|
00014f30  20 63 6f 6d 70 72 65 73  73 69 6f 6e 0a 20 20 20  | compression.   |
00014f40  66 6f 72 6d 61 74 2c 20  61 6e 64 20 2e 5a 49 50  |format, and .ZIP|
00014f50  20 66 69 6c 65 6e 61 6d  65 20 65 78 74 65 6e 73  | filename extens|
00014f60  69 6f 6e 2c 20 61 6e 64  20 66 6f 72 20 61 63 63  |ion, and for acc|
00014f70  65 70 74 69 6e 67 20 6d  69 6e 6f 72 20 63 68 61  |epting minor cha|
00014f80  6e 67 65 73 0a 20 20 20  74 6f 20 74 68 65 20 66  |nges.   to the f|
00014f90  69 6c 65 20 66 6f 72 6d  61 74 3b 20 74 6f 20 53  |ile format; to S|
00014fa0  74 65 76 65 20 42 75 72  67 20 66 6f 72 20 63 6c  |teve Burg for cl|
00014fb0  61 72 69 66 69 63 61 74  69 6f 6e 73 20 6f 6e 20  |arifications on |
00014fc0  74 68 65 20 64 65 66 6c  61 74 65 0a 20 20 20 66  |the deflate.   f|
00014fd0  6f 72 6d 61 74 3b 20 74  6f 20 48 61 72 75 68 69  |ormat; to Haruhi|
00014fe0  6b 6f 20 4f 6b 75 6d 75  72 61 20 61 6e 64 20 4c  |ko Okumura and L|
00014ff0  65 6f 6e 69 64 20 42 72  6f 75 6b 68 69 73 20 66  |eonid Broukhis f|
00015000  6f 72 20 70 72 6f 76 69  64 69 6e 67 20 73 6f 6d  |or providing som|
00015010  65 0a 20 20 20 75 73 65  66 75 6c 20 69 64 65 61  |e.   useful idea|
00015020  73 20 66 6f 72 20 74 68  65 20 63 6f 6d 70 72 65  |s for the compre|
00015030  73 73 69 6f 6e 20 61 6c  67 6f 72 69 74 68 6d 3b  |ssion algorithm;|
00015040  20 74 6f 20 4b 65 69 74  68 20 50 65 74 65 72 73  | to Keith Peters|
00015050  65 6e 2c 20 52 69 63 68  0a 20 20 20 57 61 6c 65  |en, Rich.   Wale|
00015060  73 2c 20 48 75 6e 74 65  72 20 47 6f 61 74 6c 65  |s, Hunter Goatle|
00015070  79 20 61 6e 64 20 4d 61  72 6b 20 41 64 6c 65 72  |y and Mark Adler|
00015080  20 66 6f 72 20 70 72 6f  76 69 64 69 6e 67 20 61  | for providing a|
00015090  20 6d 61 69 6c 69 6e 67  20 6c 69 73 74 20 61 6e  | mailing list an|
000150a0  64 0a 20 20 20 66 74 70  20 73 69 74 65 20 66 6f  |d.   ftp site fo|
000150b0  72 20 74 68 65 20 49 6e  66 6f 2d 5a 49 50 20 67  |r the Info-ZIP g|
000150c0  72 6f 75 70 20 74 6f 20  75 73 65 3b 20 61 6e 64  |roup to use; and|
000150d0  20 6d 6f 73 74 20 69 6d  70 6f 72 74 61 6e 74 6c  | most importantl|
000150e0  79 2c 20 74 6f 20 74 68  65 0a 20 20 20 49 6e 66  |y, to the.   Inf|
000150f0  6f 2d 5a 49 50 20 67 72  6f 75 70 20 69 74 73 65  |o-ZIP group itse|
00015100  6c 66 20 28 6c 69 73 74  65 64 20 69 6e 20 74 68  |lf (listed in th|
00015110  65 20 66 69 6c 65 20 69  6e 66 6f 7a 69 70 2e 77  |e file infozip.w|
00015120  68 6f 29 20 77 69 74 68  6f 75 74 20 77 68 6f 73  |ho) without whos|
00015130  65 0a 20 20 20 74 69 72  65 6c 65 73 73 20 74 65  |e.   tireless te|
00015140  73 74 69 6e 67 20 61 6e  64 20 62 75 67 2d 66 69  |sting and bug-fi|
00015150  78 69 6e 67 20 65 66 66  6f 72 74 73 20 61 20 70  |xing efforts a p|
00015160  6f 72 74 61 62 6c 65 20  7a 69 70 20 77 6f 75 6c  |ortable zip woul|
00015170  64 20 6e 6f 74 20 68 61  76 65 0a 20 20 20 62 65  |d not have.   be|
00015180  65 6e 20 70 6f 73 73 69  62 6c 65 2e 20 46 69 6e  |en possible. Fin|
00015190  61 6c 6c 79 20 77 65 20  73 68 6f 75 6c 64 20 74  |ally we should t|
000151a0  68 61 6e 6b 20 28 62 6c  61 6d 65 29 20 74 68 65  |hank (blame) the|
000151b0  20 66 69 72 73 74 20 49  6e 66 6f 2d 5a 49 50 0a  | first Info-ZIP.|
000151c0  20 20 20 6d 6f 64 65 72  61 74 6f 72 2c 20 44 61  |   moderator, Da|
000151d0  76 69 64 20 4b 69 72 73  63 68 62 61 75 6d 2c 20  |vid Kirschbaum, |
000151e0  66 6f 72 20 67 65 74 74  69 6e 67 20 75 73 20 69  |for getting us i|
000151f0  6e 74 6f 20 74 68 69 73  20 6d 65 73 73 20 69 6e  |nto this mess in|
00015200  20 74 68 65 0a 20 20 20  66 69 72 73 74 20 70 6c  | the.   first pl|
00015210  61 63 65 2e 20 54 68 65  20 6d 61 6e 75 61 6c 20  |ace. The manual |
00015220  70 61 67 65 20 77 61 73  20 72 65 77 72 69 74 74  |page was rewritt|
00015230  65 6e 20 66 6f 72 20 55  6e 69 78 20 62 79 20 52  |en for Unix by R|
00015240  2e 20 50 2e 20 43 2e 0a  20 20 20 52 6f 64 67 65  |. P. C..   Rodge|
00015250  72 73 20 61 6e 64 20 75  70 64 61 74 65 64 20 62  |rs and updated b|
00015260  79 20 45 2e 20 47 6f 72  64 6f 6e 20 66 6f 72 20  |y E. Gordon for |
00015270  7a 69 70 20 33 2e 30 2e  0a                       |zip 3.0..|
00015279