xymc 当前离线
列兵
wankoilz 当前离线
上尉
#&cls&@gawk -f %0 1.txt >账号.txt&exit /\[A002\]/,/\[A003\]/{a[++i]=$1"----"$2} END {for(j=2;j<i;j++) print a[j]}复制代码
TOP
@echo off&setlocal enabledelayedexpansion for /f "delims=" %%a in (a.txt) do ( if %%a==[A002] set f=1 if %%a==[A003] set f=0 if !f!==1 if not %%a==[A002] echo %%a ) pause复制代码
CrLf 当前离线
论坛巡查
@echo off (for /f "tokens=1*" %%a in (a.txt) do ( if %%b#==# ( set "[A002]=" set %%a=true ) else ( if defined [A002] echo %%a----%%b ) ))>b.txt pause复制代码
@echo off&setlocal enabledelayedexpansion for /f "delims=" %%a in (a.txt) do ( set "s=%%a" if "!s:~0,6!"=="[A002]" set f=1 if "!s:~0,6!"=="[A003]" set f=0 if !f!==1 if not "!s:~0,6!"=="[A002]" echo %%a ) pause复制代码
会飞的蜗牛丶 当前离线