#replace #utility #within #linux #search #sr #64-bit

app search_replace

Search and replace utility

1 unstable release

0.1.1 Jun 12, 2019
0.1.0 Jun 12, 2019

#38 in #64-bit

Apache-2.0

15KB
318 lines

sr

Build status Build Status Crates.io

Simple utility to search and replace within files

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.

Dependencies

~4–13MB
~156K SLoC