
| Quote: | |
|
CODE: [Copy to clipboard]@echo off
set SrcFile=C:\test\a.txt
>"%SrcFile%.txt" type nul
for /f "tokens=*" %%a in ('findstr .* "%SrcFile%"') do (
if "%%a" neq "" (
>>"%SrcFile%.txt" echo %%a
)
)
CODE: [Copy to clipboard]tr -s "[\n]" < test.txt
CODE: [Copy to clipboard]findstr . test.txt|findstr /v /r /c:"^ * $"
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |