How to move a file to a ZIP file without compression using the zip-cmd tool

I am trying to determine how to use the zipcmd line tool to move a file (uncompressed) to zip compressed files (i.e. I want zip at the end with all files, but one compressed, b / c one file is another compressed file) .

Does anyone know how to do this?

+3
source share
2 answers

-m is what I wanted, moves the file to zip.

+1
source

It looks like you can use the -n option to just store files with specific extensions along with the -g option to add the file to the archive.

I have not tested it, but something like this should do the trick:

zip -gn .foo archive.zip myAddedFile.foo

, zip .Z:.zip:.zoo:.arc:.lzh:.arj, , .

+2

Source: https://habr.com/ru/post/1765195/


All Articles