ruplacer is a command-line tool to find and replace text in source files.
The tool walks through every file in PATH while honoring .gitignore files found on the way.
This is free and open source software.
Key Features
- Subvert mode – an option which works across a variety of case styles (lower case, snake case, and so on):
- Filter files by type or glob patterns – select or ignore certain “file types” or glob patterns.
- Quiet option.
- Implement
--hiddenand--ignoredflags, to force patching of hidden and ignored files, respectively. - word-regex – option to interpret pattern as a ‘word’ regex.
- Cross-platform support – runs under Linux, macOS, and Windows.
Website: github.com/your-tools/ruplacer
Support:
Developer: Dimitri Merejkowsky
License: BSD 3-Clause “New” or “Revised” License

Examples:
Replace ‘foo’ with ‘bar’:
$ ruplacer foo bar
Replace ‘LastName, FirstName’ with ‘FirstName LastName’:
$ ruplacer '(\w+), (\w+)' '$2 $1'
Replace ‘--foo-bar‘ with ‘–spam-eggs‘. The use of ‘--‘ because the pattern and the replacement start with two dashes:
$ ruplacer -- --foo-bar --spam-eggs
Replace ‘FooBar’ with ‘SpamEggs’, ‘foo_bar’ with ‘spam_eggs’, …
$ ruplacer --subvert FooBar SpamEggs
ruplacer is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Alternatives to sed | |
|---|---|
| sad | Space Age seD |
| sd | Intuitive find and replace CLI |
| Sed-Go | Implementation of sed in Go |
| ruplacer | Find and replace text in source files |
| ripgrep | Recursively search directories for a regex pattern |
| amber | Code search and replace tool |
| rep | Perform find and replace on grep-formatted lines |
| repgrep | Interactive replacer for ripgrep |
| srgn | Code surgeon for searching and manipulating text and source code |
| teip | Masking tape to help commands "do one thing well" |
| Alternatives to awk | |
|---|---|
| gawk | Implementation of the awk programming language |
| GoAWK | POSIX-compliant awk interpreter written in Go |
| Miller | Small and powerful CLI tool to do all your data processing |
| frawk | Small programming language for writing short programs processing textual data |
| choose | Human-friendly and fast alternative to cut and (sometimes) awk |
| gema | General purpose text processing utility based on the concept of pattern matching |
| mawk | Interpreter for the awk programming language |
| ruplacer | Find and replace text in source files |
| rawk | POSIX compatible AWK written in Rust |
| wak | awk implementation for toybox and standalone |
| PAWK | Python line processor |
| Hawk | Haskell text processor for the command-line |
| Alternatives to grep | |
|---|---|
| ugrep | Ultra fast grep with interactive - Top 100 TUI apps |
| ripgrep | Recursively search directories for a regex pattern - Top 100 CLI apps |
| sift | Fast and powerful alternative to grep |
| The Silver Searcher | Code-searching tool similar to ack, but faster |
| ack | grep-like source code search tool |
| CGrep | Context-aware grep for source codes |
| ngrep | grep applied to the network layer |
| vgrep | Pager for grep, git-grep, ripgrep and similar grep implementations |
| xlsxgrep | Tool to search text in XLSX, XLS, CSV, TSV and ODS files |
| bingrep | grep-like tool for binaries |
| ucg | grep-like tool specialized for searching large bodies of source code |
| pru | Pipeable Ruby |
| phpgrep | Syntax-aware grep for PHP code |
| rzgrep | grep for stuff in archives that are embedded within archives |
| skim | General-purpose fuzzy finder |
| ruplacer | Find and replace text in source files |
| Clapgrep | GUI tool which offers ripgrep based full-text searches |
| repgrep | Interactive replacer for ripgrep |
| w2vgrep | Semantic grep tool |
| ast-grep | Performs structural search, lint and rewriting |
| serpl | TUI to search and replace keywords |
| grok | Tool like UNIX grep on steroids |
| osgrep | Natural-language search that works like grep |
| hgrep | grep with human-friendly search output |
| mgrep | Semantically grep everything |
| demongrep | Fast, local semantic code search |
| ck | Semantic code search |
| ferp | Clone of grep, but written in modern Fortran |
| krep | Optimized string search utility |
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

