I was tired of bash’s crapy limited rename so I wrote one in ruby
http://gist.github.com/244768
enjoy.