multipart zip on macos

I don’t often have to work with multi-part zips, but when I do, I always have to look up how to deal with them. By sticking this little pearl of wisdom on my blog, it’ll be easier to find!

# got a multipart zip?
# (.zip, .z01, .z02 etc.)
# unsplit them:
zip -s0 split-archive.zip -O whole-archive.zip
# now you can unzip like normal
unzip whole-archive.zip

# need to make a multipart zip?
zip -s50m  archive.zip -O split-archive.zip