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

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -