I have the following files:
~/Dir1/file1.txt
~/Dir2/file2.txt
Then I use the following command:
cd ~
zip out.zip /Dir1/file1.txt /Dir2/file2.txt
In the out.zip I can see two directories (dir1 and dir2) but want only these two files (file1.txt and file2.txt) were in the root of out.zip!
I thought the -D
option is what I need, but it doesn't work.