genekiller 当前离线
列兵
77七 当前在线
中校
@echo off setlocal enabledelayedexpansion for /l %%l in (1,1,3) do ( set str=%%l;!str! ) >1.txt (echo %str:;=&echo;%) pause复制代码
TOP
CrLf 当前离线
论坛巡查
@echo off&setlocal enabledelayedexpansion (for /l %%a in ('findstr /n .* in.txt') do ( set /p str= rem 此处爱做啥做啥 echo [!str!] ))<in.txt>out.txt rem 使用 findstr 是为了兼容文件中的空行,若无空行可以将 ('findstr /n .* a.txt') 改为 (a.txt)复制代码
powerbat 当前离线
大校
echo !softdata!>a.txt复制代码
@echo off&setlocal enabledelayedexpansion (for /l %%a in () do ( set /p str= rem 此处爱做啥做啥 echo [!str!] ))<in.txt>out.txt复制代码
gawk "BEGIN{RS=\"\r\"}{这里做点什么;print $0}" in.txt>out.txt复制代码
weichenxiehou 当前离线
上尉
(for ... %%a in (...) do ( ... echo,%%a ))>a.txt复制代码
forfiles 当前离线
少将