Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmadrosid/rep-cli
💀 Replace text file in bulk.
https://github.com/ahmadrosid/rep-cli
Last synced: 22 days ago
JSON representation
💀 Replace text file in bulk.
- Host: GitHub
- URL: https://github.com/ahmadrosid/rep-cli
- Owner: ahmadrosid
- Created: 2022-04-12T03:09:41.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-31T07:44:16.000Z (about 2 years ago)
- Last Synced: 2024-09-14T09:57:43.831Z (about 2 months ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Replace
Replace string in file.
```bash
Batch replace text fileUSAGE:
rep [FLAGS] [OPTIONS] --from --input --toFLAGS:
--help Prints help information
-h, --hidden Read hidden file
-V, --version Prints version informationOPTIONS:
-e, --ext File extensions use * to accept all ext [default: *]
-f, --from Original string
-i, --input File path to replace
-t, --to Replaced string
```## Example
```bash
rep -i public/wiki/ -e html -f 'link rel="stylesheet" href="' -t 'link rel="stylesheet" href="/wiki/'
```