AptLynx

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

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents