bsxwzy 当前离线
列兵
lvsehuaxue 当前离线
六级士官
@echo off&setlocal enabledelayedexpansion (for /f "delims=" %%i in (a.txt) do ( set /a n+=1 if !n! leq 3 set str=!str!%%i- if !n! equ 3 ( echo !str:~,-1! set n= set str= ) ) echo !str:~,-1! )>$ move $ a.txt复制代码
TOP
gawk 当前离线
少将
CrLf 当前离线
论坛巡查
@echo off (for /l %%a in () do ( setlocal enabledelayedexpansion for %%b in (a b c) do set /p %%a=||exit echo !a!_!b!_!c! endlocal ))<a.txt >b.txt复制代码