Home Explore Blog CI



man-pages

23th chunk of `zip.man`
9f55a30f499b09ec5d4d24a97a459bfb22b6f9ef51bcfd070000000100000fe6
 done.

       -S
       --system‐hidden
              [MSDOS, OS/2, WIN32 and ATARI] Include system and hidden files.
              [MacOS] Includes finder invisible files, which are ignored other‐
              wise.

       -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 in‐
              famy.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 in‐
              famy.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, oth‐
              erwise the name of the archive is appended to the end of the com‐
              mand.  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 op‐
              tion 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  up‐
              date,  input  patterns  on  the  command line are matched against
              archive entries only and not the  file  system  files.   For  in‐
              stance,

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

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

Title: zip Options: -S, -t, -tt, -T, -TT, -u, -U
Summary
This section describes several zip options: '-S' includes system and hidden files. '-t' excludes files before a date, '-tt' excludes files after a date. '-T' tests archive integrity. '-TT' specifies a command to test the archive. '-u' updates existing archive entries if they're newer. '-U' copies entries from one archive to another using --out to specify the destination archive.