Bash one liners
Rename multiple files:
for i in *.dns; do mv "$i" "
basename $i .dns.zone"; done
or
for i in *.JPG; do mv "$i" "${i/.JPG}".jpg; done
Rename multiple files:
for i in *.dns; do mv "$i" "
basename $i .dns.zone"; done
or
for i in *.JPG; do mv "$i" "${i/.JPG}".jpg; done