8000 Release tools/checkhosts: add some features about print format · jonimi/hosts-1 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

checkhosts

@andytimes andytimes tagged this 18 Jun 05:11
对输出语句使用转移序列变更文字颜色,更容易判断执行状态。
同时,对一些较长的语句进行折行。

在 grep 的正则表达式中,[[:digit:]] 和 [0-9]
可以发挥差不多的作用,但是后者依赖脚本文件编码,由于 hosts 和脚本都为
UTF-8 编码,修改为 [0-9] 可以缩短语句长度。

Signed-off-by: Andy Deng <theandy.deng@gmail.com>
Assets 2
Loading
0