Crates.io | search_replace |
lib.rs | search_replace |
version | 0.1.1 |
source | src |
created_at | 2019-06-12 18:27:38.664352 |
updated_at | 2019-06-12 19:16:39.634338 |
description | Search and replace utility |
homepage | |
repository | https://github.com/DoumanAsh/sr |
max_upload_size | |
id | 140641 |
size | 17,798 |
Simple utility to search and replace within files
USAGE:
sr [options] <pattern> <replace> [file]...
OPTIONS:
-i, --in-place [SUFFIX] - Modifies files in place. If SUFFIX is specified creates creates backup with it.
-q, --quiet - Specifies silent mode. Default false.
-h, --help - Prints this help message.
ARGS:
<pattern> - Specifies regex to look for.
<replace> - Specifies expression to replace with. captured values like $1 are allowed
[file]... - Optionally specifies list of files. If omitted reads from STDIN.