查找和替换源文件中的文本

时间:2021-06-28 17:47:46
【文件属性】:
文件名称:查找和替换源文件中的文本
文件大小:25KB
文件格式:ZIP
更新时间:2021-06-28 17:47:46
rust command-line awk sed replace 取代者在源文件中查找和替换文本:$ ruplacer old new src/ Patching src/a_dir/sub/foo.txt -- old is everywhere, old is old ++ new is everywhere, new is new Patching src/top.txt -- old is nice ++ new is nice Would perform 2 replacements on 2 matching files. Re-run ruplacer with --go to write these changes to disk用货物安装安装rust和cargo ,例如使用rustup 。然后运行:cargo install ruplacer其他安装方法适用于 Linux、macOS 和 Windows 的预编译二进制文件可作为最新版本的资产提供。ruplacer也可以从homebrew安装:$ brew install TankerHQ/homebrew-repo/ruplacerruplacer也在Arch Linux 用户库基
【文件预览】:
ruplacer-main
----Cargo.lock(11KB)
----.github()
--------workflows()
----tests()
--------data()
--------integration_tests.rs(8KB)
----LICENSE(1KB)
----tbump.toml(636B)
----src()
--------stats.rs(2KB)
--------main.rs(7KB)
--------settings.rs(792B)
--------query.rs(2KB)
--------replacer.rs(12KB)
--------directory_patcher.rs(4KB)
--------lib.rs(257B)
--------file_patcher.rs(4KB)
----Cargo.toml(627B)
----.gitignore(48B)
----CHANGELOG.md(2KB)
----README.md(4KB)

网友评论