Easily find issues by searching: #<Issue ID>
Example: #1832
Easily find members by searching in: <username>, <first name> and <last name>.
Example: Search smith, will return results smith and adamsmith
Aqua Data Studio / nhilam |
Follow
827
|
\zip | |
This command compresses files into a single ZIP archive. | |
Syntax | |
\zip [-x 'PATTERN[, PATTERN...] ' ] [-i 'PATTERN[, PATTERN...] ' ] ZIPFILE FILE [ FILE ... ] |
|
Description | |
\zip compresses and packs FILE(S) into a single ZIP archive that is compatible with PKZIP. By default, packing a directory to a ZIPFILE always implies that the subdirectories below should be included in the archive. | |
Options | |
-x 'PATTERN[, PATTERN...] ' Excludes files that match the specified PATTERN(S). |
|
-i 'PATTERN[, PATTERN...] ' Includes only those files that match the specified PATTERN(S). |
|
Examples | |
To package a set of files in a directory into a zipfile using the \zip command: \zip archive.zip doc1.txt doc2.txt doc3.txt |
|
To zip doc1.txt and all other files with .png extension in a directory use: \zip archive.zip doc1.txt *.png |
|
To compress all the files in the current directory use the below command. Note that files starting with . are not included for compression. \zip archive_current_dir.zip * |
|
To archive a directory, excluding the files of its subdirectories, into a zipfile use the below command. \zip -i '*' archive_dir.zip dir_name |
|
To archive a directory and its subdirectories into a zipfile excluding all files that end with .txt and .html suffixes: \zip -x '**/*.txt, **/*.html' data.zip dir_name |
|
To archive a directory and its subdirectories into a zipfile, excluding all files that end with .dat suffix in the master subdirectory: \zip -x '**/master/*.dat' data.zip dir_name |
|
To archive a directory and its subdirectories into a zipfile, excluding all files that end with .csv, .txt and .png suffix in the master subdirectory: \zip -x '**/master/*.csv, **master/*.txt, **master/*.png' archive.zip dir_name |
|
See Also | |
\unzip |
About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017