想写个bat 在文件里加入插入一行代码
用的sed64 -i
for /f "delims=" %%i in (tmp20200226.txt) do (
::echo %cd%
sed64 -i "/Wallpaper/a condition="gt(#touch_begin_x-#touch_x,200)"/>\n asdf" "%cd%\tmp20200226\lockscreen\advance\manifest.xml"
)
pause
会失败
for /f "delims=" %%i in (tmp20200226.txt) do (
echo %cd%
sed64 -i "/Wallpaper/a condition="gt(#touch_begin_x-#touch_x,200)"/>\n asdf" "%cd%\tmp20200226\lockscreen\advance\manifest.xml"
)
pause
成功了!