I have a series of complete, standalone zip files which have been concatenated together through a serial device; for testing purposes, one might think of cat 1.zip 2.zip 3.zip >all.zip
. Now, given all.zip
, I want to split that back out into separate files again—each of those being a working, standalone ZIP file with its own header.
Since ZIP files have headers that include information on file size and location, I expect there to be a reasonable mechanism by which to find the division point between these files without actually needing to parse them.
Is there a way to do this on a Unixy platform?