1130342432 当前离线
列兵
CrLf 当前离线
论坛巡查
@echo off&setlocal enabledelayedexpansion set n=1 for /f "tokens=1* delims=:" %%a in (' "cmd /u /c type 1.txt|more|findstr /n ." ') do ( if %%a neq !n! ( echo;!str:~1! for /l %%b in (!n! 9 %%a) do if %%b neq !n! echo; set str= ) set /a n=%%a+1 set str=!str! %%b ) echo;!str:~1! pause复制代码
TOP
CUer 当前离线
上尉
sed "s/./& /g" a.txt复制代码
gawk -F "" "$1=$1" a.txt复制代码
cjiabing (甲兵时代)当前离线
荣誉版主
@echo off&setlocal enabledelayedexpansion for /f "tokens=*" %%a in ("abcdefghijklmnopqrstuvwxyz") do ( set var=%%a for /l %%i in (0,1,100000) do if not "!var:~%%i,1!"=="" set /p=!var:~%%i,1! <nul ) pause>nul复制代码
Hello123World 当前离线
@echo off&SetLocal EnableDelayedExpansion Set n=0 Set c= For /f %%i in (1.txt) do Call :hello %%i pause >nul & exit :hello Set a=%1 Set b=!a:~%n%,1! if not "!b!"=="" Set /p c=%c% %b%<nul Set /a n+=1 if not "!b!"=="" goto hello复制代码