79556661

Date: 2025-04-05 07:05:45
Score: 0.5
Natty:
Report link

tldr

this works for me (without illegal byte sequence errors) regardless of file encoding.

cd /path/to/your/zip/files
mkdir combined
for archive in *.zip; do unar -f "$archive" -o combined; done

eli5

like others mentioned, the unzip on Mac is too old and maybe only handles utf8 well (thus incurring all the illegal byte sequence error). I tried upgrade upzip with brew install unzip and it didn't work for me.

remember to install unar if you don't have it already.

brew install unar
Reasons:
  • Blacklisted phrase (1): it didn't work for me
  • Whitelisted phrase (-1): works for me
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: jiabao