联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off setlocal EnableDelayedExpansion for /f "tokens=1* delims=" %%a in ('findstr .* "a.txt"') do ( set /a count+=1 echo 第!count!行%%a )
Originally posted by huahua0919 at 2007-12-28 16:52: for /f %%i in ('findstr/n/v/b "@" a.txt') do (echo %%i >>b.txt)