I have a bunch of files with names like
... (Karton 1).jpeg
and would like to rename them recursively to:
... (brauner Karton).jpeg
I tried the following commands, which didn't work:
rename -v 's/Karton 1/brauner Karton/g' *
rename -v 's/Karton 1/brauner Karton/g' *.jpeg
According to a lot of examples this shouldn't be that hard. What am I doing wrong?
Aditional info: "Karton 1" would be "[B/b]ox 1" in English.
rename
... You don't need to escape spaces in regex, btw. Also, please show your real filenames - do not add quotes,.
characters etc that are not really there!rename -n ...
first. What does it show?rename
for this syntax. You need Perlrename
(file-rename
). Are you using Ubuntu?