Documentation

RnR – batch file and directory renamer

RnR is a command-line utility for renaming multiple files and directories using regular expressions. It includes safeguards designed to prevent accidental overwrites, collisions and other unwanted filesystem changes.

The application operates in dry-run mode by default. This allows users to inspect proposed filename changes before explicitly authorising them. When a batch rename is performed, RnR can record the operations in a JSON file, which can subsequently be used to reverse or repeat the changes.

RnR supports numbered and named regular-expression capture groups. It can also apply text transformations to replacement strings, including changing their case. This makes it suitable for restructuring filenames, replacing extensions and applying consistent naming conventions across directory trees.

The application normally ignores hidden files and directories, and only includes directories as rename targets when explicitly requested.

This is free and open source software.

Key Features

  • Rename multiple files and directories in a single operation.
  • Use regular expressions with numbered and named capture groups.
  • Preview proposed changes without modifying files by default.
  • Check for filename collisions and unintended overwrites.
  • Apply renames explicitly using force mode.
  • Search directory trees recursively.
  • Limit recursive operations to a specified directory depth.
  • Include directories themselves as rename targets.
  • Include hidden files and directories when requested.
  • Specify the maximum number of substitutions per filename.
  • Apply text transformations to replacement strings.
  • Create backup copies before renaming files.
  • Record completed operations in JSON dump files.
  • Undo previous renaming operations using saved dump files.
  • Repeat operations recorded in an existing dump file.
  • Convert Unicode filenames to ASCII representations.
  • Display colour-coded terminal output.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/ismaelgv/rnr
Support:
Developer: Ismael González Valverde
License: MIT License

RnR help

RnR is written in Rust. Learn Rust with our recommended free books and free tutorials.


Related Software

Console Batch Renamers
RnRSecurely rename multiple files and directories
F2Command-line batch renaming tool. Fast and safe to use. It's written in Go
vimvMass rename files using Vim
massrenRename multiple files using a text editor
mmvRename multiple files with editor
nominoBatch rename utility for developers
renameRename multiple files using Perl expressions
brenameBatch renaming safely
temprenTemplate-based file renaming utility
edirUtility to rename, remove, and copy filenames and directories
vidirEdit of the contents of a directory in a text editor
renameutilsFive programs – qmv, qcp, imv, icp and deurlname
rename-cliRename files quickly
renTakes find-formatted lines via standard input, and batch renames them
renuxRegex, placeholders, and text transformations
mooveManipulate file names and locations
BrenBulk file renaming software
regnameMass renamer utility with a text user-interface
pipe-renameEdit filenames using your preferred text editor
RenamerFlexible and extensible through plugins
brn2Fork of brn
edmvBulk rename files using your preferred text editor

Read our verdict in the software roundup.

Alternatives to mv
pycpcp and mv with a progressbar
RnRSecurely rename multiple files and directories
renameutilsSet of programs designed to make moving files faster and less cumbersome
Alternatives to rename
RnRSecurely rename multiple files and directories
renameutils Set of programs designed to make renaming files faster and less cumbersome
rename.plRename files using Perl expressions
renameRename multiple files
vimvMass rename files using Vim
detoxClean up filenames
regnameMass renamer utility with a text user-interface

Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted