for file in *.jpg.jpg; do mv $file `echo $file | sed 's/\(.*\.\)jpg\.jpg/\1jpg/'`;done;