2
1
With rename
it is possible to bulk change filenames. I managed to get rid of all +
with this command and replace them with underscores:
rename 's/\+/_/g' *
I could change normal letters like a to A with.
rename 's/a/A/g' *
but I could not rename the ?
, not like this /\?
and not like this /?
.
Is there any way to adress the "?" in the filename? Most FTP programs fail to rename files with ?
as well. Midnight Commander fails. The only way I found that works so far is:
mv ?myfile.txt myfile.txt
but this command is not flexible enough. I would prefer to bulk rename all ?
in all files.
3I can remove files with true
?
without any trouble - just quote them asrm "?.txt"
. Are you sure it is really?
? Maybe it is some binary character that is displayed by your shell as?
? – mvp – 2013-04-09T06:24:35.7003Can you indicate which
rename
tool it is that you are using (rename --version
)? There are several differentrename
implementations out there. – Adrian Frühwirth – 2013-04-09T16:54:30.367Can you provide more detail on what these file names look like? e.g., are the unknown characters always at the beginning of the filename? – ForeverWintr – 2013-04-09T17:17:57.560