1 个不稳定版本
0.1.0 | 2022年4月12日 |
---|
#1847 在 文本处理
5KB
61 代码行
替换
在文件中替换字符串。
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
示例
rep -i public/wiki/ -e html -f 'link rel="stylesheet" href="' -t 'link rel="stylesheet" href="/wiki/'
依赖
~6–15MB
~169K SLoC