$dir is not the current directory so you are renaming nonexistant files in the current directory.
Either change the current directory to where the files are or include $dir as part of the path when renaming.
In reply to Re: Changing filename extensions
by jwkrahn
in thread filenames
by supernova95
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |