Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Created August 23, 2012 09:35
Show Gist options
  • Save icaoberg/3434703 to your computer and use it in GitHub Desktop.
Save icaoberg/3434703 to your computer and use it in GitHub Desktop.
Zip all folders in the current directory
#!/bin/bash
for FOLDER in *;
do
if [ -d "$FOLDER" ];
then
zip -r "$FOLDER".zip "$FOLDER"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment