How to remove special character from a folder name?
FWIW. Below is a simple script to rename a file(or directory).

&gt; cat rename-file
#!/bin/bash
source=$1
target=`echo "$source" | sed -e 's/[^A-Za-z0-9._-]/_/g'`
if [ "$source" != "$target" ]; then
    mv "$source" "$target"
fi


For example (go to the directory, write the command and tab-expand the filename)

&gt; ls -1
'a\b(c#d@e'
&gt; rename-file a\\b\(c#d@e
&gt; ls -1
a_b_c_d_e


You might want to fit the translation to your needs.

s/[^A-Za-z0-9._-]/_/g