来个不用sed的- @echo off&setlocal enabledelayedexpansion
- for /f "tokens=2* delims=|" %%i in ('findstr /i /v "unknown" 123.txt') do (
- set "v=%%j"
- set "v=!v:*red"^>=!"
- set "v=!v:</font>"=!"
- if "!v:~,1!" equ "[" (echo %%i sa "") else echo %%i sa !v!
- )
- pause
复制代码
|