
- 帖子
- 7
- 积分
- 18
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2022-6-10
|
@echo off
setlocal enabledelayedexpansion
set const_str="他娘的"
for /f %%i in (test.txt) do (
set var=%%i
echo !var:%const_str:~1,-1%=TND!
)
echo.
echo ======分======割======线======
echo.
for /f %%i in (test.txt) do (
set var=%%i
echo !var:%const_str:~1,-1%=!
)
pause |
|