1 个不稳定版本
0.1.1 | 2019年6月12日 |
---|---|
0.1.0 |
|
#38 in #64-bit
15KB
318 代码行(不含注释)
sr
用于在文件内进行搜索和替换的简单工具
下载链接
用法
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.
依赖项
~4–13MB
~158K SLoC