RnR is a command-line tool to rename multiple files and directories that supports regular expressions.
You can download binaries from latest release page, choose the compressed file corresponding to your platform. These compressed files contain the executable and other additional content such as completion files (Bash, Zsh, fish and PowerShell).
A package is available in the AUR
(rnr
) to install latest version of
RnR on Arch Linux.
RnR is written in Rust. You can build it from source using Cargo.
sh
git clone https://github.com/ChuckDaniels87/rnr .
cargo install
sh
cargo install rnr
```
USAGE:
rnr [FLAGS] [OPTIONS]
FLAGS: -b, --backup Generate file backups before renaming -n, --dry-run Only show what would be done (default mode) --dump Force dumping operations into a file even in dry-run mode -f, --force Make actual changes to files -h, --help Prints help information -x, --hidden Include hidden files and directories -D, --include-dirs Rename matching directories --no-dump Do not dump operations into a file -r, --recursive Recursive mode -s, --silent Do not print any information -V, --version Prints version information
OPTIONS:
--color
ARGS:
SUBCOMMANDS:
from-file Read operations from a dump file
help Prints this message or the help of the given subcommand(s)
```Default behavior
regex
crate. You can check regex syntax
here. It supports numbered and named capture
groups.Demo