repgrep is an interactive command-line replacement tool that builds on ripgrep’s search capabilities. It allows users to locate matching text across files, inspect proposed replacements and decide which occurrences should be changed.
The application is invoked using the rgr command and accepts ripgrep-style search arguments. After searching, it opens a terminal interface that displays matching text and proposed replacements. Users can selectively approve changes rather than applying the same substitution indiscriminately throughout a project.
repgrep is particularly useful when a pattern appears in different contexts and only some matches should be modified. Its interactive workflow combines recursive searching with more precise control over the final changes. An automatic replacement option is also available when the same substitution should be applied to every match.
This is free and open source software.
Key Features
- Search files using ripgrep’s matching capabilities.
- Display matching results in an interactive terminal interface.
- Preview proposed replacements in real time.
- Approve or reject individual replacements.
- Use ripgrep-style search arguments and context options.
- Prefill replacement text using -r or –replace.
- Replace all matches non-interactively using -y or –autoreplace.
- Support regular-expression capture groups in replacement text.
- Display surrounding context to help identify the correct occurrences.
- Process files containing ASCII text.
- Support UTF-8 encoded files.
- Recognise UTF-16 big-endian and little-endian encodings.
- Perform selective replacements across multiple files.
- Cross-platform support – runs on Linux and macOS.
Website: github.com/acheronfail/repgrep
Support:
Developer: Callum Oz
License: The Unlicense or MIT License or Apache License 2.0

repgrep is written in Rust. Learn Rust with our recommended free books and free tutorials
Alternatives to sed | Alternatives to grep
| 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.