I have received several archives and they all have extensions of .z01 .z02 .z03 etc.
There is no .zip file and no .z00 file.
If I transfer these files to my Mac and run them through un-stuffit, it unpacks fine.
But I cannot work out who to do this on my NAS (Linux) via the terminal window
(I actually want to automate the process, so it needs to happen on the linux box)
I have tried zip -FF file.z01 –out newfile.zip
and then unzip newel.zip but that fails.
I have tried 7z and all other suggested options (that relate to having a .zip file) fail.
Can someone point me in the right direction. Do I need a particular version of zip or 7z ??
Best Answer
Are you sure these are all the archive files? Maybe you're missing a
.zip
or.z00
file somewhere. Or try runningfile
on the files (usingfile *
in their directory works), they may not be zip files at all.Could also try using
cat
to "paste" together all the files in the right order, and write to a file (if they're small) or pipe that straight intozip
/unzip
:Should be able to use wildcards for the filenames too, like
cat name.z*
, and testing the list/order withecho name.z*
could help too/first.But
man unzip
says it should be able to handle wildcards itself, so just this might work too:Possibly requiring escaping (
name.z\*
) or quoting the asteriskunzip "name.z*"
Seeman unzip
.If the above don't work, then from the
man unzip
bug (listed below), you may have tocat
all the files into a single file, and then runzip -F
orzip -FF
, as in:zip -F foo --out foofix
orzip -FF foo --out foofixfix
And then unzipping
foofix
orfoofixfix
Info from
man unzip
:And this info from
man zip
may be useful: