How to .zip a selection of files under unix/linux using zip? with directory structures
Posted on 2007-03-31
What I want to do is to be able to .zip a set of files (i.e., *.php), but with directory structures.
If I type this:
zip -r * myZipList
it works perfectly fine, and will save the directory structure.
However, if I do this:
zip -r *.php myZipList
It screws up (pissing me off :() and won't save the directory structure, but instead just
saves/stores everything as being in a 'root' directory.
How do I get the zip functionality to ONLY save/store .php files, AND save the directory structure?
If there is a better place to post this as well, please let me know.