Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save espenmn/eac8e6f6b832aa77c2157b88db030053 to your computer and use it in GitHub Desktop.

Select an option

Save espenmn/eac8e6f6b832aa77c2157b88db030053 to your computer and use it in GitHub Desktop.
for i in */; do zip -r "${i%/}.zip" "$i"; done
#Dont need this, the zip commend does not include hidden files
for i in */; do zip -d *.zip __MACOSX/\*zip -r "${i%/}.zip" "$i"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment