search_replace 0.1.0

Search and replace utility
search_replace-0.1.0 is not a library.

sr

Build status Build Status Crates.io

Simple utility to search and replace within files

Download links

Usage

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.