Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to delete directory from zip file from bash script?

share|improve this question
add comment

2 Answers 2

up vote 5 down vote accepted

From man zip:

      zip -d foo foo/tom/junk foo/harry/\* \*.o

will  remove  the  entry  foo/tom/junk,  all  of  the  files  that  start  with
foo/harry/,  and  all  of  the files that end with .o (in any path).

If that doesn't help, can you provide some details about the commands you've tried and the output?

share|improve this answer
add comment

If you want to delete all files from a specific dir, you could do this:

zip --delete file.zip "assets/*"
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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