LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rnr

Batch rename files and directories from the command line

TLDR

Dry-run rename with a regex
$ rnr '[pattern]' '[replacement]' [files...]
copy
Apply renames (write)
$ rnr -f '[pattern]' '[replacement]' [files...]
copy
Recursive directory rename
$ rnr -r '[pattern]' '[replacement]' [dir]
copy
Interactive confirmation
$ rnr -i '[pattern]' '[replacement]' [files...]
copy

SYNOPSIS

rnr [*options*] *from* *to* [*paths*...]

DESCRIPTION

rnr is a Rust batch renamer supporting regex replacements, dry-run by default (or explicit apply flags depending on version), recursion, and undo dumps. It focuses on safe bulk renames for media libraries and code trees.Always run a dry-run first and review the planned operations. Exact flags for force/apply vary slightly by release—confirm with rnr --help.

PARAMETERS

*from* *to*

Regex pattern and replacement string.
*paths*
Files/directories to consider.
-r, --recursive
Recurse into directories.
-f, --force / apply flags
Perform renames (if dry-run is default).
-i, --interactive
Confirm each rename.
--dry-run
Print operations without changing the filesystem.

INSTALL

brew install rnr
copy
nix profile install nixpkgs#rnr
copy

CAVEATS

Regex renames can destroy names if the pattern is too broad. Cross-filesystem moves and colliding targets need care. Keep backups or use version control.

SEE ALSO

rename(1), mmv(1), mv(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid