yisama 当前离线
列兵
评分人数
TOP
DAIC 当前离线
中将
@echo off setlocal enabledelayedexpansion (for /f "tokens=1* delims=-" %%i in (a.txt) do ( set n=%%~ni REM set n=!str:/*=! if !n! lss 100000 ( echo %%i-%%j ) ))>b.txt复制代码
findstr /v "\/[0-9][0-9][0-9][0-9][0-9][0-9]" a.txt > b.txt复制代码
terse 当前离线
@echo off&setlocal enabledelayedexpansion (for /f "delims=" %%a in (a.txt) do ( for /f "delims=-" %%i in ("%%~na") do ( set "str=%%i" if "!str:~5!" == "" echo %%a ) ))>b.txt pause复制代码