regname is a terminal-based utility for renaming multiple files and directories using regular expressions. It provides an interactive interface where users can enter a matching pattern and a replacement expression while examining the proposed changes.
The application displays directory contents alongside a preview of the resulting filenames. This makes it possible to identify which entries will be affected before applying a batch operation.
regname uses regular-expression capture groups, allowing parts of an existing filename to be retained, reordered or incorporated into a replacement. This is useful for changing naming conventions, adjusting filename prefixes and modifying groups of related files.
The interface contains separate Match and Rename fields. Users switch between them using the Tab key, edit the expressions and press Enter to perform the requested renaming operation.
Unlike recursive batch renamers, regname operates on the entries of a specified directory. It provides a focused interface for renaming the files and directories at that location.
This is free and open source software.
Key Features
- Rename multiple files using an interactive terminal interface.
- Rename directories as well as ordinary files.
- Specify the directory to process as a command-line argument.
- Use the current directory when no path is supplied.
- Match filenames using regular expressions.
- Use capture groups in replacement expressions.
- Replace multiple matching occurrences within a filename.
- Display original filenames alongside proposed replacements.
- Highlight filenames matching the current regular expression.
- Update the preview as matching and replacement expressions change.
- Switch between Match and Rename fields using Tab.
- Edit expressions with standard cursor movement and deletion keys.
- Apply matching rename operations using Enter.
- Cancel the operation using Ctrl+C.
- Display the results of filesystem rename operations.
Website: github.com/linkdd/regname
Support:
Developer: David Delassus
License: MIT License

regname is written in Rust. Learn Rust with our recommended free books and free tutorials.
| Explore Linux | |
|---|---|
| Best Free and Open Source Software - A huge collection of recommended free and open source software covering every major category. | |
| In-depth Linux Software Reviews - Detailed assessments of Linux software covering features, usability and overall quality. | |
| The Big List of Active Linux Distros - An extensive collection of actively developed Linux distributions. | |
| Open Source Alternatives - Alternatives to software and services from Google, Microsoft, Apple, Adobe, IBM, Autodesk, Oracle and others. | |
| Essential Linux System Tools - Indispensable utilities for monitoring, maintaining and managing Linux systems. | |
| Linux Productivity Tools - Useful utilities for improving productivity and streamlining everyday tasks. | |
| Alternatives to Popular CLI Tools - Modern alternatives to familiar command-line utilities supplied with Linux systems. | |
| Awesome Free Linux Game Tools - Tools, utilities and companion software that improve gaming on Linux. | |
| Machine Learning on Linux - Machine learning and deep learning software, self-hosted applications and practical tools. | |
| Saving Money with Linux - Practical ways to reduce electricity consumption and lower computing costs with Linux. | |
| Linux Candy - Fun, entertaining and sometimes delightfully quirky software from the lighter side of Linux. | |

Please read our Comment Policy before commenting.