Home Explore Blog CI



man-pages

8th chunk of `zip.man`
5926446b8e18fba5ac79201c7ca22ddfab49967e7012c4510000000100000fcc
  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.   Di‐
              rectories  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 exam‐
              ple:

                     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 con‐
              taining 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  descrip‐
              tors.   Note  that  using  this option may require zip take addi‐
              tional 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

Title: zip: Detailed Explanation of Options (cont.)
Summary
This section continues detailing zip command-line options. It discusses archive bit manipulation using -AC/--archive-clear and -AS/--archive-set, including caveats about their reliability. It explains -B/--binary for forcing binary reads in VM/CMS and MVS, and -Bn for setting Edit/Enscribe formatting options on TANDEM systems. The -b/--temp-path option allows specifying a temporary path for the zip archive. The -c/--entry-comments option adds one-line comments for each file. The -C, -C2, and -C5 options preserve case on VMS systems. The -d/--delete option removes entries from a zip archive.