首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > trimhosts

trimhosts

  • 资源大小:3.49 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

When maintaining a list of hosts (to block, adblock etc) with updates by various sources, it gets hard to check that there are no duplicates. This little utility removes duplicates and sorts by hostname. Simple combine the two text files and use this to ensure no duplicates. Note: Comments are removed too, so backup your old file and add those in manually. To create the jar jar -cvfm trimhosts.jar MANIFEST.MF com Example usage java -jar trimhosts.jar C:UsersmynameDesktophosts For windows you can find the hosts file at: %systemroot%system32driversetchosts and for unix its at /etc/hosts
VIP VIP
0.171365s