更新时间:2023-12-05 15:10:04
您可以使用一行Perl:
You could use a one line Perl:
perl -pe"s!(//packages/thirdparty/release/main.txt *)#\d+!$1#15!;" testlog.txt
会替换#10 code>#15
#10
replaces #10 by #15
#10
#15
使用Windows shell或Perl脚本搜索和替换字符串
shell脚本查找,搜索和文件替换字符串数组
如何使用perl搜索和替换字符串?