Can directly use the sed in Linux, Windows have what good method, and consult the great god,
CodePudding user response:
@ echo off REM string substitution set STR=to replace text information echo of STR "% %" XXX "XXX" for replacement, replace with "YYY" REM to replace XXX to YYY set str2 in STR=% STR: XXX %=YYY echo, echo for the replaced: % % str2 echo - pauseCodePudding user response:
Bosses can post the full version of the code, can understand what you say, write not to come out,,Ps: to replace multiple file content under different paths,
Thank you bosses,
CodePudding user response:
https://bbs.csdn.net/topics/260009981CodePudding user response:
Don't have to bat, this line ishttps://blog.csdn.net/yh12346789/article/details/79616176