rename
rename
Perl-powered file rename script with many helpful built-ins
curl -fsSL https://unflab.app/get | sh -s -- rename
Installs to ~/.local/bin. Add --prefix /usr/local/bin to
put it somewhere else, or --uninstall to remove it.
Why it’s here
Escapes a dependency tree: Homebrew’s build pulls in libraries this tool never touches at run time.
Details
| Original package | rename |
| Version | 1.601 |
| Licence | Artistic-1.0-Perl OR GPL-1.0-or-later |
| Upstream | http://plasmasturm.org/code/rename |
| Source | v1.601.tar.gz |
| Download | unflab-rename-1.601-arm64-apple-darwin.tar.gz |
Built from that exact tarball, with its SHA-256 pinned in the
recipe. The binary links against nothing outside /usr/lib
and /System/, checked in CI before release.
GNU Wget retrieves files over HTTP, HTTPS and FTP — the workhorse for
scripted downloads, recursive mirroring, and resuming interrupted
transfers.
rename https://example.com/file.tar.gz
rename -c https://example.com/big.iso # resume a partial download
rename -r -np -k https://example.com/docs/ # mirror a subtree
man rename has the rest.
Install
./install.sh # into ~/.local/bin
./install.sh --prefix /usr/local/bin
./install.sh --uninstall
About this build
brew install rename pulls in openssl@3, libidn2, libunistring, libpsl
and gettext — five formulae to keep updated for one download tool.
This package has none of them. OpenSSL is compiled from source and linked
statically into the binary, and the other four features are configured
out. The result depends only on libiconv, libz and libSystem, all
of which macOS already provides.
HTTPS works out of the box: the bundled OpenSSL is configured to read CA
certificates from /private/etc/ssl/cert.pem, which is macOS’s own
system bundle.
What’s given up for that: no internationalised domain names (--iri), no
public-suffix cookie checking, and no translated messages. If you need
those, Homebrew’s build has them.
Because OpenSSL is statically linked, security updates to it arrive by
updating this package rather than through your system — worth knowing if
you use rename against untrusted hosts.
Upstream
- Home: https://www.gnu.org/software/rename/
- Version: 1.25.0
- Licence: GPL-3.0-or-later (see
LICENSE)
GNU Wget is the Free Software Foundation’s work. unflab only compiles and
packages it.