wh1234567 当前离线
上尉
jingyu9575 当前离线
列兵
@echo off set i=1 >22.txt (for /f "delims=" %%s in (11.txt) do ( setlocal enabledelayedexpansion <nul set /p "_=!i!" setlocal disabledelayedexpansion <nul set /p "_=-%%s" echo, set /a i+=1 ))复制代码
findstr /N ".*" 11.txt > 22.txt复制代码
TOP
DAIC 当前离线
中将
sed = 11.txt | sed "N;s/\n/-/" > 22.txt复制代码
gawk "{print NR\"-\"$0}" 11.txt > 22.txt复制代码
powershell -c "foreach ($i in $(gc 11.txt)) {$n++; \"$n-\" + $i}" > 22.txt复制代码
CrLf 当前离线
论坛巡查
hash /printf:"%d-%s",number,string /file 11.txt >22.txt复制代码
@echo off (for /f "tokens=1* delims=:" %%a in ('findstr /n .* 11.txt') do echo %%a-%%b)>22.txt复制代码
评分人数
@echo off for /f %%a in ('find /c /v "" ^<11.txt') do set count=%%a (for /l %%a in (1 1 %count%) do ( setlocal enabledelayedexpansion set /p "str="&echo;%%a-!str! endlocal ))<11.txt >22.txt复制代码
@echo off ((for /f "delims=" %%a in ('findstr /n .* 11.txt') do ( set "str=%%a" set /a n+=1 setlocal enabledelayedexpansion set "str=!str:*:=!" echo !n!-!str! endlocal ))>22.txt复制代码
@set @a=0;/*&echo off findstr /n .* 11.txt |cscript /nologo /e:jscript %0 >22.txt pause&exit */ str = WScript.StdIn.ReadAll() str = str.replace(/^(\d+):/gm,'$1-') WScript.Echo(str)复制代码