
CODE: [Copy to clipboard]@echo off
for /f "tokens=4" %%i in (test.txt) do (
for /f "tokens=2 delims==" %%a in ("%%i") do (echo %%~a)
)
pause
CODE: [Copy to clipboard][ Last edited by huahua0919 on 2008-8-28 at 12:36 AM ]@echo off&&setlocal enabledelayedexpansion
for /f "delims=" %%i in (a.txt) do (
set a=%%i
set a=!a:"='!
)
for /f "tokens=6 delims='" %%i in ("%a%") do (echo %%i)
pause
CODE: [Copy to clipboard]gawk.exefindstr /i "href=" "test.txt"|gawk -F\" "{print $6}"
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |