2
1
how would one find all subfolders of a folder and zip them separately ?
folder structure
./folder
-subfolder_1
-subfolder_2
-subfolder_3
expected result:
./folder
-subfolder_1.zip
-subfolder_2.zip
-subfolder_3.zip
I have tried the following:
for i in .; do zip -r $i.zip $i; done;
resulted in one ..zip file containing all the subfolders
In the second way,
-mindepth 1
option is needed to exclude the.
folder. – amit – 2019-06-29T15:37:54.653