The zip utility program, when invoked as zip -r out.zip base/*
on this directory structure
.
./base
./base/b
./base/b/c
./base/d
creates the following result
adding: base/b/ (stored 0%)
adding: base/b/c (stored 0%)
adding: base/d (stored 0%)
I would like to obtain a file containing data as from the following output
adding: b/ (stored 0%)
adding: b/c (stored 0%)
adding: d (stored 0%)
I expected the -j option to help me, but it does not: it completely flattens the directory structure. At the moment, the only solution I found is to cd into base and invoke zip from here, but I was wondering if there's a powerswitch I fail to recognize as such in the docs.