
CODE: [Copy to clipboard]@echo off
for /f "delims=" %%a in (1.txt) do (
if not defined %%a (set /a ccount+=1&set %%a=lxmxn) else (
set /a num%%a+=1
set /a ccount+=1
call echo 第 %%ccount%% 行的 %%a 重复了 %%num%%a%% 次了
)
)
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |