https://github.com/ybda/messer
Utility for replacing all occurrences of source text with replacement text in all files from provided directory
https://github.com/ybda/messer
argument-parser clap clap-rs cli cli-app files filesystem rust simple-app terminal tool utility
Last synced: 10 months ago
JSON representation
Utility for replacing all occurrences of source text with replacement text in all files from provided directory
- Host: GitHub
- URL: https://github.com/ybda/messer
- Owner: ybda
- License: gpl-3.0
- Created: 2023-12-10T15:26:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T10:54:58.000Z (over 2 years ago)
- Last Synced: 2025-01-17T11:45:48.078Z (over 1 year ago)
- Topics: argument-parser, clap, clap-rs, cli, cli-app, files, filesystem, rust, simple-app, terminal, tool, utility
- Language: Rust
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
messer
------
# Usage
```
$ messer --help
Utility for replacing all occurrences of source text with replacement text in all files from provided directory
Usage: messer [OPTIONS] -s -r
Arguments:
Directory with text files to be edited
Options:
-s Source text to search for
-r Replacement text
-v, --verbose Print name of each changed file
-i, --ignore-case Perform a case-insensitive search
-I, --interactive Prompt before every file change
-h, --help Print help
-V, --version Print version
$ messer /my/dir -s "Text to replace" -r "Replacement" -iv
messer: changed './example1.md'
messer: changed './dir1/dir2/example3.sh'
$ messer /my/dir -s "Text to replace" -r "Replacement" -ivI
messer: change file './example1.md' [y/N]? y
messer: changed './example1.md'
```