联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off sed "/^ *$/d" a.txt|find /v "" pause
Originally posted by amio at 2008-7-13 12:52: 貌似没什么作用
@echo off sed "/^ *$/d" a.txt>b.txt move /y b.txt a.txt
Originally posted by HAT at 2008-7-13 02:38 PM:@echo off sed "/^ *$/d" a.txt>b.txt move /y b.txt a.txt
C:\Test>C:\ProgramMy\GnuWin32\sed --version GNU sed version 4.1.5 Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, to the extent permitted by law.
@echo off sed "s/^ *//g" a.txt>b.txt move /y b.txt a.txt
@echo off sed "s/^ *//g" a.txt|find /v "">b.txt move /y b.txt a.txt