本帖最后由 ads350668398 于 2016-12-13 08:42 编辑
- @echo off&setlocal enabledelayedexpansion
- for /f "tokens=1* delims=:" %%a in ('findstr /inx "13" ss.txt') do (
- set /a m=%%a-1&set _!m!=%%b
- )
- for /f "tokens=1* delims=:" %%a in ('findstr /in .* ss.txt') do (
- if defined _%%a echo.%%b>>bss.txt&echo.!_%%a!>>bss.txt
- )
复制代码 怎么修改 看不明白 |