联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off call test2.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
:start1 if "%1"=="" goto end .\sed -n "/%1/p" A.TXT>nul if not errorlevel 1 if errorlevel 0 goto xxx shift goto start1 goto end :xxx shift echo %1>A.TXT :end