377563714 当前离线
列兵
评分人数
1270697389 当前离线
上尉
TOP
DAIC 当前离线
中将
sed -r -i "s/<[^>]+>//g" *.trc复制代码
foxJL 当前离线
荣誉版主
@echo off & setlocal enabledelayedexpansion for %%b in (*.trc) do ( (for /f "delims=" %%a in (%%b) do ( set str=%%a&set str=!str: =!&set str=!str:^<= ! for %%i in (!str!) do (set v=%%i&set v=!v:*^>=!&set/p=!v!<nul) echo, ))>>%%b_1.trc ) pause复制代码
xxpinqz (YiFeng)当前离线
中校
@echo off set "dst=e:\111\" md "%dst%" 2>nul for %%i in (*.trc) do ( (for /f "usebackq tokens=1* delims=]" %%a in ("%%i") do ( setlocal enabledelayedexpansion if not "%%b"=="" ( set "str=]%%b" for %%a in (0 1 2 3 4 5 6 7 8 9 ^< ^>) do set "str=!str:%%a=!" ) echo,%%a!str! endlocal ))>"%dst%%%i" )复制代码