Glad you worked it out. Please mark the thread as solved.
But for a bit of clarification, the command you used is actually the perl-based prename
script, which is linked to rename
in many debian-based distributions through /etc/alternatives
. It's very handy, but not every system has it installed.
Since the perl syntax uses regular expressions, targeting individual characters is probably better done using character classes:
rename 's/[#]//g' *
Adding "g" (for "global") at the end tells it to replace all instances of that character (or characters; class brackets can hold lists or ranges) in the line, otherwise it only replaces the first one found.
And two more polite suggestions:
The topic of renaming files comes up regularly. Please try to do a few searches of the archives and/or web before posting common questions like this.
Finally, please use [code][/code]
tags around your code and data, to preserve formatting and to improve readability.