for file in *.png;do mv "$file" "${file/_h.png/_half.png}"; done
Another use case:
foo=” ”
# replace first blank only
bar=${foo/ /.}
# replace all blanks
bar=${foo// /.}
for file in *.png;do mv "$file" "${file/_h.png/_half.png}"; done
Another use case:
foo=” ”
# replace first blank only
bar=${foo/ /.}
# replace all blanks
bar=${foo// /.}