1 unstable release

0.1.0 Apr 12, 2022

#1772 in Text processing

MIT/Apache

5KB
61 lines

Replace

Replace string in file.

rep 0.1.0
Batch replace text file

USAGE:
    rep.exe [OPTIONS] --from <from> --input <input> --to <to>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -i, --input <input>    File path to replace
    -e, --ext <ext>        File extensions use * to accept all ext [default: *]
    -f, --from <from>      Original string
    -t, --to <to>          Replaced string

Example

rep -i public/wiki/ -e html -f 'link rel="stylesheet" href="' -t 'link rel="stylesheet" href="/wiki/'

Dependencies

~6–8MB
~141K SLoC