bash - How to update one file in a zip archive -


is possible replace file in zip file without unzipping deleting old file adding new file , rezipping back?

reason have zip file big there 1 xml inside zip file have update sometimes. unzipping zip , rezipping takes long time. i'd able replace 1 xml inside zip through script. have checks updates on xml have.

so possible replace 1 xml without unzipping , rezipping ?

sorry use zip command things problem script android phone , zip not command can use unfortunately sorry left out. have used zip definately if have unzip droid , there tar in busybox tar doesn't need

from zip(1):

when given name of existing zip archive, zip replace identically named entries in zip archive or add entries new names.

so use zip command create new .zip file containing 1 file, except .zip filename specify existing archive.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -