Posted on September 5, 2017 by adminMac ZIP folders to individual files #!/bin/bash find . -name ‘.DS_Store’ -type f -delete for i in */; do zip -r “${i%/}.zip” “$i”; done