0

我已在主机文件中输入以下内容,
127.0.0.1 www.facebook.com 127.0.0.2 www.youtube.com
如何使用 cmd 从文件中删除上述条目?

4

1 回答 1

3

一个丑陋的解决方案:

find /v "facebook" hosts | find /v "youtube" hosts > hosts

/V 显示所有不包含指定字符串的行。


请参阅find ( ss64 ) 系统实用程序的文档

于 2015-03-25T02:44:21.250 回答