for file in `ls ./*.png` do convert -resize 16x16 ${file:2} ${file:2}.png rm ${file:2} mv ${file:2}.png ${file:2} done