for i in *.dump; do mv  “$i” “${i/.dump}”;done

for i in *.JPG; do mv "$i" "${i/.JPG}".jpg; done