Added from SO as off topic, however there is no answer in here
I want to zip a directory by excluding some unwanted subdirectories. I have tried :
zip -r test.zip * -x 'test1/' 'test2/'
and
zip -r test.zip * -x 'test1/' -x 'test2/'
But nothing happens.