https://github.com/debek/rpl
cli tool replacing a phrase or a string of characters within the current directory and all its subdirectories.
https://github.com/debek/rpl
linux replace replace-text string-formatter strings-manipulation
Last synced: 4 months ago
JSON representation
cli tool replacing a phrase or a string of characters within the current directory and all its subdirectories.
- Host: GitHub
- URL: https://github.com/debek/rpl
- Owner: debek
- License: mit
- Created: 2023-12-23T21:42:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-26T07:27:30.000Z (over 1 year ago)
- Last Synced: 2024-12-27T18:22:34.489Z (about 1 year ago)
- Topics: linux, replace, replace-text, string-formatter, strings-manipulation
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://hits.seeyoufarm.com)
# rpl - Replace String CLI Tool
## Overview
This CLI tool, developed in Go, is designed for efficiently replacing a phrase or a string of characters within the current directory and all its subdirectories. It's an invaluable utility for quick and bulk text modifications in multiple files.
Works good on Linux and MacOs systems.
## Features
- Replace a single word or a phrase in all files within the current directory and subdirectories.
- Supports string replacements involving spaces by using quotes.
## Installation
ou can install **rpl** using the Go tool:
`go install github.com/debek/rpl@latest`
After installation, add the Go binary path to your system's PATH to access the `rpl` command from anywhere:
`export PATH=$PATH:~/go/bin`
## Usage
To use the tool, navigate to the directory where you want to perform the replacements and execute one of the following commands:
### Replacing a Single Word
```
rpl [old_word] [new_word]
```
- `old_word`: The word you want to replace.
- `new_word`: The word that will replace the old word.
### Replacing a Phrase
```
rpl "[old_string one]" "[new_string two]"
```
- `old_string one`: The phrase you want to replace. Enclose in quotes.
- `new_string two`: The phrase that will replace the old phrase. Enclose in quotes.
## Contribution
If you're interested in contributing to the osmon project, please check our [contribution guidelines](https://github.com/debek/osmon/blob/main/CONTRIBUTE.md). All contributions, from bug reporting to new feature suggestions, are highly appreciated.
## License
This project is available under the [MIT License](https://github.com/debek/osmon/blob/main/LICENSE).