Nov 24 2010
modzip.sh – modify the content of a zip file
Sometimes you need to modify the content of a zip file in the command line because the server doesn't have a X server and you have no access to the file system remotely.
What this script does:
-
modify text files inside a zip file with vi (or any other editor you like)
-
modify the content of zip file which is stored inside your zip file (nice example to explain recursion)
What this script is missing at this point:
-
handle tar files inside your zip
-
some more real life testing
Here's the script
I tested this successfully on Ubuntu Linux (10.10) and Solaris 5.10.
Please comment if you find bugs or improvements.
No responses yet

