1 2 3 4 5
#!/bin/bash -x for i in $(ls *.jpg | grep -v small | grep -v wallpaper); do convert -geometry 128 $i ${i/.jpg/-small.jpg} done