Created
April 15, 2011 14:58
-
-
Save fefranca/921833 to your computer and use it in GitHub Desktop.
Convert all jpgs in the current directory to their own individual zips
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
#!/bin/sh | |
# Convert all jpgs in the current directory to their own individual zips | |
for f in `ls *.jpg`; do | |
z=`echo $f | grep -Eo '(.+)\.'`zip; | |
echo $'\e[32m' "$f -> $z" $'\e[0m' | |
zip $z $f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment