zip all folders into separate, respectiveily named files.

Much more simple, and will avoid issues with spaces:

Quote:
for i in * ; do zip -vr “$i.zip” “$i” ; done

How to put zips in another directory is left as an exercise to the reader.