How can I combine multiple existing zip files into a single file? I'm asking because I have many PDFs to zip, and I want to leverage parallel
to save time in zipping them all up (as in ls ./*.pdf | parallel "zip {}.zip {}"
). This creates many zip files, but I want to combine the zip files into a single file. I'll then send all these PDFs as one zip file (instead of as many files).
I've heard that two concatenated zip files form a single valid zip file, but in my testing I haven't actually been able to unzip a big concatenated zip file back into multiple files-- For the most part only the first file gets preserved as far as I've been able to make it.
I've considered tarring all my zip files into a single bigfile.zip.tar, but I'd also prefer to avoid this method if possible because I don't think the standard decompression tools my recipient has access to will make it easy to restore a file like that back into many individual PDFs.
zip all.zip *.pdf
and be done with it?parallel "zip {}.zip {} ::: *.pdf