Skip to content

Instantly share code, notes, and snippets.

@fefranca
fefranca / wallpaperize.sh
Created April 15, 2011 14:58
Convert all jpgs in the current directory to their own individual zips
#!/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
#!/bin/sh
# Simple but useful UNIX shell command
rm -rf `find . -type d -name ".svn"`