How to compress multiple folders, each into its own zip archive?
here
for i in */; do tar -czvf "${i%/}.tar.gz" "$i"; done
for i in *
do
[ -d "$i" ] && zip -r "$i.zip" "$i"
done
You walk through all the directories and create zip for each of them.
Or even more concise:
for i in */; do zip -r "${i%/}.zip" "$i"; done
(thanks to damienfrancois for suggestion).