add options to zip

waldyrious/alt-syntax
Xavi S.B 2015-12-28 17:51:04 +01:00
parent 46c91180fc
commit daf4885536
1 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,14 @@
> Package and compress (archive) files into zip file > Package and compress (archive) files into zip file
- package and compress multiple directories & files - package and compress multiple directories and files
`zip -r {{compressed.zip}} {{/path/to/dir1 /path/to/dir2 /path/to/file}}` `zip -r {{compressed.zip}} {{/path/to/dir1 /path/to/dir2 /path/to/file}}`
- add files to an existing zip file
`zip {{compressed.zip}} {{path/to/file}}`
- remove unwanted files from an existing zip file
`zip -d {{compressed.zip}} "{{foo/*.tmp}}"`