rename many files at once
This is where the bash variable handling makes it even more interesting. Instead of just doing something like "mv $var", we can replace text in the filename using this syntax:
So now, if we run this command on our directory:
${var/originaltext/replacetext}
So now, if we run this command on our directory:
for f in *;do mv $f ${f/test/prod};done