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 |
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 | |
# Simple but useful UNIX shell command | |
rm -rf `find . -type d -name ".svn"` |