terse 当前离线
中将
@echo off&setlocal enabledelayedexpansion chcp 65001>nul for /f "tokens=1,2*delims=.:" %%i in ('findstr /ibn "[0-9][0-9]*\." test.txt') do set "_%%i=%%k" (for /f "tokens=1*delims=:" %%i in ('findstr /in .* test.txt') do ( if defined _%%i ( for /f %%a in ("!_%%i!") do for /f "tokens=1*delims=0123456789" %%b in ("%%a") do ( if "%%b%%c" == "第章" (echo !_%%i!)else echo %%j ) )else echo;%%j )) pause复制代码
评分人数
TOP
@echo off powershell -c "$enc=[Text.Encoding]::UTF8;[IO.Directory]::EnumerateFiles($pwd,'*.txt').foreach({[IO.File]::WriteAllLines($_,([IO.File]::ReadAllLines($_,$enc) -replace '^\d+\.(?=第\d+章\s+.*)', ''),$enc) })" pause复制代码