
CODE: [Copy to clipboard]@echo off & SetLocal EnableDelayedExpansion
for /f "delims=" %%a in (i.txt) do (
set "str=%%a"
set "str=!str:>=!"
set "str=!str:<=!"
set "str=!str:/=!"
set "str=!str:Total_Test_Time=□!"
rem echo !str!
for /f "delims=□ tokens=2" %%b in ("!str!") do echo result=%%b
)
pause
CODE: [Copy to clipboard]gawk -F"<Total_Test_Time>|</Total_Test_Time>" "{print $2}" i.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |