LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rename

Rename multiple files

TLDR

rename can refer to multiple commands with the same nameView documentation for the Perl version
$ tldr perl-rename
copy
View documentation for the util-linux version
$ tldr rename.util
copy

SYNOPSIS

rename [options] expression replacement files...

DESCRIPTION

rename is a command for batch renaming files. Two major implementations exist:The Perl rename (also called prename or rename.ul) uses Perl regular expressions for powerful pattern matching. It is common on Debian-based systems.The util-linux rename uses simple string substitution. It replaces the first occurrence of a string in each filename. Common on Red Hat-based systems.Check which version is installed with rename --version or file $(which rename).

SEE ALSO

perl-rename(1), rename.util(1), mv(1), mmv(1)

Copied to clipboard
Kai