下面是删除单个字符(串)所在行的代码,如果要以空格为间隔符一次性输入多个字符(串)以实现删除含这些字符(串)的所在行,应该要如何修改代码?
[ Last edited by suntb on 2008-2-24 at 11:05 AM ]
@echo off
echo.&set /p str=请输入你要排除的字符:
if exist temp.txt (cd.>temp.txt)
findstr /r /v "^.*%str%.*" test.txt >>temp.txt
call temp.txt
[ Last edited by suntb on 2008-2-24 at 11:05 AM ]

