
CODE: [Copy to clipboard]@echo off&setlocal enabledelayedexpansion
for /f "delims=" %%i in (test.txt) do set i=%%i&set "han_!i:~1,3!=!i!"
for /f "tokens=1,2 delims==" %%i in ('set ^| findstr /b /i "han_"') do echo %%j
pause
CODE: [Copy to clipboard]sort -t$ +2n a.txt
CODE: [Copy to clipboard]@echo off
for /f %%a in (a.txt) do set \%%a=d
for /f "delims==" %%a in ('set \') do echo %%~nxa
pause
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |