1

I would like to exclude some files when fixing my zip archive. But following doesn't seem to work:

zip -FF old.zip --out new.zip -x \*.JPG

How can I accomplish this?

1

zip -FF runs a specific block of dedicated code, which doesn't handle other options such as -x. As a result, you can't run a single zip command which combines -FF and any other operation.

To get the new.zip you're after, you'd need to run

zip -FF old.zip --out new.zip
zip -d new.zip \*.JPG

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.