Either that or
rename jpg png /path/to/some/file.jpg rename jpg png /path/to/some/file.jpg rename 's/jpg/png/g' /path/to/some/file.jpgI prefer the regex one, of course, especially since it takes proper Perl regexes :)
You have to be careful of this though and probably avoid using this command in shell scripts.
edit: You can just stick Debian's rename at $HOME/bin/rename.pl and call it a day; this command is useful in the terminal since it's less typing than a for loop.