#!/bin/bash
mogrify . -resize 50x50% *.jpg
rm *.jpg
rename "s/jpg~/jpg/" *.jpg~
