Command-line tool
rename
brew/rename
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Perl-powered file rename script with many helpful built-ins
At a glance
- Type
- Command-line tool
- Install on
- macOS
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install rename
Replace `from` with `to` in the filenames of the specified files
rename 's/from/to/' *.txt
Simulate running the program without doing anything
rename -n 's/from/to/' *.txt
Change the extension
rename 's/\.old$/\.new/' *.txt
Related command-line tools
- perltidy
Indents and reformats Perl scripts to make them easier to read - extract_url
Perl script to extracts URLs from emails or plain text - rxrepl
A command line tool to search and replace text in text files using Perl compatible regular expressions (PCRE). - coffeescript
Unfancy JavaScript download network monitoring power - perl-build
Perl builder - git-tools
Assorted git-related scripts and tools - plenv
Perl binary manager - carton
Perl module dependency manager (aka Bundler for Perl) proxy desktop network sing-box
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents