Mac ZIP folders to individual files

#!/bin/bash
find . -name ‘.DS_Store’ -type f -delete
for i in */; do zip -r “${i%/}.zip” “$i”; done

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.