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).

INSTALL

sudo apk add util-linux-misc
copy
brew install rename
copy
nix profile install nixpkgs#rename
copy

SEE ALSO

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

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid