wh1234567 当前离线
上尉
elec 当前离线
一级士官
perl -ne 'print "$.-$_"' 1.txt>2.txt复制代码
TOP
terse 当前离线
中将
@echo off for /f "tokens=1*delims=[]" %%i in ('find /v /n "" ^<11.txt')do echo,%%i-%%j pause复制代码
DAIC 当前离线
CrLf 当前离线
论坛巡查
@set @a=0;/*&echo off cscript /nologo /e:jscript %0 <11.txt >22.txt pause&exit */ str = WScript.StdIn.ReadAll() str = str.replace(/\r?\n/g,'");WScript.Echo(++i + "-') str = 'WScript.Echo((i=1)+"-'+str+'")' eval(str)复制代码
@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)复制代码
@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复制代码
@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 "tokens=1* delims=:" %%a in ('findstr /n .* 11.txt') do echo %%a-%%b)>22.txt复制代码
评分人数
hash /printf:"%d-%s",number,string /file 11.txt >22.txt复制代码