2
votes
1answer
1k views

Zipping folder with absolute path without keeping tree of folders

I am attempting to use the zip -r command to zip a folder which includes two files. I need to pass the absolute path of the folder with two files (/path/to/my/files/), which is causing all of the ...
1
vote
1answer
1k views

Create ZIP archive without storing permissions?

I am distributing packaged files in ZIP format. I use the following to create: zip -r distr.zip files/ When expanded on other UNIX system files preserve their permissions as they were when I packed ...
0
votes
2answers
959 views

Zip up a folder, but only include folders with numerical names?

I have a very messy folder which contains thousands of files and directories. I would like to create a Zip file which only contains some of the folders (and files within those folders) - specifically ...
1
vote
2answers
3k views

Updating a file in a zip archive from STDIN

I want to update/freshen a file in a zip archive with the contents of stdin. So far I haven't been able to find a way to tell the zip command that the contents of stdin correspond to a particular ...
0
votes
4answers
565 views

Zip Command Line Question

I have a Windows machine with a directory structure that contains files with a particular extension. I need a script that will add a zipped file for each file with that extension. Is there a way to ...
74
votes
5answers
187k views

Does Windows have a built-in ZIP command for the command line?

Since Windows Explorer (since at least Windows XP) has some basic support for ZIP files, it seems like there should be a command-line equivalent, but I can't seem to find any sign of one. Does ...
82
votes
8answers
75k views

How to zip/unzip files in Powershell?

Is there a one-liner that will zip/unzip files (*.zip) in PowerShell?