Rename multiple files. NOTE: this page refers to the command from the
util-linux
package. For the Perl version, seefile-rename
orperl-rename
. Warning: This command has no safeguards and will overwrite files without prompting.
rename {{foo}} {{bar}} {{*}}
rename -vn {{foo}} {{bar}} {{*}}
rename -o {{foo}} {{bar}} {{*}}
rename {{.ext}} {{.bak}} {{*.ext}}
rename {{''}} {{'foo'}} {{*}}
rename {{foo}} {{foo00}} {{foo?}} && rename {{foo}} {{foo0}} {{foo??}}