标题: 字符串对比删除
[打印本页]
作者: xuan2xueer
时间: 2007-10-12 18:58
标题: 字符串对比删除
例如有以下两个文本
1.txt 内容
aaa.exe
bbb.exe
ccc.exe
ddd.exe
2.txt 内容
c:\windows\aaa.exe
c:\windows\system32\bbb.exe
c:\windows\system32\sss.exe
c:\windows\bbb.exe
d:\abc\ccc.exe
e:\ddd.exe
想把2.txt中包含1.txt内容的行删除,1.txt和2.txt的内容都可以根据需要添加或更改。
请教如何做。先谢过。
作者: qzwqzw
时间: 2007-10-12 19:23
可以用 findstr /v /g:1.txt 2.txt
但1.txt最好不要太大
否则 finstr 的时间会很慢
另外 1.txt 中最好不要有特殊字符
作者: xuan2xueer
时间: 2007-10-13 13:03
好用,谢谢,比较苯,还望谅解
作者: xuan2xueer
时间: 2007-10-13 14:35
出错了,路经中不能有空格,不然就出错,怎么解决呢?
还望不吝赐教。