#/bin/bash

for i in *.jpg ; do	
	echo Virando $1 graus `basename $i .jpg`;
	mogrify -rotate $1 $i;
done

echo 
echo MARAVILHA ALBERTO!!
echo 
