Odpowiedzi:
Od 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).
Jeśli to nie pomoże, czy możesz podać szczegółowe informacje na temat wypróbowanych poleceń i danych wyjściowych?
Jeśli chcesz usunąć wszystkie pliki z określonego katalogu, możesz to zrobić:
zip --delete file.zip "assets/*"
Może można to zrobić za pomocą skryptu, ale jeśli chcesz usunąć katalog z pliku zip, upewnij się, że katalog jest pusty. Jeśli katalog nie jest pusty, najpierw usuń wszystkie pliki z katalogu. Następnie możesz usunąć katalog.