macOS
brew install brenamelocal Homebrew formula metadata
brew
Cross-platform command-line tool for safe batch renaming via regular expressions. Version 2.14.0 via Homebrew; verified from local package data.
install
brew install brenamelocal Homebrew formula metadata
scoop install main/brenameScoop official bucket manifest trees · bucket/brename.json · source: api.github.com
overview
Cross-platform command-line tool for safe batch renaming via regular expressions
history
brename is a Go command-line batch-renaming tool focused on safe regular-expression based file and directory renames. Its distinguishing features are dry runs, conflict detection, cross-platform path safety, filters, recursive operation, and undo support.
The GitHub repository was created in September 2013. The README presents brename as a practical cross-platform tool for safely batch renaming files and directories via regular expression.
The project evolved around safety checks that plain mv or rename commands do not provide, such as detecting existing targets, newly overwritten paths, empty target paths, and Windows-problematic path endings.
The official README lists prebuilt release binaries for Linux, macOS, and Windows, plus installation through Conda, Homebrew, Arch AUR, Scoop, and source builds. The input package facts also record Homebrew and Scoop packaging.
Its adoption is niche but practical: users who need repeatable bulk renames get a single static-style CLI rather than shelling together find, sed, mv, and platform-specific rename variants.
The README documents pattern replacement with -p and -r, dry-run mode, include and exclude filters, recursive operation, directory renaming, key-value replacement files, ascending-number replacements, extension preservation, listing matches, and undoing the last successful operation.
Cross-platform safety is a major usage theme. The README calls out case-insensitive filesystems such as FAT and NTFS and documents flags for case-insensitive or case-sensitive path handling.
brename is not a foundational package, but it is a useful example of a modern single-purpose Go CLI that packages well across Homebrew, Scoop, Conda, and downloadable release archives.
For package maintainers, it sits in the long family of rename tools while emphasizing safety and portability rather than just exposing a regular-expression substitution primitive.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
brename | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/shenwei356/brename
install metadata
| Package key | brew:brename |
|---|---|
| Version | 2.14.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/brename |
| Homepage | https://github.com/shenwei356/brename |
| Repository | https://github.com/shenwei356/brename |
| Upstream docs | https://github.com/shenwei356/brename#readme |
| License | MIT |
| Source archive | https://github.com/shenwei356/brename/archive/refs/tags/v2.14.0.tar.gz |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | brename |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
main/brename
scoop install main/brenamesource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.