星空 当前离线
列兵
gawk 当前离线
少将
sed "s/^..../A/" a.txt >b.txt复制代码
TOP
xiaopo 当前离线
上等兵
@echo off & setlocal EnableDelayedExpansion for /f %%i in (a.txt) do ( set a=%%i echo A!a:~4,3!>>b.txt ) pause>nul复制代码
canyuexiaolang (vebjbr2wq)当前离线
荣誉版主
@echo off & setlocal EnableDelayedExpansion for /f "tokens=* delims=" %%i in (a.txt) do ( set "n=%%i" call set "n=%%n:!n:~0,4!=A%%" echo.!n! )pause>null复制代码
apang 当前离线
上将
@echo off (for /f "delims=" %%a in (a.txt) do ( set "str=%%a" setlocal enabledelayedexpansion echo A!str:~4! endlocal ))>b.txt复制代码
yzlsc 当前离线