Last active
June 5, 2019 18:55
-
-
Save reizist/7c3d3c7a2abaf5e921186ddb109b2d2a to your computer and use it in GitHub Desktop.
zip & unzip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for d in ./*/; do ( cd "$d" && mogrify -resize 'x1200>' *.jpg ) done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in *.zip; do unzip -d "${f%*.zip}" "$f"; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . \! -name '*.zip' \! -name '.' -type d -exec zip -r {}.zip {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment