$ tree -d
+ MyDirectory/
| |
| + Folder_01/
| |
| + Folder_02/
| |
| + Folder_03/
|
After this command MyDirectory will have Folder_01.zip, Folder_02.zip and Folder_03.zip. Command:
for i in */; do zip -r "${i%/}.zip" "$i"; done
$ tree -d
+ MyDirectory/
| |
| + Folder_01/
| |
| + Folder_02/
| |
| + Folder_03/
|
After this command MyDirectory will have Folder_01.zip, Folder_02.zip and Folder_03.zip. Command:
for i in */; do zip -r "${i%/}.zip" "$i"; done