@echo off
setlocal enabledelayedexpansion
for /f "delims=" %%a in ('type "1111.txt"^|find "222"') do set str=%%a
for /f tokens^=1-2*delims^=^" %%i in ("%str%") do (
set substr=%%j
rem set replace=world
echo !substr!
call set "str=%%str:!substr!=!replace!%%"
echo !str!>>./httpd.conf
)
pause