Rename Multiple Files Simultaneously With Ease

preview_player
Показать описание
Rename multiple files simultaneously with one or two commands. No need to change them all manually. You can also copy and paste the script from the website.

Replace spaces with underscores: rename 's/ /_/g' *
Replace underscores with spaces: rename 's/_/ /g' *
Replace "foo" with "bar": mmv '*foo*' '#1bar#2'
Рекомендации по теме
Комментарии
Автор

Hi. I wanted to add that, `rename` you're mentioned here (and what is commonly referred to in debian packages) is "perl rename". This is not the same with rename from the Util Linux package, which is the one shipped with Arch and Fedora. rename in Arch and Fedora doesn't have regex support by default.

To achieve the same behavior with debian bases distro you need to install `perl-rename` on Arch and `prename` on Fedora respectively.

Also why do you need mmv? Wouldn't `rename 's/foo/bar/g' *` works?

opposite