Command-line tool
repren
brew/repren
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Rename anything using powerful regex search and replace
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
pipx install repren
macOS
brew install repren pipx install repren
Linux
pipx install repren
Simulate renaming a directory of PNGs with a literal string replacement
repren -n --rename --literal --from 'find_string' --to 'replacement_string' *.png
Simulate renaming a directory of JPEGs with a `regex`
repren --rename -n --from 'regex' --to 'replacement_string' *.jpg *.jpeg
Do a find-and-replace on the contents of a directory of CSV files
repren --from '([0-9]+) example_string' --to 'replacement_string \1' *.csv
Related command-line tools
- rename
Perl-powered file rename script with many helpful built-ins - tuc
Text manipulation and cutting tool - grex
Command-line tool for generating regular expressions - fastmod
Fast, partial replacement for codemod (find/replace tool for programmers) - aki-gsub
substitude text command, replace via regex. - sd
Intuitive find & replace CLI rust cli terminal command-line regex sd text-processing - sed
Edit text in a scriptable manner. - fresh-editor
Text editor for your terminal: easy, powerful and fast editor tui text-editor terminal lsp plugins syntax-highlighting
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents