|
|
发表于 2017-2-22 22:54:28
|
显示全部楼层
- cd /d "%~dp0"
- call:txt
- set "_n="
- for /f "usebackq delims=" %%i in (2.txt)do (
- call set/a "_n+=1"
- for /f "delims=" %%m in ('call echo,%%_n%%')do (
- if %%m lss 5 echo,%%i
- if "%%m"=="5" for /f "usebackq delims=" %%i in (1.txt.backup)do echo,%%i
- if %%m gtr 14 echo,%%i
- )
- )
- del /q 1.txt.backup
- pause
- goto:eof
- goto :eof
- :txt
- set "_m="
- (for /f "usebackq delims=" %%i in (1.txt)do (
- call set/a "_m+=1"
- for /f "delims=" %%m in ('call echo,%%_m%%')do (
- if %%m geq 5 echo,%%i
- if "%%m"=="14" goto:eof
- )
- ))>1.txt.backup
- goto:eof
复制代码 |
评分
-
查看全部评分
|