unix - bash zip omit files -


i'd zip folder, zip skips files. folder structure is:

main_folder > sub_folder > file2.sql               file11.txt                 file12.sql 

main_folder contains sub_folder , 2 files, subfolder contains 1 file.

when use

zip -r $path *

i receive .zip file contains except file11.txt. tried various options have not solved problem. zip makes correct structure , takes every single file except files main_folder.

could try this;

zip -r your.zip * -x file11.txt 

man zip;

-x files

--exclude files

explicitly exclude specified files..


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -