- @echo off
- set "v=<div id="botton1"><a href="http://www.baidu.com" target="_blank"></a></div>"
- (for /f "tokens=1* delims=:" %%a in ('findstr /n ".*" 1.txt') do (
- if "%%b" neq "%v%" (echo,%%b
- ) else for %%c in ("%v:baidu=google%") do echo,%%~c
- ))>2.txt
复制代码
|